Fermat number Created 2026-10-07 Updated 2026-10-13
A Fermat number is the positive integer , indexed by a nonnegative integer . The first five are , all prime numbers; the next is the composite number . This family offers a compact lesson in number theory: a very persuasive finite pattern can fail, while an exact divisibility relation settles a gigantic case with little computation.
Figure 1.
Exact Fermat numbers: five initial primes, a composite sixth term, and rapidly increasing decimal lengths
. Details.
Why does the exponent itself have the form ? Suppose is a positive integer with an odd integer factor . The polynomial factorization shows that is a proper divisor of . Consequently, if is a prime number, must be a power of two. That is a necessary condition, rather than a promise that the surviving candidates are prime.
The Fermat number product identity makes distinct Fermat numbers coprime integers. Thus every term has a prime factor absent from all earlier terms, whether or not that term is itself a prime number. This gives an explicit route to infinitely many different prime numbers, without establishing that infinitely many terms of this particular sequence are prime. Meanwhile the prime divisor of a Fermat number criterion filters possible factors through a small multiplicative order calculation.
The family also links arithmetic to Euclidean geometry: a constructible regular polygon can have a number of sides equal to a power of two times a product of distinct Fermat primes. The Gauss-Wantzel theorem gives the precise criterion. For instance, and qualify, but does not. The word "distinct" matters. Carl Pomerance describes this connection in Primality testing: then and now by Carl Pomerance (slide 18).
Historically, Leonhard Euler records Pierre de Fermat's proposed primality pattern, then refutes it by finding the factor of . His paper was presented in 1732 and published in 1738; those are different events, not competing dates for one publication.[ref]
A short modern check needs only two representations of :
In modular arithmetic these give and . Substitution yields , so . This verifies the factor directly; it does not claim to reconstruct Euler's search process.
Fermat prime Created 2026-09-24 Updated 2026-10-14
A Fermat prime is a Fermat number that is also a prime number:
The defining form alone does not imply primality. For example, is a Fermat prime, while is a Fermat number with proper divisors. For , every Fermat prime is one modulo four and two modulo three. Pépin's test gives an exact primality testing criterion for these candidates, rather than relying on their form.
Gauss-Wantzel theorem 2026-10-14
For , a regular polygon with sides is a constructible regular polygon exactly when , where is a nonnegative integer and the are distinct Fermat primes; the product may be empty. Thus seventeen and fifteen qualify, while nine does not. Carl Friedrich Gauss established sufficiency, and Pierre Wantzel proved necessity in 1837.[ref]
Euler's criterion states that for an odd prime number and ,
where the right-hand side is the Legendre symbol.
Let be a primitive root modulo . Its multiplicative order is , so . This power has square , and the only roots of modulo the odd prime are . Therefore
Euler's criterion now gives , so every primitive root is a quadratic nonresidue.
Now let be a Fermat prime, with . The number of primitive roots modulo is
There are also exactly quadratic nonresidues. Since every primitive root is a nonresidue, these equally large sets coincide. Thus every quadratic nonresidue modulo is a primitive root, as summarized by Quadratic nonresidues modulo a Fermat prime.
Finally, and . Quadratic reciprocity therefore gives
Hence is a quadratic nonresidue modulo , and consequently
The characteristic of a field is the least positive integer with , or zero if none exists. Finiteness forces a positive characteristic, since the sequence of integer multiples of one must repeat. If this least integer factored into two smaller positive factors, their nonzero field multiples would multiply to zero, contradicting the absence of zero divisors. Hence it is prime. The field is a finite-dimensional vector space over its prime subfield , so choosing a basis gives .
A nonzero polynomial of degree over a field has at most roots: each root supplies a linear factor by polynomial division, and induction applies to the quotient. In particular has at most roots. The elements of whose orders divide are precisely those roots. The permitted finite-group criterion therefore proves is cyclic.
For the final assertion take an odd Fermat prime , . Primality forces to be a power of two: an odd factor in would factor nontrivially. Since , the order of two divides but not . As is a power of two, its only divisor not dividing is itself. Thus
It generates the full group exactly when , which holds for and fails for . Therefore the possibilities are , equivalently among odd Fermat primes. The oddness is implicit in referring to two as a unit; is not an admissible case for that claim.
The characteristic of a field is the least positive integer with , or zero if none exists. Finiteness forces a positive characteristic, since the sequence of integer multiples of one must repeat. If this least integer factored into two smaller positive factors, their nonzero field multiples would multiply to zero, contradicting the absence of zero divisors. Hence it is prime. The field is a finite-dimensional vector space over its prime subfield , so choosing a basis gives .
A nonzero polynomial of degree over a field has at most roots: each root supplies a linear factor by polynomial division, and induction applies to the quotient. In particular has at most roots. The elements of whose orders divide are precisely those roots. The permitted finite-group criterion therefore proves is cyclic.
For the final assertion take an odd Fermat prime , . Primality forces to be a power of two: an odd factor in would factor nontrivially. Since , the order of two divides but not . As is a power of two, its only divisor not dividing is itself. Thus
It generates the full group exactly when , which holds for and fails for . Therefore the possibilities are , equivalently among odd Fermat primes. The oddness is implicit in referring to two as a unit; is not an admissible case for that claim.