Problem

Source: Czech and Slovak Match 2000 P3

Tags: number theory, divisor, power of 2



Let $n$ be a positive integer. Prove that $n$ is a power of two if and only if there exists an integer $m$ such that $2^n-1$ is a divisor of $m^2 +9$.