4

Let $m^n-1$ be prime. What can $m$ be if $m$ and $n$ are not $1$?

How can I find $m$?

Coffee_Table
  • 2,909

2 Answers2

17

Hint: $m^n-1 = (m-1)(m^{n-1}+m^{n-2}+\cdots+1)$.

Abel
  • 7,312
2

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).

vonbrand
  • 27,812