AlgoViz

Modular arithmetic

easy 14 min

Modular arithmetic is clock maths: numbers wrap back to 0 after reaching the modulus.