{
  "id": "4830",
  "ident": "NS.04830",
  "slug": "oeis-114831",
  "title": "Each term is previous term plus floor of harmonic mean of two previous terms.",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Conjecture based on OEIS A114831: What is this sequence, asymptotically?\nIf the limit exists, the ratio of consecutive terms must tend to $\\sqrt{3}$:\n$$ \\lim_{n \\to \\infty} \\frac{a(n+1)}{a(n)} = \\sqrt{3}. $$\nThat's because $a(n)$ is positive, monotonically increasing ($a(n) > a(n-1)$)\nand $a(n+2) \\geq a(n+1) + a(n)$.\nSo $a(n)$ grows exponentially, at least as fast as the Fibonnaci numbers.\nAssuming $\\frac{a(n+1)}{a(n)}$ tend to a limit L, solving for L in the definition of $a(n)$\ngives $L=\\sqrt{3}$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA114831.conjecture3",
  "statement_lean": "theorem conjecture3 :\n    Tendsto (fun n ↦ (a (n + 1) : ℝ) / (a n : ℝ)) atTop (nhds (Real.sqrt 3))",
  "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# Each term is previous term plus floor of harmonic mean of two previous terms.\n\n$a(1) = 1, a(2) = 2$ and\n$a(n) = a(n-1) + \\lfloor \\frac{2 a(n-1) a(n-2)}{a(n-1) + a(n-2)} \\rfloor$ for $n \\ge 3$.\n\n*References:*\n- [A114831](https://oeis.org/A114831)\n-/\n\n@[expose] public section\n\nnamespace OeisA114831\n\nopen Filter Real Topology\n\n/--\nThe primary defining sequence `a`.\nEach term is previous term plus floor of harmonic mean of two previous terms.\n-/\nnoncomputable def a : ℕ → ℕ\n| 0 => 0 -- Dummy value, sequence starts at index 1\n| 1 => 1\n| 2 => 2\n| n + 3 =>\n  let an1 : ℕ := a (n + 2)\n  let an2 : ℕ := a (n + 1)\n  let num : ℚ := (2 * an1 * an2 : ℕ).cast\n  let den : ℚ := (an1 + an2 : ℕ).cast\n  let harmonicTermFloor : ℕ := Int.toNat (num / den).floor\n  an1 + harmonicTermFloor\n\n@[category test, AMS 11]\ntheorem a_1 : a 1 = 1 := by norm_num [a]\n\n@[category test, AMS 11]\ntheorem a_2 : a 2 = 2 := by rw [a]\n\n@[category test, AMS 11]\ntheorem a_3 : a 3 = 3 := by\n  norm_num [a, Rat.floor, Int.toNat]\n\n@[category test, AMS 11]\ntheorem a_4 : a 4 = 5 := by\n  norm_num [a, Rat.floor, Int.toNat]\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture based on OEIS A114831: What is this sequence, asymptotically?\nIf the limit exists, the ratio of consecutive terms must tend to $\\sqrt{3}$:\n$$ \\lim_{n \\to \\infty} \\frac{a(n+1)}{a(n)} = \\sqrt{3}. $$\nThat's because $a(n)$ is positive, monotonically increasing ($a(n) > a(n-1)$)\nand $a(n+2) \\geq a(n+1) + a(n)$.\nSo $a(n)$ grows exponentially, at least as fast as the Fibonnaci numbers.\nAssuming $\\frac{a(n+1)}{a(n)}$ tend to a limit L, solving for L in the definition of $a(n)$\ngives $L=\\sqrt{3}$.\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/oeis-a114831-asymptotic/blob/54cdeeed2ef5838e3aa61a3a228e6867802d20df/lean/OeisA114831FC.lean#L252-L285\"]\ntheorem conjecture3 :\n    Tendsto (fun n ↦ (a (n + 1) : ℝ) / (a n : ℝ)) atTop (nhds (Real.sqrt 3)) := by\n  sorry\n\nend OeisA114831\n",
  "statement_hash": "9d77f286d4cd87a8fa9239d21e0ca2bf8d0265b16841285849985060459a0e82",
  "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."
}