Erdős Problem 694 #
Reference: erdosproblems.com/694
theorem
Erdos694.erdos_694
(fmax fmin : ℕ → ℕ)
:
(∀ (n : ℕ), IsGreatest (Nat.totient ⁻¹' {n}) (fmax n)) →
(∀ (n : ℕ), IsLeast (Nat.totient ⁻¹' {n}) (fmin n)) →
∃ (o : ℕ → ℝ),
Filter.Tendsto o Filter.atTop (nhds 0) ∧ ∀ (x : ℕ),
sSup {x_1 : ℝ | ∃ (n : ℕ) (_ : n ≤ x) (_ : ∃ (m : ℕ), m.totient = n), ↑(fmax n) / ↑(fmin n) = x_1} = (Real.exp Real.eulerMascheroniConstant + o x) * Real.log (Real.log ↑x)
Let $f_\max(n)$ be the largest $m$ such that $\phi(m) = n$, and $f_\min(n)$ be the smallest such $m$, where $\phi$ is Euler's totient function. Investigate $$ \max_{n\leq x}\frac{f_\max(n)}{f_\min(n)}. $$
GPT-5.5 Pro (prompted by Price) has proved (see also the comments for a summary) that $$ \max_{n\leq x}\frac{f_{\max}(n)}{f_{\min}(n)}=(e^\gamma+o(1))\log\log x. $$
A Lean formalisation of the reduction exists, conditional on Mertens' product theorem and Linnik's theorem; see the formal proof.