Modular arithmetic
MathematicsWhat is Modular arithmetic?
Arithmetic that keeps only the remainder on dividing by a fixed number m, the modulus: 17 ≡ 2 (mod 5) because 17 = 3 × 5 + 2. Like a clock with m hours, the answers run from 0 to m − 1.
Also written: clock arithmetic, modulo