{
  "id": "1541",
  "ident": "NS.01541",
  "slug": "erdos-283",
  "title": "Erdős Problem 283",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $p\\colon \\mathbb{Z} \\rightarrow \\mathbb{Z}$ be a polynomial (with rational coefficients,\ntaking integer values at all integers) whose leading coefficient is positive and such that there\nexists no $d≥2$ with $d ∣ p(n)$ for all $n≥1$. Is it true that,\nfor all sufficiently large $m$, there exist integers $1≤n_1<\\dots < n_k$ such that\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$$\nand\n$$m=p(n_1)+\\cdots+p(n_k)$$?\n\nGPT 5.5 Pro (prompted by Price) has given a proof that the answer is yes, for the stronger version\nwith $1$ replaced by any rational $\\alpha>0$.\n\nThis was formalized in Lean by Ammanamanchi using Opus 4.6 and GPT 5.5 Pro.",
  "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": "Erdos283.erdos_283",
  "statement_lean": "theorem erdos_283 : ∀ p : ℚ[X], Condition p",
  "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 283\n\n*References:*\n- [erdosproblems.com/283](https://www.erdosproblems.com/283)\n- [Al19] Alekseyev, Max A., On partitions into squares of distinct integers whose\nreciprocals sum to 1. (2019), 213--221.\n- [Ca60] Cassels, J. W. S., On the representation of integers as the sums of distinct summands taken from a fixed set. Acta Sci. Math. (Szeged) (1960), 111-124.\n- [Gr63] Graham, R. L., A theorem on partitions. J. Austral. Math. Soc. (1963), 435-441.\n- [vD25] W. van Doorn, Partitions with prescribed sum of rationals: asymptotic bounds. arXiv:2502.02200 (2025).\n-/\n\n@[expose] public section\n\nopen Filter Polynomial Finset\n\nnamespace Erdos283\n\n/--\nGiven a polynomial `p` with rational coefficients, the predicate that if `p` takes integer values\nat all integers, the leading coefficient is positive and there exists no $d≥2$ with $d ∣ p(n)$ for\nall $n≥1$, then for all sufficiently large $m$, there exist integers $1≤n_1<\\dots < n_k$ such that\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$$ and $$m=p(n_1)+\\cdots+p(n_k)$$?\n-/\ndef Condition (p : ℚ[X]) : Prop :=\n  (∀ n : ℤ, ∃ z : ℤ, p.eval (n : ℚ) = z) → p.leadingCoeff > 0 →\n  ¬ (∃ d : ℤ, d ≥ 2 ∧ ∀ n : ℤ, n ≥ 1 → ∃ z : ℤ, p.eval (n : ℚ) = d * z) →\n  ∀ᶠ (m : ℤ) in atTop, ∃ k ≥ 1, ∃ n : Fin (k + 1) → ℤ, 0 = n 0 ∧ StrictMono n ∧\n  1 = ∑ i ∈ Finset.Icc 1 (Fin.last k), (1 : ℚ) / (n i) ∧\n  (m : ℚ) = ∑ i ∈ Finset.Icc 1 (Fin.last k), p.eval (n i : ℚ)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $p\\colon \\mathbb{Z} \\rightarrow \\mathbb{Z}$ be a polynomial (with rational coefficients,\ntaking integer values at all integers) whose leading coefficient is positive and such that there\nexists no $d≥2$ with $d ∣ p(n)$ for all $n≥1$. Is it true that,\nfor all sufficiently large $m$, there exist integers $1≤n_1<\\dots < n_k$ such that\n$$1=\\frac{1}{n_1}+\\cdots+\\frac{1}{n_k}$$\nand\n$$m=p(n_1)+\\cdots+p(n_k)$$?\n\nGPT 5.5 Pro (prompted by Price) has given a proof that the answer is yes, for the stronger version\nwith $1$ replaced by any rational $\\alpha>0$.\n\nThis was formalized in Lean by Ammanamanchi using Opus 4.6 and GPT 5.5 Pro.\n-/\n@[category research solved, question, AMS 11, formal_proof using formal_conjectures at \"https://github.com/Shashi456/erdos-formalizations/blob/286f856aa3fc08957b80950fd18a45aab8d045ea/Erdos/P283/Proof_flat.lean#L9738-L9746\"]\ntheorem erdos_283 : ∀ p : ℚ[X], Condition p := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nGraham [Gr63] has proved this when $p(x)=x$.\n-/\n@[category research solved, AMS 11, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Erdos283_erdos_283_variants_graham.lean#L383\"]\ntheorem erdos_283.variants.graham : Condition X := by\n  sorry\n\n/--\nGraham also conjectures that this remains true with $1$ replaced by an arbitrary rational $\\alpha>0$\n(provided $m$ is taken sufficiently large depending on $\\alpha$).\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.graham_alpha :\n  ∀ (p : ℚ[X]) (α : ℚ),\n    (∀ n : ℤ, ∃ z : ℤ, p.eval (n : ℚ) = z) →\n    0 < p.leadingCoeff →\n    (¬ ∃ (d : ℤ), d ≥ 2 ∧ ∀ (n : ℤ), n ≥ 1 → ∃ z : ℤ, p.eval (n : ℚ) = d * z) →\n    α > 0 →\n    ∀ᶠ (m : ℕ) in atTop,\n      ∃ S : Finset ℕ, (∀ n ∈ S, 1 ≤ n) ∧\n        (∑ n ∈ S, (1 / (n : ℚ))) = α ∧\n        (∑ n ∈ S, p.eval (n : ℚ)) = (m : ℚ) := by\n  sorry\n\n/--\nCassels [Ca60] has proved that these conditions on the polynomial imply every sufficiently large\ninteger is the sum of $p(n_i)$ with distinct $n_i$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.cassels :\n  ∀ (p : ℚ[X]),\n    (∀ n : ℤ, ∃ z : ℤ, p.eval (n : ℚ) = z) →\n    0 < p.leadingCoeff →\n    (¬ ∃ (d : ℤ), d ≥ 2 ∧ ∀ (n : ℤ), n ≥ 1 → ∃ z : ℤ, p.eval (n : ℚ) = d * z) →\n    ∀ᶠ (m : ℕ) in atTop,\n      ∃ S : Finset ℕ, (∀ n ∈ S, 1 ≤ n) ∧\n        (∑ n ∈ S, p.eval (n : ℚ)) = (m : ℚ) := by\n  sorry\n\n/--\nBurr has proved this if $p(x)=x^k$ with $k\\geq 1$ and if we allow $n_i=n_j$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.burr :\n  ∀ (k : ℕ), k ≥ 1 →\n    ∀ᶠ (m : ℕ) in atTop,\n      ∃ M : Multiset ℕ, (∀ n ∈ M, 1 ≤ n) ∧\n        (M.map (fun n ↦ 1 / (n : ℚ))).sum = 1 ∧\n        (M.map (fun n ↦ (n : ℤ)^k)).sum = (m : ℤ) := by\n  sorry\n\n/--\nAlekseyev [Al19] has proved this when $p(x)=x^2$, for all $m>8542$.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.alekseyev :\n  ∀ (m : ℕ), m > 8542 →\n    ∃ S : Finset ℕ, (∀ n ∈ S, 1 ≤ n) ∧\n      (∑ n ∈ S, (1 / (n : ℚ))) = 1 ∧\n      (∑ n ∈ S, (n : ℤ)^2) = (m : ℤ) := by\n  sorry\n\n/--\nvan Doorn [vD25] has investigated the question of what 'sufficiently large' means for $p(x)=x$.\nvan Doorn has also proved the original conjecture for many linear and quadratic polynomials.\nFor example, if $p(x) = x + b$ with $1 \\leq b \\leq 5000$, then the conjecture is true.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.van_doorn_linear :\n  ∀ b : ℤ, 1 ≤ b → b ≤ 5000 → Condition (X + C (b : ℚ)) := by\n  sorry\n\n/--\nvan Doorn [vD25] has proved the original conjecture for many linear and quadratic polynomials.\nFor example, if $p(x) = x^2 + b$ with $1 \\leq b \\leq 800$, then the conjecture is true.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_283.variants.van_doorn_quadratic :\n  ∀ b : ℤ, 1 ≤ b → b ≤ 800 → Condition (X^2 + C (b : ℚ)) := by\n  sorry\n\nend Erdos283\n",
  "statement_hash": "c8acad775073b5ca29a78b7fe5d9aa72c08a9ce7994f4ca6496c27bfaecc8ed4",
  "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."
}