NUMBER / LABMATHEMATICAL EXPERIMENTS
LIVE MODEL2D CANVAS
NUMBER THEORY · CONTINUED FRACTIONS

The number hidden
in continued fractions.

Start with different numbers. Unfold their coefficients. Watch an unexpected constant emerge from the arithmetic.

KHINCHIN’S CONSTANT2.685452TEXTBOOK VALUE · DIMENSIONLESS
THE CONVERGENCE EXPERIMENTCumulative geometric mean of partial quotients
RUNNING
ILLUSTRATIVE · ENGINE ESTIMATE TEXTBOOK · KHINCHIN’S CONSTANTSCALED VIEW · DIMENSIONLESS
WHAT YOU ARE SEEING

Different starting fractions can begin with very different coefficients. As more terms accumulate, their geometric mean is drawn toward the same universal value.

∑THE SCIENCEEquations · assumptions · independent check⌄
THE GAUSS MAP
T(x) = 1/x − ⌊1/x⌋

Each iteration shifts the continued fraction forward. Its next coefficient is aₙ = ⌊1/Tⁿ⁻¹(x)⌋.

KHINCHIN’S THEOREM
lim (a₁ ··· aₙ)1/n = K

For almost every irrational x in (0, 1), the geometric mean approaches the same constant.

THE CONSTANT
K = ∏ [1 + 1/(k(k+2))]log₂ k

Textbook value: K ≈ 2.6854520010653064. The product runs over positive integers k.

GAUSS–KUZMIN LAW
P(a = k) = log₂(1 + 1/[k(k+2)])

The probability law supplies an independent numerical audit of the expected logarithm of a coefficient.

What is simplified

The engine uses exact rational starts p/2ᵇ and the Euclidean algorithm. Rational paths eventually terminate; real irrationals do not. The adjustable start window is sampled uniformly, and finite ensembles fluctuate around the theorem’s almost-everywhere limit. The frequency bars omit each path’s first coefficient to reduce the initial-window bias.

Independent check

An illustrative Gauss–Kuzmin probability sum with an asymptotic tail estimate is compared with the textbook constant. This calculation does not use the simulated coefficient sample.

Illustrative educational model, not affiliated with any real institution or manufacturer.

Made with 🤖 ChatGPT