Math · Toy-First Monograph
Count by 4 on a 12-hour clock and you trap a triangle; count by 5 and you weave a star.
Throw away full turns and keep only the remainder: suddenly plain integers grow grain, bottlenecks, and hidden symmetry. Drag the modular clock right below from composite 12 to prime 13 before reading a single definition — watch shared factors collapse into spokes while coprimes touch every hour.
Try the clock first: i ↦ k × i (mod n)
~#expect before you drag: keep modulus at 12 and slide multiplier from 5 to 6 — predict how many hours survive on the rim. Then slide modulus to 13 and try to make any multiplier collapse. You cannot: prime moduli have no shared divisors to fold along, which is the whole doorway into finite fields and parser equivalence classes.
Move the controls to compare prime and composite moduli.
Why forgetting full turns reveals hidden grain
Real-number division smooths everything out (14 ÷ 12 = 1.166…). Integer arithmetic refuses to forget the remainder (14 ≡ 2 mod 12). That productive act of throwing away full turns turns an infinite line into a finite wheel where prime bottlenecks, cyclic orbits, and shared factors become visible geometry.
Prime bottlenecks
Primes cannot be factored into smaller steps, so on a prime clock every non-zero multiplier permutes all hours cleanly without collisions.
anchor: divisibility handlesVisible folding
When gcd(k, n) = d > 1, the wheel folds d-to-1 onto a smaller sub-polygon — divisibility drawn as chord density.
Field bridge
Because prime wheels never fold to zero, every non-zero residue has a multiplicative inverse — turning clock arithmetic into a full field.
next: prime fieldsDivisibility Handles
Prime
A prime is a number with no nontrivial divisors. In number theory, primes often mark the points where arithmetic becomes cleaner or more rigid.
field theory anchor: prime fieldsGreatest Common Divisor
The gcd tells you how much two numbers overlap structurally. In the modular clock, it controls whether the pattern permutes or collapses.
anchor: modular clockResidue Class
Residues are arithmetic positions remembered after full turns are forgotten. They are the central visual objects in modular arithmetic.
category anchor: composition squareEuclidean Habit
The Euclidean algorithm is a way of thinking, not only a procedure: keep dividing, keep tracking remainders, and structure eventually appears.
complexity anchor: growth intuitionNeighbor Routes
Field Theory
Finite fields often begin with modular arithmetic modulo a prime. Number theory supplies the raw material that field theory organizes.
route: Prime fieldsCombinatorics
Residue classes, partitions, and finite counting arguments often overlap, especially when periodicity or recurrence matters.
route: Combinatorics intuitionCategory Theory
Category language can make arithmetic feel less isolated by treating operations and preserved structure as first-class relationships.
route: Category insightParsers
Even bespoke parser design benefits from number-theoretic habits: small generators, repeating states, and residue-like equivalence classes.
route: Parser doodles