modulo

The phrase “$x$ is the same as $y$ modulo $\sim$” means that $x$ and $y$ are elements of some set, $\sim$ is an equivalence relation on the set, and $x \sim y$. One would also say that $x$ is the same as $y$ up to $\sim$.

This is also used colloquially in phrases such as “The administration kept my salary the same modulo [or mod] inflation”. Presumably the equivalence relation here is something like: “One dollar in 2002 is equivalent to \$1.02 in 2003.”

In number theory one writes $a \equiv b \mod n$, pronounced “$a$ is equivalent to $b \mod n$”, to mean that $a-b$ is divisible by $n$, for $a, b, n$ integers. Thus $20\equiv 11 \mod 3$. In this usage, the symbol “mod” occurs as part of a three-place assertion.

Many computer languages use an expression such as “$a \mod n$” (the syntactic details may differ) to mean the remainder obtained when $a$ is divided by $n$; they would write $20 \mod 3 = 2$. In this usage, mod is a binary operation.

Mathematics majors often enter a number theory class already familiar with the computer usage, to their resultant confusion. Citations: (75), (223), (222), (378)

Page 168 of the book (PDF).