modular arithmetic, sometimes also called clock arithmetic, is a way of doing arithmetic with integers. much like hours on a clock, which repeat every twelve hours, once the numbers reach a certain value, called the "modulus", they go back to zero.