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