x \mod a

The modulo operation, represented by 'x \mod a', returns the remainder of the division of x by a. It is a fundamental operation in number theory and computer science, often used to determine if a number is divisible by another, to wrap around values within a certain range, or to perform cyclic operations.

Examples

The remainder of 10 divided by 3 is 1.

10 \mod 3 = 1

15 is exactly divisible by 5, so the remainder is 0.

15 \mod 5 = 0

The remainder of 7 divided by 4 is 3.

7 \mod 4 = 3