Let $a$ and $n$ be integers greater than $1$.
Suppose that $a^n - 1$ is prime. Show that $a = 2$ and that $n$ is prime.
First of all let $$p = a^n - 1$$
Since both $a$ and $n$ are integers greater than one then $$p \ne 2$$
Thus $p$ is an odd prime
Rearanging: $$a^n = p + 1$$
Thus $a^n$ is an even integer, and then $a$ is and even integer.
Taking $\log_2$ of both sides: $$ n\log_2(a) = \log_2(p+1) $$ and $$n = \frac{\log_2(p+1)}{\log_2(a)}$$
Since n is an integer then $$\log_2(a) = 1$$ and $$a=2$$
I managed to get thus far, but when it comes to proving n is a prime I don't seem to know how to approach it.