Show that if $n>1$ and $a$ is a positive integer with $a^n-1$ prime, then $a=2$ and $n$ is prime.
Hint: Look at the proposition, if $n$ is composite then $2^n-1$ is composite.
Asked
Active
Viewed 291 times
1

user368485
- 31
-
1What have you done? Where are you stuck? – Sarvesh Ravichandran Iyer Sep 13 '16 at 09:42
-
Sorry to answer -- should have looked for a duplicate first. – Caleb Stanford Sep 13 '16 at 09:49
-
More duplicates: 1, 2, 3. – Caleb Stanford Sep 13 '16 at 09:51
2 Answers
2
Hint: Firstly, we have: $$ a^n - 1 = (a-1)(a^{n-1} + a^{n-2} + \cdots + a^2 + a + 1) $$ Secondly, if $n$ is not prime, say $n = ij$ with $i, j \ge 2$, then we have (by the same factorization trick): $$ a^n - 1 = a^{ij} - 1 = (a^i - 1)(a^{ij - i} + a^{ij-2i} + \cdots + a^{2i} + a^i + 1). $$

Caleb Stanford
- 45,895
0
Hint: If $m$ divides $n$ and $1<m<n$, then $a^m-1>1$ also divides $a^n-1$. So $n$ must be prime.

pi66
- 7,164