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 284

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

Let f(k)f(k) be the maximal value of n1n_1 such that there exist n1<n2<⋯<nkn_1<n_2<\cdots <n_k with 1=1n1+⋯+1nk.1=\frac{1}{n_1}+\cdots+\frac{1}{n_k}. Is it true that f(k)=(1+o(1))ke−1?f(k)=(1+o(1))\frac{k}{e-1}?

Asked by Erdős and Graham [ErGr80, p. 33]. We state it as f(k)/k→1/(e−1)f(k)/k\to 1/(e-1), which is equivalent. Essentially solved by Croot [Cr01], who showed that for any N>1N>1 there exists some k≥1k\geq 1 and N<n1<⋯<nk≤(e+o(1))NN<n_1<\cdots <n_k \leq (e+o(1))N with 1=∑1ni1=\sum \frac{1}{n_i}. See also erdosproblems.com/286.

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

Formal statement

theorem erdos_284 :
    Tendsto (fun k : ℕ ↦ (f k : ℝ) / k) atTop (nhds (1 / (Real.exp 1 - 1)))
Show the full Challenge.lean (82 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 284

*References:*
- [erdosproblems.com/284](https://www.erdosproblems.com/284)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathématique 28 (1980).
- [Cr01] Croot, III, Ernest S., *On unit fractions with denominators in short intervals*. Acta
  Arith. 99 (2001), 99-114. [arXiv:math/9904181](https://arxiv.org/abs/math/9904181)
-/

@[expose] public section

open Filter

namespace Erdos284

/-- `IsRepresentation k n` says that `n 0 < n 1 < ⋯ < n (k - 1)` are positive integers with
$$1 = \frac{1}{n_0} + \cdots + \frac{1}{n_{k-1}}.$$
The sum is taken in `ℝ`. -/
def IsRepresentation (k : ℕ) (n : Fin k → ℕ) : Prop :=
  StrictMono n ∧ 0 ∉ Set.range n ∧ 1 = ∑ i, (1 : ℝ) / n i

/-- The possible values of the first denominator `n 0` in a representation with exactly `k`
terms. This set is empty for `k = 0` and `k = 2`, and equal to `{1}` for `k = 1`. -/
def firstDenominators (k : ℕ) : Set ℕ :=
  {m | ∃ (hk : 0 < k) (n : Fin k → ℕ), IsRepresentation k n ∧ n ⟨0, hk⟩ = m}

/-- $f(k)$, the maximal first denominator in a representation with exactly `k` terms, as a
`sSup`. If no representation exists (`k = 0` and `k = 2`), the value is the junk value `0`.
Otherwise the set is bounded by `k`, because $1/n_i \leq 1/n_0$ gives $n_0 \leq k$, so `f k` is
its maximum. -/
noncomputable def f (k : ℕ) : ℕ :=
  sSup (firstDenominators k)

/-- For all large `k`, `f k` is the greatest element of `firstDenominators k`. -/
@[category API, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos284.lean#L82"]
theorem eventually_f_isGreatest :
    ∀ᶠ k : ℕ in atTop, IsGreatest (firstDenominators k) (f k) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Let $f(k)$ be the maximal value of $n_1$ such that there exist $n_1<n_2<\cdots <n_k$ with
$$1=\frac{1}{n_1}+\cdots+\frac{1}{n_k}.$$
Is it true that
$$f(k)=(1+o(1))\frac{k}{e-1}?$$

Asked by Erdős and Graham [ErGr80, p. 33]. We state it as $f(k)/k\to 1/(e-1)$, which is
equivalent. Essentially solved by Croot [Cr01], who showed that for any $N>1$ there exists some
$k\geq 1$ and
$$N<n_1<\cdots <n_k \leq (e+o(1))N$$
with $1=\sum \frac{1}{n_i}$. See also [erdosproblems.com/286](https://www.erdosproblems.com/286).
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos284.lean#L97"]
theorem erdos_284 :
    Tendsto (fun k : ℕ ↦ (f k : ℝ) / k) atTop (nhds (1 / (Real.exp 1 - 1))) := by
  sorry

end Erdos284

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

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

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.