\bmod

The \bmod operator is used to denote the modulo operation, which finds the remainder after division of one number by another.

Examples

The remainder when a is divided by b is r.

a \bmod b = r

10 divided by 3 leaves a remainder of 1.

10 \bmod 3 = 1

x is congruent to y modulo n, meaning (x - y) is divisible by n.

x \equiv y \pmod{n}