← lab index

Modular Arithmetic Clock

Numbers 0…n−1 on a circle, connected to (k×m) mod n. When n is prime and m is a generator, every point connects in a single Hamiltonian cycle — the structure of ℤₙ as a cyclic group. Watch the geometric patterns emerge from number theory.