Fermat number
A Fermat number is a special positive number. Fermat numbers are named after Pierre de Fermat. The formula that generates them is
where n is a nonnegative integer. The first nine Fermat numbers are (sequence A000215 in the OEIS):
- F0 = 21 + 1 = 3
- F1 = 22 + 1 = 5
- F2 = 24 + 1 = 17
- F3 = 28 + 1 = 257
- F4 = 216 + 1 = 65537
- F5 = 232 + 1 = 4294967297 = 641 × 6700417
- F6 = 264 + 1 = 18446744073709551617 = 274177 × 67280421310721
- F7 = 2128 + 1 = 340282366920938463463374607431768211457 = 59649589127497217 × 5704689200685129054721
- F8 = 2256 + 1 = 115792089237316195423570985008687907853269984665640564039457584007913129639937 = 1238926361552897 × 93461639715357977769163558199606896584051237541638188580280321
As of 2007, only the first 12 Fermat numbers have been completely factored. (written as a product of prime numbers) These factorizations can be found at Prime Factors of Fermat Numbers.
If 2n + 1 is prime, and n > 0, it can be shown that n must be a power of two. Every prime of the form 2n + 1 is a Fermat number, and such primes are called Fermat primes. The only known Fermat primes are F0,...,F4.
Interesting things about Fermat numbers
- No two Fermat numbers have common divisors.
- Fermat numbers can be calculated recursively: To get the Nth number, multiply all Fermat numbers before it, and add two to the result.
What they are used for
Today, Fermat numbers can be used to generate random numbers, between 0 and some value N, which is a power of 2.
Fermat's conjecture
Fermat, when he was studying these numbers, conjectured that all Fermat numbers were prime. This was proven to be wrong by Leonhard Euler, who factorised in 1732.
|
|---|
|
|
Other polynomial numbers |
|---|
- Hilbert
- Idoneal
- Leyland
- Loeschian
- Lucky numbers of Euler
|
|
|
|---|
- Fibonacci
- Jacobsthal
- Leonardo
- Lucas
- Padovan
- Pell
- Perrin
|
|
Possessing a specific set of other numbers |
|---|
- Congruent
- Knödel
- Riesel
- Sierpiński
|
|
Expressible via specific sums |
|---|
- Nonhypotenuse
- Polite
- Practical
- Primary pseudoperfect
- Ulam
- Wolstenholme
|
|
Figurate numbers |
|---|
| 2-dimensional | | centered |
- Centered triangular
- Centered square
- Centered pentagonal
- Centered hexagonal
- Centered heptagonal
- Centered octagonal
- Centered nonagonal
- Centered decagonal
- Star
|
|---|
| non-centered |
- Triangular
- Square
- Square triangular
- Pentagonal
- Hexagonal
- Heptagonal
- Octagonal
- Nonagonal
- Decagonal
- Dodecagonal
|
|---|
|
|---|
| 3-dimensional | | centered |
- Centered tetrahedral
- Centered cube
- Centered octahedral
- Centered dodecahedral
- Centered icosahedral
|
|---|
| non-centered |
- Tetrahedral
- Cubic
- Octahedral
- Dodecahedral
- Icosahedral
- Stella octangula
|
|---|
| pyramidal | |
|---|
|
|---|
| 4-dimensional | | non-centered |
- Pentatope
- Squared triangular
- Tesseractic
|
|---|
|
|---|
|
|
Combinatorial numbers |
|---|
- Bell
- Cake
- Catalan
- Dedekind
- Delannoy
- Euler
- Eulerian
- Fuss–Catalan
- Lah
- Lazy caterer's sequence
- Lobb
- Motzkin
- Narayana
- Ordered Bell
- Schröder
- Schröder–Hipparchus
- Stirling first
- Stirling second
|
|
|
|---|
- Wieferich
- Wall–Sun–Sun
- Wolstenholme prime
- Wilson
|
|
Pseudoprimes |
|---|
- Carmichael number
- Catalan pseudoprime
- Elliptic pseudoprime
- Euler pseudoprime
- Euler–Jacobi pseudoprime
- Fermat pseudoprime
- Frobenius pseudoprime
- Lucas pseudoprime
- Lucas–Carmichael number
- Somer–Lucas pseudoprime
- Strong pseudoprime
|
|
Arithmetic functions and dynamics |
|---|
|
|
|
|---|
- Blum
- Cyclic
- Erdős–Nicolas
- Erdős–Woods
- Friendly
- Giuga
- Harmonic divisor
- Lucas–Carmichael
- Pronic
- Regular
- Rough
- Smooth
- Sphenic
- Størmer
- Super-Poulet
- Zeisel
|
|
|
|---|
Arithmetic functions and dynamics | | Digit sum |
- Digit sum
- Digital root
- Self
- Sum-product
|
|---|
| Digit product |
- Multiplicative digital root
- Sum-product
|
|---|
| Coding-related | |
|---|
| Other |
- Dudeney
- Factorion
- Kaprekar
- Kaprekar's constant
- Keith
- Lychrel
- Narcissistic
- Perfect digit-to-digit invariant
- Perfect digital invariant
|
|---|
|
|---|
| P-adic numbers-related | |
|---|
| Digit-composition related |
- Palindromic
- Pandigital
- Repdigit
- Repunit
- Self-descriptive
- Smarandache–Wellin
- Strictly non-palindromic
- Undulating
|
|---|
| Digit-permutation related |
- Cyclic
- Digit-reassembly
- Parasitic
- Primeval
- Transposable
|
|---|
| Divisor-related |
- Equidigital
- Extravagant
- Frugal
- Harshad
- Polydivisible
- Smith
- Vampire
|
|---|
| Other | |
|---|
|
|
|
|
|
|---|
- Pancake number
- Sorting number
|
|
|
|