{
  "id": "1550",
  "ident": "NS.01550",
  "slug": "erdos-284",
  "title": "Erdős Problem 284",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(k)$ be the maximal value of $n_1$ such that there exist $n_1<n_2<\\cdots <n_k$ with\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}.$$\nIs it true that\n$$f(k)=(1+o(1))\\frac{k}{e-1}?$$\n\nAsked by Erdős and Graham [ErGr80, p. 33]. We state it as $f(k)/k\\to 1/(e-1)$, which is\nequivalent. Essentially solved by Croot [Cr01], who showed that for any $N>1$ there exists some\n$k\\geq 1$ and\n$$N<n_1<\\cdots <n_k \\leq (e+o(1))N$$\nwith $1=\\sum \\frac{1}{n_i}$. See also [erdosproblems.com/286](https://www.erdosproblems.com/286).",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos284.erdos_284",
  "statement_lean": "theorem erdos_284 :\n    Tendsto (fun k : ℕ ↦ (f k : ℝ) / k) atTop (nhds (1 / (Real.exp 1 - 1)))",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 284\n\n*References:*\n- [erdosproblems.com/284](https://www.erdosproblems.com/284)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathématique 28 (1980).\n- [Cr01] Croot, III, Ernest S., *On unit fractions with denominators in short intervals*. Acta\n  Arith. 99 (2001), 99-114. [arXiv:math/9904181](https://arxiv.org/abs/math/9904181)\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos284\n\n/-- `IsRepresentation k n` says that `n 0 < n 1 < ⋯ < n (k - 1)` are positive integers with\n$$1 = \\frac{1}{n_0} + \\cdots + \\frac{1}{n_{k-1}}.$$\nThe sum is taken in `ℝ`. -/\ndef IsRepresentation (k : ℕ) (n : Fin k → ℕ) : Prop :=\n  StrictMono n ∧ 0 ∉ Set.range n ∧ 1 = ∑ i, (1 : ℝ) / n i\n\n/-- The possible values of the first denominator `n 0` in a representation with exactly `k`\nterms. This set is empty for `k = 0` and `k = 2`, and equal to `{1}` for `k = 1`. -/\ndef firstDenominators (k : ℕ) : Set ℕ :=\n  {m | ∃ (hk : 0 < k) (n : Fin k → ℕ), IsRepresentation k n ∧ n ⟨0, hk⟩ = m}\n\n/-- $f(k)$, the maximal first denominator in a representation with exactly `k` terms, as a\n`sSup`. If no representation exists (`k = 0` and `k = 2`), the value is the junk value `0`.\nOtherwise the set is bounded by `k`, because $1/n_i \\leq 1/n_0$ gives $n_0 \\leq k$, so `f k` is\nits maximum. -/\nnoncomputable def f (k : ℕ) : ℕ :=\n  sSup (firstDenominators k)\n\n/-- For all large `k`, `f k` is the greatest element of `firstDenominators k`. -/\n@[category API, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos284.lean#L82\"]\ntheorem eventually_f_isGreatest :\n    ∀ᶠ k : ℕ in atTop, IsGreatest (firstDenominators k) (f k) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(k)$ be the maximal value of $n_1$ such that there exist $n_1<n_2<\\cdots <n_k$ with\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}.$$\nIs it true that\n$$f(k)=(1+o(1))\\frac{k}{e-1}?$$\n\nAsked by Erdős and Graham [ErGr80, p. 33]. We state it as $f(k)/k\\to 1/(e-1)$, which is\nequivalent. Essentially solved by Croot [Cr01], who showed that for any $N>1$ there exists some\n$k\\geq 1$ and\n$$N<n_1<\\cdots <n_k \\leq (e+o(1))N$$\nwith $1=\\sum \\frac{1}{n_i}$. See also [erdosproblems.com/286](https://www.erdosproblems.com/286).\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos284.lean#L97\"]\ntheorem erdos_284 :\n    Tendsto (fun k : ℕ ↦ (f k : ℝ) / k) atTop (nhds (1 / (Real.exp 1 - 1))) := by\n  sorry\n\nend Erdos284\n",
  "statement_hash": "50e3c2adbc0c141e5ab0bfd06761781b9927bf86b573d9002bb9533251458ca4",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}