{
  "id": "3691",
  "ident": "NS.03691",
  "slug": "erdos-939",
  "title": "Erdős Problem 939",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "If $r≥4$ then can the sum of $r-2$ coprime $r$-powerful numbers ever be itself $r$-powerful?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos939.erdos_939",
  "statement_lean": "theorem erdos_939 : ∀ r ≥ 4, (Erdos939Sums r).Nonempty",
  "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 939\n\n*References:*\n- [erdosproblems.com/939](https://www.erdosproblems.com/939)\n- [Ni95] Nitaj, A., _On a conjecture of Erdős on 3-powerful numbers_. Bull. London Math. Soc.\n  (1995), 317-318.\n- [Co98] Cohn, J. H. E., _A conjecture of Erdős on 3-powerful numbers_. Math. Comp. (1998),\n  439-440.\n- [Wa24] Walsh, P., _A question of Erdős on 3-powerful numbers and an elliptic curve analogue\n  of the Ankeny-Artin-Chowla conjecture_. arXiv:2404.03970 (2024).\n- [LaPa67] Lander, L. J. and Parkin, T. R., _A counterexample to Euler's sum of powers\n  conjecture_. Math. Comp. (1967), 101-103.\n-/\n\n@[expose] public section\n\nopen Nat\n\nnamespace Erdos939\n\n/--\nA set `S` belongs to `Erdos939Sums r` if it meets the following criteria:\n- The elements are positive. `0` has no prime factors, so it is vacuously `r`-powerful, and\n  the source means positive integers.\n- The size of the set is `$|S| = r - 2$`.\n- The elements of the set are coprime (their greatest common divisor is 1).\n- Every element in `S` is an `$r$-powerful` number.\n- The sum of the elements in `S`, i.e., `$\\sum_{s \\in S} s$`, is also an `$r$-powerful` number.\n\nThe summands are taken to be distinct (`S` is a `Finset`). The source does not say whether\nrepeated summands are allowed; all known examples and constructions use distinct summands.\n-/\ndef Erdos939Sums (r : ℕ) :=\n    {S : Finset ℕ | S.card = r - 2 ∧ S.Coprime ∧ r.Full (∑ s ∈ S, s) ∧\n      ∀ s ∈ S, 0 < s ∧ r.Full s}\n\n/--\nIf $r≥4$ then can the sum of $r-2$ coprime $r$-powerful numbers ever be itself $r$-powerful?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_939 : ∀ r ≥ 4, (Erdos939Sums r).Nonempty := by\n  sorry\n\n/--\nIf $r≥4$, are there at most finitely many sums of $r-2$ coprime $r$-powerful numbers\nthat are themselves $r$-powerful?\n\nThe answer is no: for every $r \\ge 6$ there are infinitely many such sums, see\n`erdos_939.variants.infinite_of_six_le`. (For $r = 4$ and $r = 5$ the question is open; for\n$r = 4$ no example is known at all, see `erdos_939`.)\nA construction in the site's comments, from GPT-5.5 Pro prompted by Price, gives infinitely\nmany for every $r \\ge 6$. This statement quantifies over every $r \\ge 4$, so it stays open at\n$r = 4$ and $r = 5$. The category is unchanged because the construction is recorded in the\ncomments and not in the literature.\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_939.variants.finite : ¬ ∀ r ≥ 4, (Erdos939Sums r).Finite := by\n  sorry\n\n/--\nFor every $r \\ge 6$ there are infinitely many sums of $r - 2$ coprime $r$-powerful numbers that\nare themselves $r$-powerful.\n\nA construction, found by GPT-5.5 Pro prompted by Liam Price and recorded in the comments on\n[erdosproblems.com/939](https://www.erdosproblems.com/forum/thread/939), expands\n$(X+Y)^r = (X-Y)^r + \\sum_{j \\text{ odd}} 2\\binom{r}{j} X^{r-j} Y^j$, splits the $j = 3$ term into\n$\\lfloor r/2 \\rfloor - 2$ distinct pieces to obtain exactly $r - 2$ summands, and takes\n$X = q^r$, $Y = B^r$ with $B$ divisible by all primes in the coefficients and $q > B$ a prime not\ndividing $B$; varying $q$ gives infinitely many solutions.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_939.variants.infinite_of_six_le : ∀ r ≥ 6, (Erdos939Sums r).Infinite := by\n  sorry\n\n/--\nAre there infinitely many triples of coprime $3$-powerful numbers $a, b, c$ such that $a + b = c$?\n\nThe answer is yes. Nitaj [Ni95] proved it, with $2^3\\cdot 3^5\\cdot 73^3 + 271^3 = 919^3$ as an\nexample. In Nitaj's construction at least two of $a, b, c$ are perfect cubes. Cohn [Co98]\nconstructed infinitely many triples of which none is a perfect cube, and Walsh [Wa24] gave a\nfurther construction.\n-/\n@[category research solved, question, AMS 11]\ntheorem erdos_939.variants.triples :\n    {(a,b,c) | ({a, b, c} : Finset ℕ).Coprime ∧\n      0 < a ∧ 0 < b ∧\n      (3).Full a ∧ (3).Full b ∧ (3).Full c ∧\n      a + b = c}.Infinite := by\n  sorry\n\n/--\nCambie has found several examples of the sum of $r - 2$ coprime $r$-powerful numbers being itself\n$r$-powerful. For example when $r=5$ we have\n$$3^7\\cdot 61^5 = 2^8\\cdot3^{10}\\cdot 5^7 + 2^{12}\\cdot 23^6 + 11^5\\cdot 13^5$$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_939.variants.examples : (∃ r ≥ 4, (Erdos939Sums r).Nonempty) := by\n  use 5\n  simp only [ge_iff_le, reduceLeDiff, true_and]\n  unfold Erdos939Sums\n  simp [Set.Nonempty]\n  use {2^8 * 3^10 * 5^7, 2^12 * 23^6, 11^5 * 13^5}\n  simp\n  constructor\n  · unfold Finset.Coprime\n    aesop\n  · norm_num [Nat.Full, Nat.primeFactors, Nat.primeFactorsList]\n\n\n/-- Cambie has also found solutions when $r=7$. -/\n@[category research solved, AMS 11]\ntheorem erdos_939.variants.seven : (Erdos939Sums 7).Nonempty := by\n  sorry\n\n/--\nCambie has also found solutions when $r=8$.\n\nThe source adds that the $r=8$ solution works \"even with the sum of $5$ $8$-powerful numbers\".\nThat is a stronger result than this statement, which asks for the $r - 2 = 6$ summands of\n`Erdos939Sums`.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_939.variants.eight : (Erdos939Sums 8).Nonempty := by\n  sorry\n\n/--\nEuler had conjectured that the sum of $k - 1$ many $k$-th powers is never a\n$k$-th power, but this is false for $k=5$, as Lander and Parkin [LaPa67] found\n$$27^5+84^5+110^5+133^5=144^5$$.\n\nThe summands must be positive. Without that condition a set containing `0` would count, so the\nnegation would be satisfied by a sum of fewer than $k-1$ powers and would claim less than the\nrefutation of Euler's conjecture that this theorem records.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_939.variants.euler : ¬ (∀ k ≥ 4, ∀ S : Finset ℕ, S.card = k - 1 →\n    (∀ s ∈ S, 0 < s) → ¬ (∃ q, ∑ s ∈ S, s ^ k = q ^k)) := by\n  push Not\n  use 5\n  norm_num\n  use {27, 84, 110, 133}\n  refine ⟨by decide, by decide, 144, by norm_num⟩\n\nend Erdos939\n",
  "statement_hash": "d0be86b6940893ffd1a73a25597187ab3625578889ceeddeb3348eba14a7a180",
  "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."
}