Exercise 1335Number theory › PrimesOlympiadAdded 5 Nov 2026
Prime divisors of 2ᵖ − 1
#Mersenne numbers#order#primality testing
Statement
Let be an odd prime and a prime dividing .
- Prove that .
- Use this to show that is prime.
Hint
The order of modulo divides . It cannot be .
Show solutionHide solution
Solution
1. is odd. From , the order of modulo divides , so . If then , impossible. So . By Fermat's little theorem , hence . Since is even and is odd, .
2. Suppose is composite. Then it has a prime factor , and by part 1, . The numbers below are . Among them is not prime. Check: and , so neither divides . Contradiction: is prime.
Another check. , and , ✓.
Lesson. The multiplicative order of modulo a prime is , so .