{
  "id": "1574",
  "ident": "NS.01574",
  "slug": "erdos-292",
  "title": "Erdős Problem 292",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A$ be the set of $n\\in \\mathbb{N}$ such that there exist $1\\leq m_1<\\cdots <m_k=n$ with\n$\\sum\\tfrac{1}{m_i}=1$. Explore $A$. In particular, does $A$ have density $1$?\n\nStraus observed that $A$ is closed under multiplication. Furthermore, it is easy to see that $A$\ndoes not contain any prime power.\n\nThe answer is yes, as proved by Martin [Ma00], who in fact proved that if\n$B=\\mathbb{N}\\backslash A$ then, for all large $x$,\n$$\\frac{\\lvert B\\cap [1,x]\\rvert}{x}\\asymp \\frac{\\log\\log x}{\\log x},$$\nand also gave an essentially complete description of $B$ as those integers which are small\nmultiples of prime powers.\n\nvan Doorn has observed that if $n\\in A$ (with $n>1$) then $2n\\in A$ also, since if\n$\\sum \\frac{1}{m_i}=1$ then $\\frac{1}{2}+\\sum\\frac{1}{2m_i}=1$ also.",
  "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": "Erdos292.erdos_292",
  "statement_lean": "theorem erdos_292 : A.HasDensity 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 292\n\n*References:*\n- [erdosproblems.com/292](https://www.erdosproblems.com/292)\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- [Ma00] Martin, Greg, *Denser Egyptian fractions*. Acta Arith. (2000), 231-260.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos292\n\n/-- The set $A$ of $n\\in \\mathbb{N}$ such that there exist $1\\leq m_1<\\cdots <m_k=n$ with\n$\\sum\\tfrac{1}{m_i}=1$. -/\ndef A : Set ℕ :=\n  {n | ∃ S : Finset ℕ, S ⊆ Finset.Icc 1 n ∧ n ∈ S ∧ ∑ m ∈ S, (1 : ℚ) / m = 1}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A$ be the set of $n\\in \\mathbb{N}$ such that there exist $1\\leq m_1<\\cdots <m_k=n$ with\n$\\sum\\tfrac{1}{m_i}=1$. Explore $A$. In particular, does $A$ have density $1$?\n\nStraus observed that $A$ is closed under multiplication. Furthermore, it is easy to see that $A$\ndoes not contain any prime power.\n\nThe answer is yes, as proved by Martin [Ma00], who in fact proved that if\n$B=\\mathbb{N}\\backslash A$ then, for all large $x$,\n$$\\frac{\\lvert B\\cap [1,x]\\rvert}{x}\\asymp \\frac{\\log\\log x}{\\log x},$$\nand also gave an essentially complete description of $B$ as those integers which are small\nmultiples of prime powers.\n\nvan Doorn has observed that if $n\\in A$ (with $n>1$) then $2n\\in A$ also, since if\n$\\sum \\frac{1}{m_i}=1$ then $\\frac{1}{2}+\\sum\\frac{1}{2m_i}=1$ also.\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/Erdos292.lean#L116\"]\ntheorem erdos_292 : A.HasDensity 1 := by\n  sorry\n\n/-- Martin [Ma00] proved that if $B=\\mathbb{N}\\backslash A$ then\n$\\frac{\\lvert B\\cap [1,x]\\rvert}{x}\\asymp \\frac{\\log\\log x}{\\log x}$. -/\n@[category research solved, AMS 11]\ntheorem erdos_292.variants.martin :\n    (fun x : ℕ ↦ ((Aᶜ ∩ Set.Icc 1 x).ncard : ℝ) / x) =Θ[atTop]\n      fun x ↦ Real.log (Real.log x) / Real.log x := by\n  sorry\n\n/-- Straus observed that $A$ is closed under multiplication. -/\n@[category research solved, AMS 11]\ntheorem erdos_292.variants.mul : ∀ m ∈ A, ∀ n ∈ A, m * n ∈ A := by\n  sorry\n\n/-- $A$ does not contain any prime power. -/\n@[category research solved, AMS 11]\ntheorem erdos_292.variants.prime_pow : ∀ n ∈ A, ¬ IsPrimePow n := by\n  sorry\n\n/-- van Doorn observed that if $n\\in A$ (with $n>1$) then $2n\\in A$ also. -/\n@[category research solved, AMS 11]\ntheorem erdos_292.variants.two_mul : ∀ n ∈ A, 1 < n → 2 * n ∈ A := by\n  sorry\n\nend Erdos292\n",
  "statement_hash": "b620944a122c1a911ffd845bbfd207e698596f5624597e3da26afa5538584991",
  "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."
}