Maths WorkshopMaths problems with full solutions
Exercise 1137Number theory › PrimesL1Added 3 Nov 2026

Mersenne primes and exponents

#Mersenne#primes#exponents

Statement

Show that if 2n−12^n-1 is prime, then nn is prime.

Hint

If n=abn=ab, 2n−1=(2a)b−12^n-1=(2^a)^b-1 factors.

Show solutionHide solution

Solution

Factorization. 2ab−1=(2a−1)((2a)b−1+⋯+1)2^{ab}-1=(2^a-1)((2^a)^{b-1}+\cdots+1).

Contradiction. If a,b>1a,b>1, both factors are >1>1, so 2n−12^n-1 composite.

Conclusion. nn must be prime.

Example. 24−1=152^4-1=15 composite; n=4=2⋅2n=4=2\cdot2 not prime. ✓