{
  "id": "1659",
  "ident": "NS.01659",
  "slug": "erdos-309",
  "title": "Erdős Problem 309",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $N\\geq 1$. How many integers can be written as the sum of distinct unit fractions with\ndenominators from $\\{1,\\ldots,N\\}$? Are there $o(\\log N)$ such integers?\n\nIf the number of such integers is $N(n)$ then it is trivial that $N(n)\\leq \\log n+O(1)$. Yokota\n[Yo97] proved that $N(n)\\geq \\log n-O(\\log\\log n)$.\n\nCroot [Cr99] proved that every integer at most\n$$\\leq \\sum_{n\\leq N}\\frac{1}{n}-(\\tfrac{9}{2}+o(1))\\frac{(\\log\\log N)^2}{\\log N}$$\ncan be so represented.\n\nIf $F(N)$ counts the number of integers which can be represented in this fashion, then the\ncurrent best lower bound known is\n$$F(N) \\geq \\log N+\\gamma -\\left(\\frac{\\pi^2}{3}+o(1)\\right)\\frac{(\\log\\log N)^2}{\\log N}$$\ndue to Yokota [Yo02].\n\nThe answer to the question is no: $F(N) \\sim \\log N$. Here $0$ (the empty sum) is counted.",
  "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": "Erdos309.erdos_309",
  "statement_lean": "theorem erdos_309 :\n    ¬ (fun N : ℕ => (F N : ℝ)) =o[atTop] fun 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 309\n\n*References:*\n- [erdosproblems.com/309](https://www.erdosproblems.com/309)\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- [Yo97] Yokota, Hisashi, *On number of integers representable as a sum of unit fractions. II*.\n  J. Number Theory (1997), 162--169.\n- [Cr99] Croot, III, Ernest S., *On some questions of Erdős and Graham about Egyptian fractions*.\n  Mathematika (1999), 359-372.\n- [Yo02] Yokota, Hisashi, *On the number of integers representable as sums of unit fractions.\n  III*. J. Number Theory (2002), 351--372.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics Topology\n\nnamespace Erdos309\n\n/-- The number of integers which can be written as the sum of distinct unit fractions with\ndenominators from $\\{1,\\ldots,N\\}$. -/\nnoncomputable def F (N : ℕ) : ℕ :=\n  {m : ℕ | ∃ A : Finset ℕ, A ⊆ Finset.Icc 1 N ∧ ∑ n ∈ A, (1 / n : ℚ) = m}.ncard\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $N\\geq 1$. How many integers can be written as the sum of distinct unit fractions with\ndenominators from $\\{1,\\ldots,N\\}$? Are there $o(\\log N)$ such integers?\n\nIf the number of such integers is $N(n)$ then it is trivial that $N(n)\\leq \\log n+O(1)$. Yokota\n[Yo97] proved that $N(n)\\geq \\log n-O(\\log\\log n)$.\n\nCroot [Cr99] proved that every integer at most\n$$\\leq \\sum_{n\\leq N}\\frac{1}{n}-(\\tfrac{9}{2}+o(1))\\frac{(\\log\\log N)^2}{\\log N}$$\ncan be so represented.\n\nIf $F(N)$ counts the number of integers which can be represented in this fashion, then the\ncurrent best lower bound known is\n$$F(N) \\geq \\log N+\\gamma -\\left(\\frac{\\pi^2}{3}+o(1)\\right)\\frac{(\\log\\log N)^2}{\\log N}$$\ndue to Yokota [Yo02].\n\nThe answer to the question is no: $F(N) \\sim \\log N$. Here $0$ (the empty sum) is counted.\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/Erdos309.lean#L374\"]\ntheorem erdos_309 :\n    ¬ (fun N : ℕ => (F N : ℝ)) =o[atTop] fun N : ℕ => Real.log N := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- The number of representable integers satisfies $F(N) \\sim \\log N$. -/\n@[category research solved, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos309.lean#L374\"]\ntheorem erdos_309.variants.asymptotic :\n    Tendsto (fun N : ℕ => (F N : ℝ) / Real.log N) atTop (𝓝 1) := by\n  sorry\n\nend Erdos309\n",
  "statement_hash": "38a206a6fa286bb1d1ac52235dc502859892f695b784e086b98758c817049ced",
  "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."
}