Fermat numbers #
The Fermat numbers are a sequence of natural numbers defined as Nat.fermatNumber n = 2^(2^n) + 1
,
for all natural numbers n
.
Main theorems #
Nat.coprime_fermatNumber_fermatNumber
: two distinct Fermat numbers are coprime.
theorem
Nat.fermatNumber_eq_prod_add_two
(n : ℕ)
:
n.fermatNumber = ∏ k ∈ Finset.range n, k.fermatNumber + 2
theorem
Nat.coprime_fermatNumber_fermatNumber
{k : ℕ}
{n : ℕ}
(h : k ≠ n)
:
n.fermatNumber.Coprime k.fermatNumber
Goldbach's theorem : no two distinct Fermat numbers share a common factor greater than one.
From a letter to Euler, see page 37 in [juskevic2022].