I was doing some basic Number Theory problems and came across this problem :
Show that if $a$ and $n$ are positive integers with $n\gt 1$ and $a^{n} - 1$ is prime, then $a = 2$ and $n$ is prime
My Solution : (Sloppy)
- $a^{n}-1$ = $(a-1)$ . $(a^{n-1} + a^{n-2} + ... + a + 1)$
- This means that $(a-1)$ | $(a^{n}-1)$
- But $(a^{n}-1)$ is prime
- So , $(a-1)$ = 1 $\Rightarrow$ $a = 2$
- Now , let $n$ be composite
- $n = kl$ , where $1 \lt k \lt n$ and $1 \lt l \lt n$
- Now , $a^{kl}-1$ = $(a^{k}-1)$ . $(a^{k.{(l-1)}} + a^{k.{(l-2)}} + ... + a^k + 1)$
- This means that $2^{n} -1$ is composite
- Hence , we have achieved a contradiction
My Question : Am I correct ?