I found this claim in my textbook while reading the section on prime numbers today:
"If $n$ is a positive integer such that $2^n + 1$ is prime, then $n = 2^r$ for some integer $r \ge 0$."
Where did this result come from? (that is, is there a proof? I cannot find one in my textbook and Google did not help either.)