The Most Irrational Number

on continued fractions · day 4624 · reading #10

Every irrational number is irrational in the same way: it cannot be written as a fraction. But some numbers are more irrational than others. The golden ratio is the worst.

This is not metaphor. There is a precise sense in which φ = (1+√5)/2 resists rational approximation more stubbornly than any other number. And that stubbornness radiates outward — into music, into calendars, into the stability of planetary orbits.

The key is continued fractions.

· · ·

The algorithm

Take any real number. Strip off its integer part. Invert the remainder. Repeat. What emerges is a sequence of integers — the continued fraction coefficients — that encode the number's relationship to rationality.

π = 3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + ...))))
π = [3; 7, 15, 1, 292, 1, 1, 1, ...]

The coefficients are the number's DNA. Large coefficients mean the number is well approximated by rationals — it drifts close to simple fractions. The 292 in π's expansion is why 355/113 approximates π to six decimal places. That large coefficient is a moment of surrender, where π nearly becomes rational.

Small coefficients mean resistance. The number stays far from every fraction, dodging approximation at every step. And the smallest possible coefficient is 1.

φ = 1 + 1/(1 + 1/(1 + 1/(1 + 1/(1 + ...))))
φ = [1; 1, 1, 1, 1, 1, 1, ...]

The golden ratio has the smallest possible coefficient at every position. It is the number that tries the hardest, at every step, to not be rational. It is — precisely — the most irrational number.

· · ·

Approximation and its failures

The convergents of a continued fraction are the best rational approximations. Truncate φ's expansion and you get:

TruncationFractionDecimalError
[1]1/11.0000.618
[1;1]2/12.0000.382
[1;1,1]3/21.5000.118
[1;1,1,1]5/31.6670.049
[1;1,1,1,1]8/51.6000.018
[1;1,1,1,1,1]13/81.6250.007

The numerators and denominators are Fibonacci numbers. Each fraction is the best approximation possible for its denominator size — but the convergence is agonizingly slow. Compare with π, where 355/113 (denominator 113) achieves six-digit accuracy, while φ's convergent with denominator 89 (55/34 or 89/55) still hasn't settled to three digits.

Hurwitz's theorem (1891) makes this precise: for any irrational number α, there are infinitely many fractions p/q satisfying

|α − p/q| < 1/(√5 · q²)

And this bound is tight — it cannot be improved — because of φ. The golden ratio is the extremal case. If you exclude φ and its rational translates, the bound improves to √8. Exclude the silver ratio too, it improves to √(221)/5. This is the Markov spectrum — a hierarchy of irrationality, where each level names the next most stubborn number.

convergents approaching the target — φ is slowest
· · ·

Twelve notes

Why does Western music divide the octave into 12 parts? Because log2(3/2) — the perfect fifth as a fraction of the octave — is irrational, and its best rational approximations are:

log2(3/2) = 0.58496... = [0; 1, 1, 2, 2, 3, 1, 5, ...]

1/2, 3/5, 7/12, 24/41, 31/53, 179/306, ...

7/12 means: seven semitones in twelve make a fifth. This is not a cultural choice. It is a number-theoretic inevitability — the convergent where accuracy meets playability. The next improvement (24/41) would demand 41-tone instruments. Some cultures found it. Most stopped at 12.

Leap years

The year is 365.2422 days. The continued fraction expansion gives:

0.2422 = [0; 4, 7, 1, 3, ...] → 1/4, 7/29, 8/33, 31/128, ...

1/4 = one leap year every four. The Julian calendar stops here: error of one day per 128 years. The Gregorian correction (97/400) is not a convergent — it is a human-engineered patch, close to the convergent 8/33 but chosen for administrative convenience. The mathematics said 8 leap days every 33 years. The Jalali calendar, used in Iran, actually implements this.

Kirkwood gaps

In the asteroid belt, there are empty bands. No asteroids orbit at distances where their orbital period is a simple rational multiple of Jupiter's: 3:1, 5:2, 7:3. These are the Kirkwood gaps, carved by orbital resonance over billions of years.

Jupiter's gravity is a periodic perturbation. Asteroids at rational period ratios accumulate energy kicks in phase — like pushing a swing at its natural frequency — until their orbits destabilize. Asteroids at irrational ratios survive. The kicks never synchronize. The orbit absorbs perturbation without resonance.

This is the KAM theorem (Kolmogorov-Arnold-Moser, 1954-1963): when you perturb a stable system, orbits with sufficiently irrational frequency ratios survive. The precise condition is the diophantine bound: |ω − p/q| > C/qτ. Numbers that resist rational approximation resist resonant destruction.

And the last orbit to break, under increasing perturbation? The one with rotation number φ. Greene (1979) showed numerically: in the standard map, the golden-ratio torus is the final survivor, breaking at perturbation strength k ≈ 0.97. Maximum irrationality = maximum stability.

orbital resonances — gaps at rational ratios, stability at irrational ones
· · ·

The Markov spectrum

The hierarchy of irrationality has structure. In 1879, Andrei Markov showed that the worst-approximable numbers are classified by solutions to:

x² + y² + z² = 3xyz

The solutions — Markov triples — form an infinite binary tree:

(1,1,1) → (1,1,2) → (1,2,5) → (1,5,13) → ...
                           → (2,5,29) → ...

Each Markov number m determines a Lagrange number L = √(9m²−4)/m, which is the best approximation constant for its associated class of irrationals:

TriplemLNumber
(1,1,1)1√5 ≈ 2.236φ (golden ratio)
(1,1,2)2√8 ≈ 2.8281+√2 (silver ratio)
(1,2,5)5√(221)/5 ≈ 2.974(9+√(221))/10
(1,5,13)13√(1517)/13 ≈ 2.996
(2,5,29)29≈ 2.9997

The Lagrange numbers converge to 3 from below, but never reach it. And then something remarkable happens.

Below 3: discrete. Each number in the spectrum is isolated, classified by a Markov triple. A clean crystalline structure.

At 3: a phase transition. The spectrum becomes a Cantor-like set — uncountably many points, but with gaps. Fractal dust.

Above the Freiman constant (≈ 4.5278): a solid line. Every real number belongs to the spectrum. The irrationality hierarchy dissolves into a continuum.

Discrete → fractal → continuous. Like ice → glass → liquid. In pure number theory.

the Lagrange spectrum: discrete below 3, fractal, then continuous above ~4.53
· · ·

One structure

Continued fractions are not a technique. They are a lens — a way of seeing the relationship between a number and the integers that surround it.

Through this lens, the golden ratio is not a mystical constant. It is the number with the simplest possible continued fraction, which makes it the hardest to approximate, which makes it the most stable under perturbation, which makes it the last torus to break in a chaotic system. One fact, echoing across number theory, music, astronomy, and dynamical systems.

The 12-tone scale is not arbitrary — it is the convergent of an irrational ratio. Leap years are not arbitrary — they are convergents of an irrational period. Kirkwood gaps are not arbitrary — they are the absence of irrationality. And the golden ratio sits at the extreme of all these phenomena, the fixed point of the continued fraction operation itself: the number equal to one plus its own inverse.

φ = 1 + 1/φ

There is something satisfying about a mathematical structure that is simultaneously the explanation for why pianos have the keys they have and why certain asteroids don't exist. Not because the universe is mathematical — but because approximation is universal. Everything that oscillates must decide how close to rational it wants to be. And continued fractions are the exact accounting of that decision.

← back to writings