Mathesis papers

Bounded-error asymptotics for Bernáth's conjecture: OEIS A400645, revision 21, COMMENTS, and its rounded-norm siblings

Haobo Ma, Wenlin Zhang

Numbers generated by repeatedly taking square roots and rounding can appear to grow by a fixed proportion, but could accumulating rounding mistakes eventually change that pattern? Haobo Ma and Wenlin Zhang prove that Bernáth’s particular sequence stays within a fixed distance of an exponential curve, establishing his proposed long-term growth ratio and more.

Start with 0, 0, 0, 1. To obtain each new term, square the latest three numbers, add them, subtract the square of the fourth-latest, take the square root, and round to the nearest integer. The next terms are 1, 1, 2: that last step rounds the square root of three to two. This is a recurrence—a rule recycling earlier entries. Bernáth’s question in OEIS A400645, revision 21, asks whether each term divided by its predecessor approaches a definite number. Early numerical agreement cannot settle this, because rounding keeps introducing changes.

The authors’ answer is approximately 1.3122819079, denoted λ. Precisely, λ is the largest real solution of x⁸ − x⁶ − x⁴ − x² + 1 = 0. Writing aₙ for term n, they establish a positive constant c such that the distance between aₙ and cλⁿ remains bounded independently of n. This does not say that distance tends to zero. The ratio approaches λ with error bounded by a constant times λ⁻ⁿ. Earlier work credited to Václav Kotesovec and Linas Vepstas identified the related constant r = λ², but did not establish the rounded sequence’s behavior.

The proof first ensures the rule never breaks: the entries remain nonnegative and nondecreasing, so the subtraction cannot make the square-root input smaller than the latest entry’s square. Next, examine the squared entries. Without rounding, each new square would equal the latest three squares minus the preceding square. Such a fixed weighted sum is called a linear recurrence. Rounding adds an error whose absolute size is at most twice the latest unsquared entry. This error can grow, but more slowly than the squared sequence’s anticipated exponential growth.

To prove that growth actually occurs, the authors combine four consecutive squares into a specially weighted measurement. Each update multiplies it by r, apart from the rounding error. Dividing out those repeated multiplications makes all future errors form a convergent sum. Crucially, that sum cannot cancel the starting signal: exact integer arithmetic gives term 26 as 324, large enough that the signal exceeds a bound on the entire future correction. Then a weighted measure of three normalized discrepancies shrinks by a factor at most nine-tenths per update, plus a vanishing disturbance. The normalized squares therefore converge to a positive value.

The bounded-distance refinement needs another step. The underlying linear rule separates into one growing component and other components that shrink or remain bounded. Summing the rounding disturbances in these components sharpens the error estimate for the squares; taking square roots then gives bounded error for the original entries. Related arguments settle the proposed ratios for the two-square rule starting at (1, 2), A063827, and the three-square rule starting at (0, 0, 1), A400644. Their limits are the square roots of the golden ratio and tribonacci constant: respectively, the numbers above one whose square equals itself plus one, and whose cube equals its square plus itself plus one.

Initial conditions matter. For nonnegative, nondecreasing integer starts, the two-square extension requires the second entry at least two; the three-square extension requires the third at least one. The signed four-term extension requires the fourth entry at least 292. Four ones instead reproduce themselves, because the square root of two rounds to one, giving ratio one. Separately, the authors prove Kimberling’s strict-increase conjecture for A289916. Using Colin Barker’s 2017 expression storing its entries as coefficients of powers—a generating function—they establish monotonicity of an auxiliary sequence and transfer strict increase to the original sequence. Its limiting ratio is r, not λ.

These are written infinite arguments, distinct from the accompanying checker’s tests of 512 terms per rounded sequence. According to the manuscript, one Lean file covers existence, the ratio limit and root characterization for the specified four-term sequence, with a private positive-asymptotic lemma; another covers existence, uniqueness, positivity and the ratio/root statements for the specified three-term sequence. These files do not cover the bounded-error or general-initial-data extensions; the two-term and Kimberling results have written proofs here. The particular achievement is controlling rounding indefinitely, not just observing growth. A complete classification of smaller signed starts, and the companions’ divisibility and geometric questions, remain outside these results.