{
  "id": "1049",
  "ident": "NS.01049",
  "slug": "erdos-124",
  "title": "Erdős Problem 124",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let  $3 \\le d_1 < d_2 < \\dots < d_r$ be integers such that\n$$\\sum_{1 \\le i \\le r}\\frac 1{d_i - 1} \\ge 1.$$\nCan all sufficiently large integers be written as a sum of the shape $\\sum_i c_ia_i$\nwhere $c_i \\in \\{0, 1\\}$ and $a_i$ has only the digits $0, 1$ when written in base $d_i$?\n\nConjectured by Erdős [Er97], solved by Boris Alexeev using Aristotle.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos124.erdos124.zero",
  "statement_lean": "lemma erdos124.zero :\n    ∀ D : Finset ℕ, (∀ d ∈ D, 3 ≤ d) → 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ →\n      ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d 0",
  "challenge_source": "/-\nCopyright 2025 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 124\n\n*References:*\n- [erdosproblems.com/124](https://www.erdosproblems.com/124)\n- [BEGL96] Burr, S. A. and Erdős, P. and Graham, R. L. and Li, W. Wen-Ching, Complete sequences of sets of integer powers. Acta Arith. (1996), 133-138.\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Pointwise\n\nnamespace Erdos124\n\n/-- The set of integers which are the sum of distinct powers `d ^ i` with `i ≥ k`. -/\ndef sumsOfDistinctPowers (d k : ℕ) : Set ℕ :=\n  {x | ∃ s : Finset ℕ, (∀ i ∈ s, k ≤ i) ∧ ∑ i ∈ s, d ^ i = x}\n\n/--\nLet  $3 \\le d_1 < d_2 < \\dots < d_r$ be integers such that\n$$\\sum_{1 \\le i \\le r}\\frac 1{d_i - 1} \\ge 1.$$\nCan all sufficiently large integers be written as a sum of the shape $\\sum_i c_ia_i$\nwhere $c_i \\in \\{0, 1\\}$ and $a_i$ has only the digits $0, 1$ when written in base $d_i$?\n\nConjectured by Erdős [Er97], solved by Boris Alexeev using Aristotle.\n-/\n@[category research solved, question, AMS 11]\nlemma erdos124.zero :\n    ∀ D : Finset ℕ, (∀ d ∈ D, 3 ≤ d) → 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ →\n      ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d 0 := sorry\n\n/--\nLet $k \\ne 0$ and $3\\leq d_1 < d_2 < \\cdots < d_r$ be integers of gcd equal to $1$ such that\n$$\\sum_{1 \\le i \\le r}\\frac 1{d_i - 1} \\ge 1.$$\nCan all sufficiently large integers be written as a sum of the shape $\\sum_i c_ia_i$\nwhere $c_i \\in \\{0, 1\\}$ and $a_i$ is divisible by $d_i ^ k$ and has only the digits $0, 1$ when\nwritten in base $d_i$?\n\nConjectured by Burr, Erdős, Graham, and Li [BEGL96]\n-/\n@[category research open, question, AMS 11]\nlemma erdos124.ne_zero :\n    ∀ k ≠ 0, ∀ D : Finset ℕ, (∀ d ∈ D, 3 ≤ d) → 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ → D.gcd id = 1 →\n      ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d k := by\n  sorry\n\n/--\nAll sufficiently large integers can be written as $a + b + c$, where $a$, $b$, and $c$ are\ndivisible by $3$, $4$, and $7$ respectively, and after division by that base have only the\ndigits $0, 1$ in that base.\n\nProved by Burr, Erdős, Graham, and Li [BEGL96]\n-/\n@[category research solved, AMS 11]\nlemma erdos124.ne_zero_three_four_seven :\n    ∀ᶠ n in atTop,\n      n ∈ sumsOfDistinctPowers 3 1 + sumsOfDistinctPowers 4 1 + sumsOfDistinctPowers 7 1 :=\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $3\\leq d_1 < d_2 < \\cdots < d_r$ be integers such that all sufficiently large integers can be\nwritten as a sum of the shape $\\sum_i c_ia_i$ where $c_i \\in \\{0, 1\\}$ and $a_i$ has only the digits\n$0, 1$ when written in base $d_i$. Then\n$$\\sum_{1 \\le i \\le r}\\frac 1{d_i - 1} \\ge 1.$$\n\nReported by Burr, Erdős, Graham, and Li [BEGL96] as an observation of Pomerance\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at \"https://github.com/arex1337/formal-conjectures-proofs/blob/3b7d581c75fd00e482deabfb20675cf3ccfaf49f/Erdos124/Converse.lean\"]\nlemma erdos124.converse {D : Finset ℕ} (hD₃ : ∀ d ∈ D, 3 ≤ d)\n    (h : ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d 0) : 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ :=\n  sorry\n\n/--\nFor any $\\varepsilon > 0$, there exists an infinite sequence $2 \\le d_0 < d_1 < \\dots$ such\nthat the series $\\sum_{i=0}^{\\infty} \\frac{1}{d_i - 1}$ converges to a value at most\n$\\varepsilon$, and yet for every $k \\ne 0$ all sufficiently large integers can be written as\n$\\sum_{i \\in I} a_i$ for some finite set $I$, where each $a_i$ is divisible by $d_i^k$ and has\nonly the digits $0, 1$ when written in base $d_i$.\n\nThe restriction $k \\ne 0$ excludes the degenerate representation of $n$ as a sum of $n$ copies\nof $1 = d_i^0$ taken from $n$ distinct bases.\n\nProved by Melfi [Me04, Proposition 1]\n-/\n@[category research solved, AMS 11]\nlemma erdos124.melfi_construction {ε : ℝ} (hε : 0 < ε) :\n    ∃ d : ℕ → ℕ, StrictMono d ∧ 2 ≤ d 0 ∧\n      Summable (fun i ↦ (d i - 1 : ℝ)⁻¹) ∧ ∑' i, (d i - 1 : ℝ)⁻¹ ≤ ε ∧ ∀ k ≠ 0, ∀ᶠ n in atTop,\n      ∃ (I : Finset ℕ) (a : ℕ → ℕ), (∀ i ∈ I, a i ∈ sumsOfDistinctPowers (d i) k) ∧\n        ∑ i ∈ I, a i = n := by\n  sorry\n\nend Erdos124\n",
  "statement_hash": "08391b66c3e42d50d10795aa04beb241ececca9e5eff40fdfecf4125fb563a26",
  "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."
}