laps = 35 / gcd(96, 35) = 35A spirograph is a gear rolling inside a toothed ring, with a pen through a hole in the gear. In the video the ring has 96 teeth, the gear has 35, and the pen hole sits 24/35 of the way from the gear's centre to its edge, inside the gear as on the real toy.
Counting laps
Every time the gear goes once round the ring, it rolls over 96 teeth. For the pen to be back where it started, the gear must have rolled a whole number of its own turns, so the teeth rolled must be a multiple of both 96 and 35.
The first such number is lcm(96, 35) = 3,360 teeth, which is 3,360 / 96 = 35 laps of the ring. In general:
laps = gear / gcd(ring, gear)
| Ring | Gear | gcd | Laps |
|---|---|---|---|
| 96 | 35 | 1 | 35 |
| 96 | 32 | 32 | 1 |
| 96 | 36 | 12 | 3 |
35 = 5 × 7 and 96 = 2⁵ × 3 share no factor, so the pen needs the longest possible trip. The video speeds up as it goes, so all 35 laps fit.
The loops
Over those 35 laps the gear rolls 3,360 teeth, 3,360 / 35 = 96 times its own 35, and the pen swings out and back in once for each, so the finished curve has 96 loops. Its name is a hypotrochoid.
Part of Spirograph: A gear rolls inside a ring, with a pen in one of its holes.
Use this picture
Free to reuse, also commercially, under CC BY 4.0. Credit “What Math Means” with a link to whatmathmeans.dev/v/one-gear-35-laps.







