Proof that if 2^n + 1 is prime then n is a power of 2
Builds on Prime numberFermat numberFundamental theorem of arithmeticDivisibility
Proof
We prove the contrapositive: if is not a power of , then is not prime.
- Let be a positive integer. By the fundamental theorem of arithmetic, with and a positive odd integer.
- Assume is not a power of . Then , so .
- Put , so that and .
- For odd , . Indeed, the product is , which telescopes to .
- So divides .
- We have . Also , because and give .
- So has a divisor strictly between and itself, and it is not a prime number.
- By contraposition, if is prime, then for a natural number .
- Then , which is the Fermat number . So every prime of the form with is a Fermat number.
Idea
An odd factor of the exponent lets us factor by , because is a root of when is odd. This gives a proper divisor. So only exponents with no odd factor, the powers of , can give primes.
Reading path
To understand this page from the ground up, read these 36 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof of the fundamental theorem of arithmetic, Proof of the existence of prime factorization, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of a prime divisor.
Show the path as a graph
- no evidence level
- Definition by recursion concept
- Divisibility definition
- Fermat number definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Greatest common divisor definition
- Prime number definition
- Successor function definition
- Coprime integers definition
- Prime factorization definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Commutativity of addition statement
- Proof of strong induction from ordinary induction proof
- Strong induction statement
- Proof of the well-ordering principle from strong induction proof
- Well-ordering principle statement
- Proof of the division algorithm proof
- Proof of the existence of a prime divisor proof
- Division algorithm statement
- Existence of a prime divisor statement
- Proof of Bézout's identity proof
- Proof of the existence of prime factorization proof
- Bézout's identity statement
- Existence of prime factorization statement
- Proof of the generalized Euclid's lemma proof
- Generalized Euclid's lemma statement
- Proof of Euclid's lemma proof
- Euclid's lemma statement
- Proof of the fundamental theorem of arithmetic proof
- Fundamental theorem of arithmetic statement
- Proof that if 2^n + 1 is prime then n is a power of 2 proof
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | KFVHE9P0K9 |
|---|---|
| URI | m2://KFVHE9P0K9 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A41 |
| Proves | If 2^n + 1 is prime then n is a power of 2 |
| Uses | Prime number, Fermat number, Fundamental theorem of arithmetic, Divisibility |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.