Modular Arithmetic (Remainder Arithmetic)

Suppose x is a nonnegative integer and m is a positive integer (called the modulus).

Then x mod m denotes the remainder of x when divided by m.

In Scheme: (remainder x m)