Prove that if $a^n-1$ is prime, then $a=2$ and $n$ is prime.
I just started a semester with Number Theory, and I don't know how I am expected to be dealing with such questions. I am really frustrated. I would really appreciate your help.
Prove that if $a^n-1$ is prime, then $a=2$ and $n$ is prime.
I just started a semester with Number Theory, and I don't know how I am expected to be dealing with such questions. I am really frustrated. I would really appreciate your help.
Hint:$a^n-1= (a-1)(a^{n-1}+\cdots+a+1)$.