{
  "id": "1785",
  "ident": "NS.01785",
  "slug": "erdos-345",
  "title": "Erdős Problem 345",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq \\mathbb{N}$ be a complete sequence, and define the threshold of completeness\n$T(A)$ to be the least integer $m$ such that all $n\\geq m$ are in\n$$P(A) = \\left\\{\\sum_{n\\in B}n : B\\subseteq A\\textrm{ finite }\\right\\}$$\n(the existence of $T(A)$ is guaranteed by completeness).\n\nIs it true that there are infinitely many $k$ such that $T(n^k)>T(n^{k+1})$?\n\nHere $T(n^k)$ means the threshold of the positive $k$-th powers. Least-threshold witnesses\nensure that the thresholds exist. We restrict to $k\\geq 1$, since the zeroth powers form\n$\\{1\\}$, which is incomplete. Positive powers are complete [Ki17].",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos345.erdos_345",
  "statement_lean": "theorem erdos_345 :\n    {k : ℕ | 0 < k ∧ ∃ a b : ℕ, IsLeast (thresholds (kthPowers k)) a ∧\n      IsLeast (thresholds (kthPowers (k + 1))) b ∧ b < a}.Infinite",
  "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 345\n\n*References:*\n- [erdosproblems.com/345](https://www.erdosproblems.com/345)\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), p. 55.\n- [Ki17] Kim, D., *On the largest integer that is not a sum of distinct positive nth powers*.\n  Journal of Integer Sequences 20 (2017), Article 17.7.5.\n  [arXiv:1610.02439](https://arxiv.org/abs/1610.02439)\n-/\n\n@[expose] public section\n\nnamespace Erdos345\n\nopen IsAddComplete\n\n/-- The set of $k$-th powers of positive integers. -/\ndef kthPowers (k : ℕ) : Set ℕ :=\n  {x | ∃ n : ℕ, 0 < n ∧ n ^ k = x}\n\n/--\nLet $A\\subseteq \\mathbb{N}$ be a complete sequence, and define the threshold of completeness\n$T(A)$ to be the least integer $m$ such that all $n\\geq m$ are in\n$$P(A) = \\left\\{\\sum_{n\\in B}n : B\\subseteq A\\textrm{ finite }\\right\\}$$\n(the existence of $T(A)$ is guaranteed by completeness).\n\nIs it true that there are infinitely many $k$ such that $T(n^k)>T(n^{k+1})$?\n\nHere $T(n^k)$ means the threshold of the positive $k$-th powers. Least-threshold witnesses\nensure that the thresholds exist. We restrict to $k\\geq 1$, since the zeroth powers form\n$\\{1\\}$, which is incomplete. Positive powers are complete [Ki17].\n-/\n@[category research open, question, AMS 5 11]\ntheorem erdos_345 :\n    {k : ℕ | 0 < k ∧ ∃ a b : ℕ, IsLeast (thresholds (kthPowers k)) a ∧\n      IsLeast (thresholds (kthPowers (k + 1))) b ∧ b < a}.Infinite := by\n  sorry\n\n/-- Every set of positive $k$-th powers with $k\\geq 1$ is complete [Ki17]. -/\n@[category research solved, AMS 5 11]\ntheorem kthPowers_isAddComplete : ∀ k : ℕ, 0 < k → IsAddComplete (kthPowers k) := by\n  sorry\n\n/-- Under the convention $0\\in\\mathbb{N}$, the threshold of the first powers is $0$:\nthe empty sum represents $0$, and every positive integer is a singleton sum. -/\n@[category test, AMS 5 11]\ntheorem isLeast_thresholds_one : IsLeast (thresholds (kthPowers 1)) 0 := by\n  refine ⟨fun n _ ↦ ?_, fun m _ ↦ Nat.zero_le m⟩\n  rcases Nat.eq_zero_or_pos n with rfl | hn\n  · exact ⟨∅, by simp, by simp⟩\n  · refine ⟨{n}, ?_, by simp⟩\n    intro x hx\n    simp only [Finset.coe_singleton, Set.mem_singleton_iff] at hx\n    exact ⟨n, hn, by simp [hx]⟩\n\n@[category test, AMS 5 11]\ntheorem threshold_one : threshold (kthPowers 1) = 0 :=\n  threshold_eq_of_isLeast isLeast_thresholds_one\n\nend Erdos345\n",
  "statement_hash": "fa06e03f8843c7754aca807bf32396e87689a9b1c498bf0e9205e405e9ee5d38",
  "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."
}