Spirograph
A gear rolls inside a ring, with a pen in one of its holes.
A spirograph is a toothed gear rolling inside a toothed ring, with a pen through one of the gear's holes. The pen draws loop after loop until, at last, it comes back to where it started. This series is about the curve it draws and how long the drawing takes to close.
How it works
The curve. A point inside a circle that rolls around the inside of a bigger circle traces a hypotrochoid. If the pen were exactly on the gear's rim it would be a hypocycloid, with sharp points. With the pen inside the gear, as on the real toy, the points become smooth loops.
Counting teeth. Every lap of the ring rolls the gear over all the ring's teeth. The pen is back at its start only when the gear has also made a whole number of its own turns, so the number of teeth rolled must be a multiple of both the ring's and the gear's tooth counts. The first such number is their least common multiple. Dividing by the ring's teeth gives the number of laps:
laps = gear / gcd(ring, gear)
where gcd is the greatest common divisor. If the two counts share no factor, the drawing takes the longest possible trip, as many laps as the gear has teeth.
Counting loops. The pen swings out and back in once for every full turn the gear makes, so the number of loops is the least common multiple divided by the gear's teeth, which is ring / gcd(ring, gear).
In the video
No. 024 uses a ring of 96 teeth and a gear of 35, with the pen 24/35 of the way from the gear's centre to its edge. 96 = 2⁵ × 3 and 35 = 5 × 7 share no factor, so the gear rolls lcm(96, 35) = 3,360 teeth: 35 laps, and a curve with 96 loops. A 32-tooth gear in the same ring would close after 1 lap, and a 36-tooth gear after 3.
Go further
Try it
Change the gear by one tooth and watch the number of laps jump with the shared factor.
