{
  "id": "3373",
  "ident": "NS.03373",
  "slug": "erdos-839",
  "title": "Erdős Problem 839",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Erdős Problem 839 (Part 1) [Er78f][Er92c]:\n\nLet $1 \\leq a_1 < a_2 < \\cdots$ be a strictly increasing sequence of positive integers\nsuch that no $a_i$ is the sum of consecutive $a_j$ for $j < i$.\nIs it true that $\\limsup a_n / n = \\infty$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos839.erdos_839.parts.i",
  "statement_lean": "theorem erdos_839.parts.i :\n    ∀ (a : ℕ → ℕ), (∀ n, 1 ≤ a n) → StrictMono a → SumOfConsecutiveFree a →\n    atTop.limsup (fun n : ℕ => (a n : ℝ≥0∞) / n) = ⊤",
  "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 839\n\n*References:*\n- [erdosproblems.com/839](https://www.erdosproblems.com/839)\n- [Er78f] Erdős, P., *Problems in number theory and combinatorics*, Proc. Sixth Manitoba Conf. on\n  Numerical Math. (1978), 35-58.\n- [Er92c] Erdős, P., *Some of my favourite unsolved problems*, J. Combin. Theory Ser. A (1992).\n\nSee also [Erdős Problem 359](https://www.erdosproblems.com/359) and\n[Erdős Problem 867](https://www.erdosproblems.com/867).\n-/\n\n@[expose] public section\n\nopen Filter Real Finset\nopen scoped ENNReal\n\nnamespace Erdos839\n\n/-- A sequence $a : \\mathbb{N} \\to \\mathbb{N}$ is \"sum-of-consecutive-free\" if no term equals\nthe sum of a contiguous block of earlier terms. That is, for all $i$,\n$a_i \\neq a_j + a_{j+1} + \\cdots + a_k$ for any $j \\leq k < i$. -/\ndef SumOfConsecutiveFree (a : ℕ → ℕ) : Prop :=\n  ∀ i : ℕ, ∀ j k : ℕ, j ≤ k → k < i →\n    a i ≠ ∑ l ∈ Finset.Icc j k, a l\n\n/--\nErdős Problem 839 (Part 1) [Er78f][Er92c]:\n\nLet $1 \\leq a_1 < a_2 < \\cdots$ be a strictly increasing sequence of positive integers\nsuch that no $a_i$ is the sum of consecutive $a_j$ for $j < i$.\nIs it true that $\\limsup a_n / n = \\infty$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_839.parts.i :\n    ∀ (a : ℕ → ℕ), (∀ n, 1 ≤ a n) → StrictMono a → SumOfConsecutiveFree a →\n    atTop.limsup (fun n : ℕ => (a n : ℝ≥0∞) / n) = ⊤ := by\n  sorry\n\n/--\nErdős Problem 839 (Part 2, stronger) [Er78f][Er92c]:\n\nLet $1 \\leq a_1 < a_2 < \\cdots$ be a strictly increasing sequence of positive integers\nsuch that no $a_i$ is the sum of consecutive $a_j$ for $j < i$.\nIs it true that $\\lim_{x \\to \\infty} \\frac{1}{\\log x} \\sum_{a_n < x} \\frac{1}{a_n} = 0$?\n\nThis is equivalent to asking whether the range $\\{a_1,a_2,\\ldots\\}$ has logarithmic density zero\n(see `Set.HasLogDensity`).\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_839.parts.ii :\n    ∀ (a : ℕ → ℕ), (∀ n, 1 ≤ a n) → StrictMono a → SumOfConsecutiveFree a →\n    Set.HasLogDensity (Set.range a) 0 := by\n  sorry\n\n-- TODO: Formalize the additional material on the possible lower limit, reciprocal-sum growth,\n-- upper-density constructions, and the links with Erdős Problems 359 and 867.\n\nend Erdos839\n",
  "statement_hash": "6caa32928c788311ca211bf4744e4a74b8681ac9230a485c96b76d69474824e5",
  "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."
}