Modular Arithmetic • Topic 3 of 3

Applications

Two CAT favourites fall straight out of modular arithmetic: inverses/linear congruences and calendar–clock problems. A modular inverse of a (mod m) is the number a⁻¹ with a·a⁻¹ ≡ 1 (mod m); it exists only when gcd(a, m) = 1. To solve 3x ≡ 1 (mod 7), test residues: 3×5 = 15 ≡ 1, so x ≡ 5. More generally ax ≡ b (mod m) is solvable exactly when gcd(a,m) divides b. For calendars, every 7 days repeats the weekday, so you work mod 7. The count of odd days (the remainder after dividing total days by 7) tells you the shift: an ordinary year has 1 odd day, a leap year 2. For clocks, hours work mod 12 and minutes mod 60. The exam shortcut is to map the question to "what is N mod 7?" or "what is N mod 12?" and add that shift to the known starting point.

✅ Solved examples

1. Find the modular inverse of 3 modulo 7.
Need 3x ≡ 1 (mod 7). 3×5 = 15 = 14 + 1 ≡ 1, so the inverse is 5.
2. Solve 4x ≡ 5 (mod 9).
gcd(4,9)=1, so unique. Inverse of 4 mod 9 is 7 (4×7=28≡1). x ≡ 7×5 = 35 ≡ 8 (mod 9). So x ≡ 8.
3. If today is Wednesday, what day will it be after 100 days?
100 mod 7 = 2 (since 98 = 7×14). Wednesday + 2 days = Friday.
4. The year 2024 is a leap year and 1 Jan 2024 is a Monday. What day is 1 Jan 2025?
A leap year has 366 days; 366 mod 7 = 2 odd days. Monday + 2 = Wednesday.

✏️ Practice — try these, take hints as needed

1. Find the modular inverse of 5 modulo 11.
Need 5x ≡ 1 (mod 11).
Try x = 9: 5×9 = 45.
45 = 44 + 1.
9
2. Solve 2x ≡ 3 (mod 5).
Inverse of 2 mod 5 is 3 (2×3=6≡1).
x ≡ 3×3.
9 mod 5.
x ≡ 4 (mod 5)
3. If today is Sunday, what day will it be 365 days later (ordinary year)?
365 mod 7.
364 = 7×52.
1 odd day.
Monday
4. What is the day of the week 1,000 days after a Friday?
1000 mod 7.
994 = 7×142.
Shift = 6.
Thursday
5. A clock shows 9 o’clock. What hour does it show 50 hours later?
Hours work mod 12.
50 mod 12 = 2.
9 + 2.
11 o’clock

📝 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…