Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 694

Source:Erdős Problems · erdosproblems.com/694
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let f_\max(n) be the largest mm such that ϕ(m)=n\phi(m) = n, and f_\min(n) be the smallest such mm, 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≤xfmax⁡(n)fmin⁡(n)=(eγ+o(1))log⁡log⁡x. \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.

The extrema are only required on nonempty fibres of the totient (values such as 33 have no preimage), and the identity is asked for sufficiently large xx: at x=1x = 1 the maximum is f_\max(1) / f_\min(1) = 2 while log⁡log⁡1=0\log \log 1 = 0.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.02891 [math.NT] · NS.02891v1 for this version
Declaration:Erdos694.erdos_694
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:064c81ee13f0cdac8a42d4e184dbdf44131d9b9a51491ca76f365b98a5f6e3b9
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/694.lean

Formal statement

theorem erdos_694 : ∀ᵉ (fmax : ℕ → ℕ) (fmin : ℕ → ℕ),
      (∀ n, (∃ m, Nat.totient m = n) → IsGreatest (Nat.totient ⁻¹' {n}) (fmax n)) →
      (∀ n, (∃ m, Nat.totient m = n) → IsLeast (Nat.totient ⁻¹' {n}) (fmin n)) →
      ∃ o : ℕ → ℝ, Tendsto o atTop (𝓝 0) ∧
        ∀ᶠ x : ℕ in atTop,
          sSup { (fmax n : ℝ) / fmin n | (n : ℕ) (_ : n ≤ x) (_ : ∃ m, Nat.totient m = n) } =
            (exp eulerMascheroniConstant + o x) * log (log (x : ℝ))
Show the full Challenge.lean (82 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 694

*Reference:* [erdosproblems.com/694](https://www.erdosproblems.com/694)
-/

@[expose] public section

namespace Erdos694

open Filter Topology Real

/--
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](https://github.com/Shashi456/erdos-formalizations/blob/main/Erdos/P694/Proof.lean).

The extrema are only required on nonempty fibres of the totient (values such as $3$ have no
preimage), and the identity is asked for sufficiently large $x$: at $x = 1$ the maximum is
$f_\max(1) / f_\min(1) = 2$ while $\log \log 1 = 0$.
-/
@[category research solved, AMS 11]
theorem erdos_694 : ∀ᵉ (fmax : ℕ → ℕ) (fmin : ℕ → ℕ),
      (∀ n, (∃ m, Nat.totient m = n) → IsGreatest (Nat.totient ⁻¹' {n}) (fmax n)) →
      (∀ n, (∃ m, Nat.totient m = n) → IsLeast (Nat.totient ⁻¹' {n}) (fmin n)) →
      ∃ o : ℕ → ℝ, Tendsto o atTop (𝓝 0) ∧
        ∀ᶠ x : ℕ in atTop,
          sSup { (fmax n : ℝ) / fmin n | (n : ℕ) (_ : n ≤ x) (_ : ∃ m, Nat.totient m = n) } =
            (exp eulerMascheroniConstant + o x) * log (log (x : ℝ)) := by
  sorry

/--
Carmichael has asked whether there is an integer $n$ for which $\phi(m) = n$ has
exactly one solution, that is $\frac{f_\max(n)}{f_\min(n)} = 1$.
-/
@[category research open, question, AMS 11]
theorem erdos_694.variants.carmichael :
    ∃ n > 0, ∃! m, Nat.totient m = n := by
  sorry

/--
Erdős has proved that if there exists an integer $n$ for which $\phi(m) = n$ has
exactly one solution, then there must be infinitely many such $n$.
-/
@[category research solved, AMS 11]
theorem erdos_694.variants.inf_unique (h : ∃ n > 0, ∃! m, Nat.totient m = n) :
    { n | ∃! m, Nat.totient m = n }.Infinite := by
  sorry

end Erdos694

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos694.erdos_694 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_694 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-694
nosorry submit erdos-694 nosorry/erdos-694/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.