{
  "id": "1890",
  "ident": "NS.01890",
  "slug": "erdos-360",
  "title": "Erdős Problem 360",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be minimal such that $\\{1,\\ldots,n-1\\}$ can be partitioned into $f(n)$ classes so that\n$n$ cannot be expressed as a sum of distinct elements from the same class. How fast does $f(n)$\ngrow?\n\nA problem of Erdős and Graham [ErGr80]. Conlon, Fox, and Pham [CFP21, Theorem 1.5] determined\nthe order of growth of $f(n)$ up to a multiplicative constant, proving\n$$f(n) \\asymp \\frac{n^{1/3}(n/\\phi(n))}{(\\log n)^{1/3}(\\log\\log n)^{2/3}}.$$\nHere $\\phi$ is Euler's totient function, and the statement is asymptotic ($n \\to \\infty$).",
  "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": "Erdos360.erdos_360",
  "statement_lean": "theorem erdos_360 : (fun n : ℕ ↦ (f n : ℝ)) =Θ[atTop] erdos_360.answer",
  "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 360\n\n*References:*\n- [erdosproblems.com/360](https://www.erdosproblems.com/360)\n- [AlEr96] Alon, Noga and Erdős, Paul, *Sure monochromatic subset sums*. Acta Arith. 74 (1996),\n  269-272.\n- [CFP21] Conlon, D. and Fox, J. and Pham, H. T., *Subset sums, completeness and colorings*.\n  [arXiv:2104.14766](https://arxiv.org/abs/2104.14766) (2021).\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathématique (1980).\n- [Vu07] Vu, Van H., *Some new results on subset sums*. J. Number Theory 124 (2007), 229-233.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos360\n\n/-- $f(n)$: the least number of classes in a partition of $\\{1,\\ldots,n-1\\}$ such that $n$ is not\na sum of distinct elements of one class. A class contains $n$ among its subset sums exactly when\nsome finite subset of the class sums to $n$.\n\nFor $n \\geq 2$ the partition into singletons is admissible (each element is less than $n$), so the\nset is non-empty and `sInf` is its minimum. For $n \\leq 1$ the set $\\{1,\\ldots,n-1\\}$ is empty,\nthe empty partition is admissible, and $f(n) = 0$. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {r : ℕ | ∃ P : Finpartition (Finset.Icc 1 (n - 1)),\n    P.parts.card = r ∧ ∀ A ∈ P.parts, n ∉ subsetSums (A : Set ℕ)}\n\n/-- The answer: $\\frac{n^{1/3}(n/\\phi(n))}{(\\log n)^{1/3}(\\log\\log n)^{2/3}}$. -/\nnoncomputable def erdos_360.answer (n : ℕ) : ℝ :=\n  (n : ℝ) ^ (1 / 3 : ℝ) * ((n : ℝ) / (n.totient : ℝ)) /\n    (Real.log n ^ (1 / 3 : ℝ) * Real.log (Real.log n) ^ (2 / 3 : ℝ))\n\n/--\nLet $f(n)$ be minimal such that $\\{1,\\ldots,n-1\\}$ can be partitioned into $f(n)$ classes so that\n$n$ cannot be expressed as a sum of distinct elements from the same class. How fast does $f(n)$\ngrow?\n\nA problem of Erdős and Graham [ErGr80]. Conlon, Fox, and Pham [CFP21, Theorem 1.5] determined\nthe order of growth of $f(n)$ up to a multiplicative constant, proving\n$$f(n) \\asymp \\frac{n^{1/3}(n/\\phi(n))}{(\\log n)^{1/3}(\\log\\log n)^{2/3}}.$$\nHere $\\phi$ is Euler's totient function, and the statement is asymptotic ($n \\to \\infty$).\n-/\n@[category research solved, question value, AMS 5 11]\ntheorem erdos_360 : (fun n : ℕ ↦ (f n : ℝ)) =Θ[atTop] erdos_360.answer := by\n  sorry\n\n/--\nAlon and Erdős [AlEr96] proved that $f(n) = n^{1/3+o(1)}$, and more precisely\n$$\\frac{n^{1/3}}{(\\log n)^{4/3}}\\ll f(n) \\ll\n  \\frac{n^{1/3}}{(\\log n)^{1/3}}(\\log\\log n)^{1/3}.$$\nThis is the two-sided bound, which implies the first claim.\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_360.variants.alon_erdos :\n    (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 : ℝ) / Real.log n ^ (4 / 3 : ℝ)) =O[atTop]\n        (fun n : ℕ ↦ (f n : ℝ)) ∧\n    (fun n : ℕ ↦ (f n : ℝ)) =O[atTop]\n        (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 : ℝ) / Real.log n ^ (1 / 3 : ℝ) *\n          Real.log (Real.log n) ^ (1 / 3 : ℝ)) := by\n  sorry\n\n/--\nVu [Vu07] improved the lower bound to\n$$f(n) \\gg \\frac{n^{1/3}}{\\log n}.$$\n-/\n@[category research solved, AMS 5 11]\ntheorem erdos_360.variants.vu :\n    (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 : ℝ) / Real.log n) =O[atTop] (fun n : ℕ ↦ (f n : ℝ)) := by\n  sorry\n\nend Erdos360\n",
  "statement_hash": "a3203dd8c6ca313d61a210ef694389470a6cd67925b533537cf92f15ba91a10d",
  "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."
}