Exercise 625Number theory › PrimesOlympiadAdded 4 Nov 2026
When can 2ⁿ + 1 or 2ⁿ − 1 be prime?
#factorisation#primes#Fermat primes#Mersenne primes
Statement
- Prove that if is prime (), then is a power of .
- Prove that if is prime, then is prime.
Hint
Use and, for odd , .
Show solutionHide solution
Solution
1. Suppose is not a power of : with odd. Let . Then is divisible by , and . So is composite. Hence must be a power of (the numbers are the Fermat numbers).
2. Suppose with . Then is divisible by , and . So is composite. Hence is prime (the numbers are Mersenne numbers).
Remark. The converses are false: and .
Lesson. Whenever an exponent has a divisor, a geometric-sum factorisation produces a proper factor.