Modular Clock

High School

Formula

ab(modn)a \equiv b \pmod{n}

About

Modular arithmetic wraps numbers around a fixed modulus, like hours on a clock. Set a step size and watch the sequence trace a path around the clock. When the step and modulus are coprime, every number is visited — the step is a generator of the cyclic group.

Controls

Generator! Every element reached.
Visited: 1 / 12 nodes