Modular Arithmetic
Arithmetic on a clock with m positions. Reduce at every step and nothing ever grows past m.
Result · step 8 of 9Number Theory Basics: Adding on a clock of 12
One step to 4.
What you will see
A clock face with m positions; addition rotates around it.
Cost
| Space | O(1) |
|---|
How you work with it here
play it through, step one change at a time, run it on your own input.
Screen readers: Numbers announce their value and role; each step announces the arithmetic performed.
Reduced motion: Values crossfade; no travelling digits.
Leads to
Topics that need this one first.
Taught by the same lesson
Number Theory Basics covers these too, in the same run.