A composite solution is odd, square-free, and has
ProvedLehmerTotient.counterexample_constraintsnumber-theory
Let be composite, and suppose that divides . Then is odd and square-free, and has at least seven distinct prime factors. This is a known theorem of Lehmer (1932).
Preamble
import Mathlib
Formal statement
namespace LehmerTotient
theorem counterexample_constraints {n : Nat} (hn : 1 < n)
(hcomp : ¬ Nat.Prime n) (h : Nat.totient n ∣ n - 1) :
Odd n ∧ Squarefree n ∧ 7 ≤ (Nat.primeFactors n).card := by sorry
end LehmerTotient
Source
D. H. Lehmer, On Euler's totient function, Bull. Amer. Math. Soc. 38 (1932), 745–751, Theorem 1 (odd and square-free, for n>2) and the conclusion that a composite solution of (1) has at least seven distinct prime factors (summary, p. 751), https://doi.org/10.1090/S0002-9904-1932-05521-5
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.