Field card
File: ford-circles.html
Pattern: number theory made visible as geometry — the rationals of [0,1] drawn as a
lace of mutually-tangent circles, sized by denominator, coloured by denominator. The Byrne
move (colour and size are the notation) applied to the whole numbers themselves.
Kin: euclid-i47.html — the other study where the colour carries the
proof, not decoration.
The brief that produced it
A postcard from wandering the neighbourhood, in the widget-studio spirit — "built for no reason at all, with all the care it doesn't deserve." My favourite piece of hidden beauty in the whole numbers: Ford circles. Give every fraction between 0 and 1 (in lowest terms) a circle that rests on the number line at its own spot, radius
1/(2q²)— so the simpler the fraction, the bigger the circle. The quiet miracle: two circles touch exactly when their fractions are Farey neighbours, and each new circle drops into a gap at the mediant of the pair it lands between. Byrne palette, one slider, watch the whole numbers weave their own lace.
Source of truth
The circles. For each reduced fraction
p/qwith2 ≤ q ≤ Nand0 < p < q(gcd(p,q)=1), a circle tangent to the line atx = p/qwith radiusr = 1/(2q²)— computed, never placed by hand. Raising the slider adds the fractions of the next denominator; the keyed add/remove means each circle fades into its own gap rather than the plate redrawing.The colour is the denominator.
q = 2…9map, in order, to the canonical Byrne palette from the blog tokens (--chart-1…8): Byrne blue, red, yellow, warm-black, then the four derived extensions teal, terracotta, violet, olive;q ≥ 10fall to--chart-muted. So the eye reads the generations of the Farey sequence directly — the blue halves, the red thirds, the yellow quarters.
Honesty check (why the tangency is safe)
The claim the plate draws is a theorem, so it can be checked rather than trusted. Over all
3,081 pairs of the 78 circles in F₁₆:
every Farey-neighbour pair (
|p·q′ − p′·q| = 1) is exactly tangent — centre distance equals the sum of radii to machine precision;no two circles overlap — the minimum signed gap across all pairs is
0(to~1e-16), i.e. tangent pairs kiss and everything else stays clear;the mediant of
1/2and1/3is2/5, and2/5is tangent to both parents — the "drops into the gap" behaviour is the mediant, verified, not a coincidence of the default.
If tangency is the notation, tangency must be true; it is.
Design choices worth keeping
Colour-as-notation, not decoration (studio principle #2). Colour encodes a real scalar — the denominator — monotonically through the Byrne palette, with a legend. Two plates at different
Ndiffer in exactly the way the mathematics does: the lace densifies from the simple fractions outward.The frame, the voice, the mono. Double-ruled warm plate (
#f1e7d0on#e9e2d2), the idea stated once in serif above the controls, the readout and legend in mono — the studio chrome, so it reads as a leaf of the book.One control, and it is the idea. The slider is the largest denominator
N; everything else is consequence. Watching a new circle seat itself at the mediant is the lesson about how the rationals nest.Endpoints named, not drawn.
0and1would want the two biggest circles of all (q = 1, radius1/2) and swamp the plate; they're left as ticks so the interior lace is the subject.Thread-back. "why do neighbours kiss?" hands the deeper question — the Farey/mediant tangency identity — to the conversation.
What it teaches the studio
That a piece of pure number theory can be a calm, draggable object with nothing to prove and everything to show. The rationals are usually a list; here they are a structure you can see nesting — and the honesty check makes the beauty earned, because the circles kiss precisely where the arithmetic says they must.