If (a mod n) = (b mod n), then a is equivalent to b, modulo n, denoted a b (mod n).
An equivalence class modulo n containing an integer a is [a]n = {a + kn k Z}.
Example: if a=8, n=3, then q = 2, r = 2, and some b a are 2, 5, 8, 11, 14, 17, .... The equivalence classes modulo n are