I understand that this is true.
Primes are always odd so a would naturally have to be even, if $1$ is being added to it.
For example, $4^2+1 = 17$.
But I'm not quite sure how to prove this.
I understand that this is true.
Primes are always odd so a would naturally have to be even, if $1$ is being added to it.
For example, $4^2+1 = 17$.
But I'm not quite sure how to prove this.
Let $P(x) = x^n + 1$ then when $n$ is odd we have $P(-1) = 0$ therefore $x+1|P(x)$.
As a consequence of this we have $a^{(2^r)}+1|P(a^{(2^r)})$ i.e. $P(a^{(2^r)}) = a^{2^r \cdot n} + 1$ has a non-trivial factor unless $n=1$. This shows that for it to be prome the exponent must be a power of two.
If $a$ is an odd that is greater than $1$ then $a^n+1>2$ and $a^n+1$ is even (contradicting the fact tat it is prime).
If $n=2^jm$ (where $m$ is an odd integer greater than $1$), then $a^n+1=(a^{2^j})^m-(-1)^m$ which is divisible by $a^{2^j}--1$ (contradicting the fact that $a^n+1$ is prime).