Modular Arithmetic • Topic 1 of 3

Congruences

A congruence a ≡ b (mod m) means a and b leave the same remainder when divided by m, equivalently m divides (a − b). So 17 ≡ 5 (mod 12) because 17 − 5 = 12, and on a 12-hour clock 17:00 reads as 5. The set of remainders {0, 1, …, m−1} are the residue classes; every integer falls into exactly one. The power of the notation is that congruence behaves almost exactly like equality — you can add a constant, multiply by a constant, and substitute one side for the other without changing the relation. The CAT-useful instinct is to always replace a number by its smallest residue (or a convenient negative one) before doing anything: 99 ≡ −1 (mod 100), 8 ≡ 1 (mod 7), 6 ≡ −1 (mod 7). Choosing −1 turns a scary power into a sign question.

✅ Solved examples

1. Is 100 ≡ 2 (mod 7)? Justify.
100 − 2 = 98 = 7 × 14, so 7 divides the difference. Yes, 100 ≡ 2 (mod 7).
2. Find the smallest non-negative residue of 250 (mod 9).
Digit sum of 250 = 2+5+0 = 7, and a number ≡ its digit sum (mod 9). So 250 ≡ 7 (mod 9).
3. Express 86 (mod 5) using both its least positive and a negative residue.
86 = 5×17 + 1, so 86 ≡ 1 (mod 5). A negative residue is 1 − 5 = −4, so 86 ≡ −4 (mod 5) as well.
4. If x ≡ 3 (mod 8), find the remainder when 5x + 2 is divided by 8.
5x + 2 ≡ 5×3 + 2 = 17 ≡ 1 (mod 8). Remainder is 1.

✏️ Practice — try these, take hints as needed

1. Is 123 ≡ 3 (mod 10)? State the residue of 123 mod 10.
Mod 10 is just the units digit.
Units digit of 123 is 3.
Compare with 3.
Yes; 123 ≡ 3 (mod 10)
2. Find the least non-negative residue of 1000 (mod 7).
1000 = 7×142 + r.
7×142 = 994.
1000 − 994.
6
3. What is 47 (mod 6) written as a negative residue?
47 = 6×7 + 5.
Least positive residue is 5.
5 − 6 gives the negative form.
−1
4. If a ≡ 4 (mod 9), find the residue of 2a + 5 (mod 9).
Substitute 4 for a.
2×4 + 5 = 13.
13 mod 9.
4
5. Find the remainder when 7^2 + 3 is divided by 5 using residues.
7 ≡ 2 (mod 5).
7^2 ≡ 4 (mod 5).
4 + 3 = 7 ≡ ? (mod 5).
2

📝 Topic test — 8 questions

Auto-graded with full solutions; saved to your dashboard. Use the calculator and formula sheet (top-right) any time.

Loading questions…