Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Each term is previous term plus floor of harmonic mean of two previous terms.

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Conjecture based on OEIS A114831: What is this sequence, asymptotically? If the limit exists, the ratio of consecutive terms must tend to 3\sqrt{3}: lim⁡n→∞a(n+1)a(n)=3. \lim_{n \to \infty} \frac{a(n+1)}{a(n)} = \sqrt{3}. That's because a(n)a(n) is positive, monotonically increasing (a(n)>a(n−1)a(n) > a(n-1)) and a(n+2)≥a(n+1)+a(n)a(n+2) \geq a(n+1) + a(n). So a(n)a(n) grows exponentially, at least as fast as the Fibonnaci numbers. Assuming a(n+1)a(n)\frac{a(n+1)}{a(n)} tend to a limit L, solving for L in the definition of a(n)a(n) gives L=3L=\sqrt{3}.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.04830 [math.NT] · NS.04830v1 for this version
Declaration:OeisA114831.conjecture3
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:9d77f286d4cd87a8fa9239d21e0ca2bf8d0265b16841285849985060459a0e82
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/114831.lean

Formal statement

theorem conjecture3 :
    Tendsto (fun n ↦ (a (n + 1) : ℝ) / (a n : ℝ)) atTop (nhds (Real.sqrt 3))
Show the full Challenge.lean (85 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Each term is previous term plus floor of harmonic mean of two previous terms.

$a(1) = 1, a(2) = 2$ and
$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$.

*References:*
- [A114831](https://oeis.org/A114831)
-/

@[expose] public section

namespace OeisA114831

open Filter Real Topology

/--
The primary defining sequence `a`.
Each term is previous term plus floor of harmonic mean of two previous terms.
-/
noncomputable def a : ℕ → ℕ
| 0 => 0 -- Dummy value, sequence starts at index 1
| 1 => 1
| 2 => 2
| n + 3 =>
  let an1 : ℕ := a (n + 2)
  let an2 : ℕ := a (n + 1)
  let num : ℚ := (2 * an1 * an2 : ℕ).cast
  let den : ℚ := (an1 + an2 : ℕ).cast
  let harmonicTermFloor : ℕ := Int.toNat (num / den).floor
  an1 + harmonicTermFloor

@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by norm_num [a]

@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by rw [a]

@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by
  norm_num [a, Rat.floor, Int.toNat]

@[category test, AMS 11]
theorem a_4 : a 4 = 5 := by
  norm_num [a, Rat.floor, Int.toNat]

set_option linter.style.formal_proof_palomar false in
/--
Conjecture based on OEIS A114831: What is this sequence, asymptotically?
If the limit exists, the ratio of consecutive terms must tend to $\sqrt{3}$:
$$ \lim_{n \to \infty} \frac{a(n+1)}{a(n)} = \sqrt{3}. $$
That's because $a(n)$ is positive, monotonically increasing ($a(n) > a(n-1)$)
and $a(n+2) \geq a(n+1) + a(n)$.
So $a(n)$ grows exponentially, at least as fast as the Fibonnaci numbers.
Assuming $\frac{a(n+1)}{a(n)}$ tend to a limit L, solving for L in the definition of $a(n)$
gives $L=\sqrt{3}$.
-/
@[category research solved, AMS 11,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/oeis-a114831-asymptotic/blob/54cdeeed2ef5838e3aa61a3a228e6867802d20df/lean/OeisA114831FC.lean#L252-L285"]
theorem conjecture3 :
    Tendsto (fun n ↦ (a (n + 1) : ℝ) / (a n : ℝ)) atTop (nhds (Real.sqrt 3)) := by
  sorry

end OeisA114831

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA114831.conjecture3 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture3 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch oeis-114831
nosorry submit oeis-114831 nosorry/oeis-114831/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.