{
  "id": "1045",
  "ident": "NS.01045",
  "slug": "erdos-123",
  "title": "Erdős Problem 123",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $a, b, c$ be three integers which are pairwise coprime. Is every large integer\nthe sum of distinct integers of the form $a^k b^l c^m$ ($k, l, m ≥ 0$), none of which\ndivide any other?\n\nEquivalently: is the set $\\{a^k b^l c^m : k, l, m \\geq 0\\}$ d-complete?\n\nNote: For this not to reduce to the two-integer case, we need the integers\nto be greater than one and distinct.\n\nThe prize of \\$250 is offered by Erdős in [Er97] and [Er97e] for a 'proof or disproof'.\n\nThe main problem was resolved in the affirmative by GPT 5.6 (prompted by Snyder).\n\nThis was formalized in Lean by Alexeev.",
  "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": "Erdos123.erdos_123",
  "statement_lean": "theorem erdos_123 : ∀ a > 1, ∀ b > 1, ∀ c > 1, PairwiseCoprime a b c →\n    IsDComplete (↑(powers a) * ↑(powers b) * ↑(powers c))",
  "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 123\n\n*References:*\n- [erdosproblems.com/123](https://www.erdosproblems.com/123)\n- [ChYu23b] Chen, Yong-Gao and Yu, Wang-Xing, On {$d$}-complete sequences of integers, {II}. Acta\n  Arith. (2023), 161--181.\n- [Er92b] Erdős, Paul, Some of my favourite problems in various branches of combinatorics.\n  Matematiche (Catania) (1992), 231-240.\n- [Er97] Erdős, Paul, Problems in number theory. New Zealand J. Math. (1997), 155-160.\n- [Er97e] Erdős, Paul, Some of my favourite unsolved problems. Math. Japon. (1997), 527-537.\n- [ErLe96] Erdős, P. and Lewin, Mordechai, $d$-complete sequences of integers. Math. Comp. (1996),\n  837-840.\n- [MaCh16] Ma, Mi-Mi and Chen, Yong-Gao, On {$d$}-complete sequences of integers. J. Number Theory\n  (2016), 1--12.\n-/\n\n@[expose] public section\n\nopen Filter\nopen Submonoid\nopen scoped Pointwise\n\nnamespace Erdos123\n\n/--\nA sequence is said to be $d$-complete if every large integer is the sum of distinct integers from the\nsequence, none of which divide any other. This particular case of $d$-completeness was conjectured by\nErdős and Lewin [ErLe96], who (among other related results) prove this when $a=3$, $b=5$, and $c=7$.\n-/\ndef IsDComplete (A : Set ℕ) : Prop :=\n  ∀ᶠ n in atTop, ∃ s : Finset ℕ,\n    -- The summands come from A\n    (s : Set ℕ) ⊆ A ∧\n    -- No summand divides another\n    IsAntichain (· ∣ ·) (s : Set ℕ) ∧\n    -- They sum to n\n    s.sum id = n\n\n/--\nCharacterizes a \"snug\" finite set of natural numbers:\nall elements are within a multiplicative factor $(1 + ε)$ of the minimum.\nSpecifically, for a finite set $A$ and $ε > 0$, all $a ∈ A$ satisfy $a < (1 + ε) · min(A)$.\n-/\ndef IsSnug (ε : ℝ) (A : Finset ℕ) : Prop :=\n  ∃ hA : A.Nonempty, ∀ a ∈ A, a < (1 + ε) * A.min' hA\n\n/--\nPredicate for pairwise coprimality of three integers.\nRequires all three input values to be pairwise coprime to each other.\n-/\ndef PairwiseCoprime (a b c : ℕ) : Prop := Pairwise (Nat.Coprime.onFun ![a, b, c])\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $a, b, c$ be three integers which are pairwise coprime. Is every large integer\nthe sum of distinct integers of the form $a^k b^l c^m$ ($k, l, m ≥ 0$), none of which\ndivide any other?\n\nEquivalently: is the set $\\{a^k b^l c^m : k, l, m \\geq 0\\}$ d-complete?\n\nNote: For this not to reduce to the two-integer case, we need the integers\nto be greater than one and distinct.\n\nThe prize of \\$250 is offered by Erdős in [Er97] and [Er97e] for a 'proof or disproof'.\n\nThe main problem was resolved in the affirmative by GPT 5.6 (prompted by Snyder).\n\nThis was formalized in Lean by Alexeev.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/a28a04b6b8ce43d5260a7466677c1f23833bfc38/src/latest/ErdosProblems/Erdos123.lean\"]\ntheorem erdos_123 : ∀ a > 1, ∀ b > 1, ∀ c > 1, PairwiseCoprime a b c →\n    IsDComplete (↑(powers a) * ↑(powers b) * ↑(powers c)) := by sorry\n\n/--\nErdős and Lewin [ErLe96] proved this conjecture when $a = 3$, $b = 5$, and $c = 7$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_123.variants.erdos_lewin_3_5_7 :\n    IsDComplete (↑(powers 3) * ↑(powers 5) * ↑(powers 7)) := by sorry\n\n/--\nA simpler case: the set of numbers of the form $2^k 3^l$ ($k, l ≥ 0$) is d-complete.\n\nThis was initially conjectured by Erdős in 1992, who called it a \"nice and difficult\"\nproblem, but it was quickly proven by Jansen and others using a simple inductive argument:\n- If $n = 2m$ is even, apply the inductive hypothesis to $m$ and double all summands.\n- If $n$ is odd, let $3^k$ be the largest power of $3$ with $3^k ≤ n$, and apply the\n  inductive hypothesis to $n - 3^k$ (which is even).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_123.variants.powers_2_3 : IsDComplete (↑(powers 2) * ↑(powers 3)) := by sorry\n\n/--\nIn [Er92b] Erdős makes the stronger conjecture (for $a=2$, $b=3$, and $c=5$) that, for any\n$\\epsilon>0$, all large integers $n$ can be written as the sum of distinct integers\n$b_1<\\cdots <b_t$ of the form $2^k3^l5^m$ where $b_t<(1+\\epsilon)b_1$.\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_123.variants.powers_2_3_5_snug :\n    ∀ ε > 0, ∀ᶠ n in atTop,\n      ∃ A : Finset ℕ, (A : Set ℕ) ⊆ ↑(powers 2) * ↑(powers 3) * ↑(powers 5) ∧ IsSnug ε A ∧\n        ∑ x ∈ A, x = n := by sorry\n\nend Erdos123\n",
  "statement_hash": "c038ed9ffca1f7e4e876509ff9ed06445a719950dfad9d5d78a2e13a79ebbf64",
  "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."
}