2026-08-28·by Sijie Wang#math

gauss-map

The Gauss map — continued fractions as orbits

Parent: orbit · Prereq: ergodic-theory-of-orbits

The most striking case of "an orbit is a classical object": iterating one map reads out the continued-fraction expansion, and Birkhoff turns that into digit statistics for almost every real number.

Gauss map

G:(0,1)[0,1)G: (0,1) \to [0,1), G(x)=1x1x\quad G(x) = \dfrac{1}{x} - \left\lfloor \dfrac{1}{x} \right\rfloor (the fractional part of 1/x1/x). The digits of xx are an(x)=1/Gn1(x)a_n(x) = \left\lfloor 1 / G^{n-1}(x) \right\rfloor, and then

x=1a1+1a2+1a3+x = \cfrac{1}{a_1 + \cfrac{1}{a_2 + \cfrac{1}{a_3 + \cdots}}}

— the orbit under GG shifts the continued fraction, exactly as the doubling map shifts binary digits.

The invariant measure (Gauss, 1812, in a letter — no proof left behind)

Lebesgue measure is not preserved. The right one:

Gauss measure

μ(A)=1log2Adx1+x\mu(A) = \dfrac{1}{\log 2} \displaystyle\int_A \dfrac{dx}{1+x} is GG-invariant, and GG is ergodic with respect to it.

Verification of invariance on A=(0,t)A = (0, t): the preimage is G1(0,t)=k1(1k+t,1k]G^{-1}(0,t) = \bigcup_{k \ge 1} \left( \tfrac{1}{k+t}, \tfrac{1}{k} \right] (those xx whose 1/x1/x has integer part kk and fractional part <t< t). Summing:

k1[log ⁣(1+1k)log ⁣(1+1k+t)]1log2\sum_{k\ge1} \left[ \log\!\left(1 + \tfrac{1}{k}\right) - \log\!\left(1 + \tfrac{1}{k+t}\right) \right] \cdot \tfrac{1}{\log 2}

telescopes (write log(1+1k)=log(k+1)logk\log(1+\tfrac1k) = \log(k+1) - \log k and log(1+1k+t)=log(k+1+t)log(k+t)\log(1+\tfrac{1}{k+t}) = \log(k+1+t) - \log(k+t); partial sums collapse) to log(1+t)log2=μ((0,t))\tfrac{\log(1+t)}{\log 2} = \mu\big((0,t)\big). ✓

What Birkhoff then buys — for almost every real number

Applying the ergodic theorem (ergodic-theory-of-orbits) to indicator and log functions of the digits:

  • Gauss–Kuzmin digit frequencies: the digit kk appears with limiting frequency μ(a1=k)=log2 ⁣(1+1k(k+2)).\mu\big(a_1 = k\big) = \log_2\!\left(1 + \frac{1}{k(k+2)}\right). Count along: digit 1 → log24341.50%\log_2 \tfrac{4}{3} \approx 41.50\%, digit 2 → log29816.99%\log_2 \tfrac{9}{8} \approx 16.99\%, digit 3 → log216159.31%\log_2 \tfrac{16}{15} \approx 9.31\%. Small digits dominate, but every digit occurs with positive frequency — for almost every xx.
  • Khinchin's constant: the geometric mean of the digits converges, a1a2annK0=k1(1+1k(k+2))log2k2.6854\sqrt[n]{a_1 a_2 \cdots a_n} \to K_0 = \prod_{k\ge1} \left(1 + \tfrac{1}{k(k+2)}\right)^{\log_2 k} \approx 2.6854 — the same constant for almost every real.
  • Lévy's constant: the denominators qnq_n of the convergents grow at a universal exponential rate, 1nlogqnπ212log21.1866\tfrac{1}{n}\log q_n \to \tfrac{\pi^2}{12 \log 2} \approx 1.1866.

The fine print

"Almost every" excludes precisely the interesting arithmetic points: rationals (finite expansion — orbit hits 00 and stops) and quadratic irrationals (eventually periodic digits — Lagrange's theorem; e.g. the golden ratio has an1a_n \equiv 1, geometric mean 1K01 \neq K_0). Same shape of caveat as ergodic-theory-of-orbits and, at full strength, collatz-orbit-statistics: measure-theoretic knowledge, pointwise blindness.

about this entry

One of sijie's wiki entries. The AI on this site is grounded in the same corpus and answers in sijie's voice, with citations back to entries like this one — answering costs sijie money, so it waits behind a code: enter an access code →