/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ 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:

namespace OeisA114831open 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 := a 1 = 1 All goals completed! 🐙All goals completed! 🐙@[category test, AMS 11] theorem a_3 : a 3 = 3 := a 3 = 3 All goals completed! 🐙@[category test, AMS 11] theorem a_4 : a 4 = 5 := a 4 = 5 All goals completed! 🐙

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)) := Tendsto (fun n (a (n + 1)) / (a n)) atTop (𝓝 3) All goals completed! 🐙end OeisA114831