{
  "id": "1581",
  "ident": "NS.01581",
  "slug": "erdos-294",
  "title": "Erdős Problem 294",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $N\\geq 1$ and let $t(N)$ be the least integer $t$ such that there is no solution to\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$$\nwith $t=n_1<\\cdots <n_k\\leq N$. Estimate $t(N)$.\n\nSolved by Liu and Sawhney [LiSa24, Theorem 1.6] (up to $(\\log\\log N)^{O(1)}$), who proved that\n$$\\frac{N}{(\\log N)(\\log\\log N)^3(\\log\\log\\log N)^{O(1)}}\\ll t(N) \\ll \\frac{N}{\\log N}.$$\nThe unspecified $O(1)$ exponent is the real number `K`.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos294.erdos_294",
  "statement_lean": "theorem erdos_294 :\n    (∃ K : ℝ, (fun N : ℕ => (N : ℝ) / (Real.log N * Real.log (Real.log N) ^ 3 *\n        Real.log (Real.log (Real.log N)) ^ K)) ≪ (fun N : ℕ => (t N : ℝ))) ∧\n    ((fun N : ℕ => (t N : ℝ)) ≪ (fun N : ℕ => (N : ℝ) / Real.log N))",
  "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 294\n\n*References:*\n- [erdosproblems.com/294](https://www.erdosproblems.com/294)\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [LiSa24] Liu, Y. and Sawhney, M., *On further questions regarding unit fractions*.\n  [arXiv:2404.07113](https://arxiv.org/abs/2404.07113) (2024).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos294\n\n/-- `HasUnitFractionSolution m N` says that $1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$ for some\nintegers $m=n_1<\\cdots<n_k\\leq N$: the $n_i$ form a finite set `s` whose least element is `m`. -/\ndef HasUnitFractionSolution (m N : ℕ) : Prop :=\n  ∃ s : Finset ℕ, m ∈ s ∧ (∀ n ∈ s, m ≤ n ∧ n ≤ N) ∧ ∑ n ∈ s, (1 : ℚ) / n = 1\n\n/-- $t(N)$: the least positive integer $t$ such that there is no solution to\n$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$ with $t=n_1<\\cdots<n_k\\leq N$. The set of candidates\ncontains $N+1$, so `sInf` is a true minimum. -/\nnoncomputable def t (N : ℕ) : ℕ :=\n  sInf {m : ℕ | 0 < m ∧ ¬ HasUnitFractionSolution m N}\n\n/-- For $N\\geq 1$ the solution $1=\\frac11$ shows that $t=1$ is not a candidate. -/\n@[category API, AMS 11]\ntheorem hasUnitFractionSolution_one {N : ℕ} (hN : 1 ≤ N) : HasUnitFractionSolution 1 N :=\n  ⟨{1}, by simp, by simpa using hN, by simp⟩\n\n/-- The set defining $t(N)$ contains $N+1$, so $t(N)\\leq N+1$. -/\n@[category API, AMS 11]\ntheorem t_le_succ (N : ℕ) : t N ≤ N + 1 :=\n  Nat.sInf_le ⟨Nat.succ_pos N, fun h => by\n    obtain ⟨s, hs, hall, -⟩ := h\n    have := (hall _ hs).2\n    omega⟩\n\n/--\nLet $N\\geq 1$ and let $t(N)$ be the least integer $t$ such that there is no solution to\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$$\nwith $t=n_1<\\cdots <n_k\\leq N$. Estimate $t(N)$.\n\nSolved by Liu and Sawhney [LiSa24, Theorem 1.6] (up to $(\\log\\log N)^{O(1)}$), who proved that\n$$\\frac{N}{(\\log N)(\\log\\log N)^3(\\log\\log\\log N)^{O(1)}}\\ll t(N) \\ll \\frac{N}{\\log N}.$$\nThe unspecified $O(1)$ exponent is the real number `K`.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_294 :\n    (∃ K : ℝ, (fun N : ℕ => (N : ℝ) / (Real.log N * Real.log (Real.log N) ^ 3 *\n        Real.log (Real.log (Real.log N)) ^ K)) ≪ (fun N : ℕ => (t N : ℝ))) ∧\n    ((fun N : ℕ => (t N : ℝ)) ≪ (fun N : ℕ => (N : ℝ) / Real.log N)) := by\n  sorry\n\n/--\nErdős and Graham [ErGr80, p. 35] could show that $t(N)\\ll\\frac{N}{\\log N}$. They gave no proof;\none is in [LiSa24, Section 4].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_294.variants.erdos_graham_upper :\n    (fun N : ℕ => (t N : ℝ)) ≪ (fun N : ℕ => (N : ℝ) / Real.log N) := by\n  sorry\n\nend Erdos294\n",
  "statement_hash": "bafe186ea850bbcaab4dfc6b41f2ceb7d7ff37bef761f591bde70563052f94b0",
  "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."
}