The slide-rule collection

Brocot's Gear Rule

A clock can only turn at ratios of whole numbers of teeth. To make a moon dial or a planetarium, a clockmaker needs fractions close to awkward numbers with tops and bottoms that factor into wheels he can cut. A Paris clockmaker found the way down a tree of fractions.

Squeeze a number

Start between the whole numbers either side. Each step adds tops and bottoms, a/b and c/d giving (a + c)/(b + d), which always lies between them; keep the half that holds the number (L or R). Each row is zoomed to its own interval. A filled dot is closer than every fraction before it.

Mediants

The tree. Starting from 0/1 and 1/0 and inserting mediants forever produces every positive fraction exactly once, in lowest terms. Moritz Stern described it in 1858 and Achille Brocot, a clockmaker, in 1861, for different reasons: Stern for number theory, Brocot for cutting wheels.

Best approximations. Every fraction that comes closer to x than any fraction with a smaller bottom lies on the path down to x. The runs of L and R are the terms of the continued fraction: π is [3; 7, 15, 1, 292, ...], and the long run of 292 is why 355/113 is so good.

Hard numbers. The golden ratio is all ones: its path zigzags L, R, L, R and every fraction is a ratio of Fibonacci numbers, closing in as slowly as any number can.