 Modular arithmetic modifies usual arithmetic by only using the numbers formula_120, for a natural number formula_1 called the modulus.Any other natural number can be mapped into this system by replacing it by its remainder after division by formula_1.Modular sums, differences and products are calculated by performing the same replacement by the remainder
on the result of the usual sum, difference, or product of integers.