Let $m^n-1$ be prime. What can $m$ be if $m$ and $n$ are not $1$?
How can I find $m$?
Let $m^n-1$ be prime. What can $m$ be if $m$ and $n$ are not $1$?
How can I find $m$?
If $m = 1$, the expression gives 0, not a prime. Ruled out.
If $m \ge 2$, we have the factorization $m^n - 1 = (m - 1) (m^{n - 1} + m^{n - 2} + \ldots + 1)$. This can only be a prime if $n = 1$ (in which case the second factor is 1) or if $m = 2$ (when the first factor is 1).
So, either $n = 1$ and $m - 1$ is a prime or $m = 2$ and $n \ge 2$ (not all $n$ work, mind you).