Properties of Carmichael Numbers #
We establish Korselt-style properties of Carmichael numbers and use them to prove that every Carmichael number is odd and has at least 3 prime factors.
theorem
IsCarmichaelNumber.prime_sub_one_dvd
{n : ℕ}
(hc : IsCarmichaelNumber n)
{p : ℕ}
(hp : Nat.Prime p)
(hpn : p ∣ n)
:
For a Carmichael number n, every prime p ∣ n satisfies (p - 1) ∣ (n - 1).
This is one direction of Korselt's criterion.
Carmichael numbers are squarefree.
Carmichael numbers are odd.
Since n is squarefree and composite, it has an odd prime factor p.
By Korselt, (p - 1) ∣ (n - 1). Since p ≥ 3, we get 2 ∣ (n - 1),
so n is odd.
Carmichael numbers have at least 3 prime factors.
A product of two distinct primes p * q cannot be Carmichael: Korselt gives
(p-1) ∣ (p*q-1) and (q-1) ∣ (p*q-1), which by coprimality forces
p = q, contradicting distinctness / squarefreeness.