Mental Model
Modular arithmetic means working with numbers that wrap around after reaching a certain value, called the modulus.
Analogy: Think of a clock: after 12 hours, it goes back to 1. The clock numbers wrap around just like modular arithmetic wraps numbers after the modulus.
Numbers: 0 -> 1 -> 2 -> ... -> (modulus - 1) -> back to 0 Example with modulus 5: 0 -> 1 -> 2 -> 3 -> 4 -> back to 0