When is $\frac{2^n+1}{n^2}$ an integer?

231 Views Asked by At

Can anyone see how to solve this number puzzle?

Find all integers $n>1$ such that

$$\frac{2^n+1}{n^2}$$ is an integer.

2

There are 2 best solutions below

2
On BEST ANSWER

Hint: Since this problem comes from number theory, then I suggest you to look at equivalent congruence problem

$$ 2^n+1=k n^2 \implies 2^n \equiv -1\pmod{n^2} .$$

Check this, page 33.

0
On