Fermat Prime — Definition, Formula & Examples
A Fermat prime is a prime number that can be written in the form , where is a non-negative integer. Only five Fermat primes are known: 3, 5, 17, 257, and 65537.
A Fermat number is defined as for . A Fermat prime is a Fermat number that is also prime. As of current knowledge, the only prime Fermat numbers are , , , , and .
Key Formula
Where:
- = The nth Fermat number
- = A non-negative integer (0, 1, 2, ...)
How It Works
To check whether a Fermat number is prime, you first compute . For small , you can test primality directly. Fermat himself conjectured that every Fermat number is prime, but Euler showed in 1732 that , disproving the conjecture. No additional Fermat primes beyond have ever been found, and it remains an open question whether infinitely many exist.
Worked Example
Problem: Determine whether the Fermat number is prime.
Step 1: Compute the exponent: .
Step 2: Compute the Fermat number: .
Step 3: Test primality. Check divisibility by all primes up to : the primes 2, 3, 5, 7, 11, and 13 do not divide 257.
Answer: is a Fermat prime.
Why It Matters
Gauss proved that a regular polygon with sides can be constructed using only a compass and straightedge if and only if is a product of a power of 2 and distinct Fermat primes. This connects Fermat primes directly to classical geometric constructions. They also appear in areas of cryptography and coding theory where powers of 2 play a structural role.
Common Mistakes
Mistake: Assuming can be prime for any odd that is not a power of 2.
Correction: If has an odd factor greater than 1, then is always composite. For to have a chance at being prime, must itself be a power of 2, which is why the formula uses .
