The problem is: Find all natural numbers $n$ for which $2^n + 1$ is a perfect square?
I am having a bit of trouble finding a generic way of finding these numbers. Of course the first obvious solution is $n = 3.$ For which we have $8 + 1 = 3^2.$ Anyone has any smart ideas?
$$ 2^n+1=m^2\implies 2^n=(m-1)(m+1). $$ This implies that $(m-1)$ and $(m+1)$ are both powers of $2$. In particular, $m-1$ divides $m+1$ so that $m-1$ divides $(m+1)-(m-1)=2$. This means that $m-1$ is either $2$ or $1$. Only $m-1=2$ works, so $m=3$ and $n=3$ constitute the only solution.