Is Erdős Problem #408 solved?
Open. erdosproblems.com lists it as open (their entry updated 31 Aug 2025).
The problem
erdosproblems.com/408 ↗Thomas Bloom's erdosproblems.com has the statement, its history and references. In the words of Formal Conjectures:
Let \(\phi(n)\) be the Euler totient function and \(\phi_k(n)\) be the iterated \(\phi\) function, so that \(\phi_1(n)=\phi(n)\) and \(\phi_k(n)=\phi(\phi_{k-1}(n))\). Let $$f(n) = \min\{k : \phi_k(n)=1\}.$$ Does \(f(n)/\log n\) have a distribution function?
We ask for a distribution function \(F\) (non-decreasing, with \(F(-\infty) = 0\) and \(F(+\infty) = 1\)) such that, for every continuity point \(c\) of \(F\), the set \(\{n : f(n)/\log n \leq c\}\) has natural density \(F(c)\). For \(n \leq 1\) the quotient is \(0\) in Lean, which does not affect densities. Erdős, Granville, Pomerance and Spiro [EGPS90] proved that the answer is yes, conditional on a form of the Elliott–Halberstam conjecture.
In Lean:
theorem erdos_408.parts.i :
∃ F : ℝ → ℝ, Monotone F ∧ Tendsto F atBot (𝓝 0) ∧ Tendsto F atTop (𝓝 1) ∧
∀ c : ℝ, ContinuousAt F c →
{n : ℕ | (f n : ℝ) / Real.log n ≤ c}.HasDensity (F c)Stated in Lean
in the atlas →4 statements (the problem, its parts and variants) from Formal Conjectures. A proof submitted here is built and checked by Lean's kernel on our node.
Erdos408.erdos_408.parts.isolved upstreamtheorem erdos_408.parts.i : ∃ F : ℝ → ℝ, Monotone F ∧ Tendsto F atBot (𝓝 0) ∧ Tendsto F atTop (𝓝 1) ∧ ∀ c : ℝ, ContinuousAt F c → {n : ℕ | (f n : ℝ) / Real.log n ≤ c}.HasDensity (F c)Erdos408.erdos_408.parts.iisolved upstreamtheorem erdos_408.parts.ii : ∃ α : ℝ, ∀ ε > (0 : ℝ), {n : ℕ | |(f n : ℝ) / Real.log n - α| < ε}.HasDensity 1Erdos408.erdos_408.variants.pillaisolved upstreamtheorem erdos_408.variants.pillai (n : ℕ) (hn : 2 ≤ n) : ⌊(Real.log n - Real.log 2) / Real.log 3⌋₊ + 1 ≤ f n ∧ f n ≤ ⌊Real.log n / Real.log 2⌋₊ + 1Erdos408.erdos_408.variants.ford_konyagin_lucasolved upstreamtheorem erdos_408.variants.ford_konyagin_luca (ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) : ∃ k : ℕ, ∀ᶠ x : ℝ in atTop, (1 - ε) * x ≤ ((Finset.Icc 1 ⌊x⌋₊).filter fun n ↦ ((Nat.totient^[k] n).maxPrimeFac : ℝ) ≤ x ^ δ).card