{
  "id": "1642",
  "ident": "NS.01642",
  "slug": "erdos-305",
  "title": "Erdős Problem 305",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "For integers $1\\leq a<b$ let $D(a,b)$ be the minimal value of $n_k$ such that there exist\nintegers $1\\leq n_1<\\cdots <n_k$ with\n$$\\frac{a}{b}=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}.$$\nEstimate $D(b)=\\max_{1\\leq a<b}D(a,b)$. Is it true that\n$$D(b) \\ll b(\\log b)^{1+o(1)}?$$\n\nBleicher and Erdős [BlEr76] have shown that $D(b)\\ll b(\\log b)^2$. If $b=p$ is a prime then\n$D(p) \\gg p\\log p$.\n\nThis was solved by Yokota [Yo88], who proved that\n$$D(b)\\ll b(\\log b)(\\log\\log b)^4(\\log\\log\\log b)^2.$$\nThis was improved by Liu and Sawhney [LiSa24] to\n$$D(b)\\ll b(\\log b)(\\log\\log b)^3(\\log\\log\\log b)^{O(1)}.$$",
  "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": "Erdos305.erdos_305",
  "statement_lean": "theorem erdos_305 : ∃ δ : ℕ → ℝ, Tendsto δ atTop (nhds 0) ∧\n    ∃ C : ℝ, 0 < C ∧ ∀ᶠ b : ℕ in atTop,\n      (Dmax b : ℝ) ≤ C * b * (log b) ^ (1 + δ b)",
  "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 305\n\n*References:*\n- [erdosproblems.com/305](https://www.erdosproblems.com/305)\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- [BlEr76] Bleicher, M. N. and Erdős, P., *Denominators of unit fractions*. J. Number Th. (1976),\n  157-168.\n- [Yo88] Yokota, H., *On a problem of Bleicher and Erdős*. J. Number Theory (1988), 198-207.\n- [LiSa24] Liu, Y. and Sawhney, M., *On further questions regarding unit fractions*.\n  arXiv:2404.07113 (2024).\n-/\n\n@[expose] public section\n\nopen Filter Real\n\nnamespace Erdos305\n\n/--\n`D a b` is the minimal value of $n_k$ such that there exist integers $1\\leq n_1<\\cdots <n_k$ with\n$\\frac{a}{b}=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$.\n-/\nnoncomputable def D (a b : ℕ) : ℕ :=\n  sInf {B | ∃ E : Finset ℕ, 0 ∉ E ∧ (∀ n ∈ E, n ≤ B) ∧\n    ∑ n ∈ E, (1 : ℚ) / n = a / b}\n\n/-- $D(b)=\\max_{1\\leq a<b}D(a,b)$. -/\nnoncomputable def Dmax (b : ℕ) : ℕ := (Finset.Ico 1 b).sup fun a ↦ D a b\n\nset_option linter.style.formal_proof_palomar false in\n/--\nFor integers $1\\leq a<b$ let $D(a,b)$ be the minimal value of $n_k$ such that there exist\nintegers $1\\leq n_1<\\cdots <n_k$ with\n$$\\frac{a}{b}=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}.$$\nEstimate $D(b)=\\max_{1\\leq a<b}D(a,b)$. Is it true that\n$$D(b) \\ll b(\\log b)^{1+o(1)}?$$\n\nBleicher and Erdős [BlEr76] have shown that $D(b)\\ll b(\\log b)^2$. If $b=p$ is a prime then\n$D(p) \\gg p\\log p$.\n\nThis was solved by Yokota [Yo88], who proved that\n$$D(b)\\ll b(\\log b)(\\log\\log b)^4(\\log\\log\\log b)^2.$$\nThis was improved by Liu and Sawhney [LiSa24] to\n$$D(b)\\ll b(\\log b)(\\log\\log b)^3(\\log\\log\\log b)^{O(1)}.$$\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/Erdos305.lean#L217\"]\ntheorem erdos_305 : ∃ δ : ℕ → ℝ, Tendsto δ atTop (nhds 0) ∧\n    ∃ C : ℝ, 0 < C ∧ ∀ᶠ b : ℕ in atTop,\n      (Dmax b : ℝ) ≤ C * b * (log b) ^ (1 + δ b) := by\n  sorry\n\n/-- Bleicher and Erdős [BlEr76] have shown that $D(b)\\ll b(\\log b)^2$. -/\n@[category research solved, AMS 11]\ntheorem erdos_305.variants.bleicher_erdos : ∃ C : ℝ, 0 < C ∧\n    ∀ᶠ b : ℕ in atTop, (Dmax b : ℝ) ≤ C * b * (log b) ^ 2 := by\n  sorry\n\n/-- If $b=p$ is a prime then $D(p) \\gg p\\log p$. -/\n@[category research solved, AMS 11]\ntheorem erdos_305.variants.prime_lower_bound : ∃ c : ℝ, 0 < c ∧\n    ∀ᶠ p : ℕ in atTop, p.Prime → c * p * log p ≤ Dmax p := by\n  sorry\n\n/--\nYokota [Yo88] proved that $D(b)\\ll b(\\log b)(\\log\\log b)^4(\\log\\log\\log b)^2$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_305.variants.yokota : ∃ C : ℝ, 0 < C ∧ ∀ᶠ b : ℕ in atTop,\n    (Dmax b : ℝ) ≤ C * b * log b * log (log b) ^ 4 * log (log (log b)) ^ 2 := by\n  sorry\n\n/--\nLiu and Sawhney [LiSa24] proved that $D(b)\\ll b(\\log b)(\\log\\log b)^3(\\log\\log\\log b)^{O(1)}$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_305.variants.liu_sawhney : ∃ C K : ℝ, 0 < C ∧ ∀ᶠ b : ℕ in atTop,\n    (Dmax b : ℝ) ≤ C * b * log b * log (log b) ^ 3 * log (log (log b)) ^ K := by\n  sorry\n\nend Erdos305\n",
  "statement_hash": "300453550addbf58419765c4d4b344a3e0f02ae7bb4d7a81634f50ef5316abdd",
  "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."
}