Negative Remainders
A remainder need not be written as a positive number — and the cleverest CAT solutions use that freedom. If a number is just 1 short of a multiple of n, it is ≡ −1 (mod n); if 2 short, it is ≡ −2. The payoff is enormous for powers: when a base ≡ −1, any even power is +1 and any odd power is −1, so the whole exponent question collapses to a parity check. Example: the remainder of 6^100 mod 7 — since 6 ≡ −1 (mod 7), 6^100 ≡ (−1)^100 = 1. The discipline is two-step: first nudge the base to the nearest multiple of n to get −1 or −2, then read off the sign. When a calculation finishes with a negative remainder, convert to the standard positive form by adding n: a result of −3 (mod 7) is the usual remainder 4. CAT loves bases like 9 mod 10, 16 mod 17, and 22 mod 23 precisely for this −1 trick.
✅ Solved examples
✏️ Practice — try these, take hints as needed
📝 Topic test — 8 questions
Auto-graded with full solutions; saved to your dashboard. Use the calculator and formula sheet (top-right) any time.
Formula Reference Sheet
Modular reduction core
| Notation | a ≡ r (mod n) means n divides (a − r) |
|---|---|
| Sum / difference | (a ± b) mod n = (a mod n ± b mod n) mod n |
| Product | (a × b) mod n = ((a mod n)(b mod n)) mod n |
| Power | a^k mod n = (a mod n)^k mod n |
| Negative remainder | if a ≡ −1 (mod n) then a^k ≡ (−1)^k (mod n) |
Named theorems
| Fermat’s little theorem | a^(p−1) ≡ 1 (mod p), p prime, gcd(a,p)=1 |
|---|---|
| Euler’s theorem | a^φ(n) ≡ 1 (mod n), gcd(a,n)=1 |
| Euler’s totient | φ(n) = n·∏(1 − 1/p) over distinct primes p | n |
| Wilson’s theorem | (p − 1)! ≡ −1 (mod p), p prime |
| Corollary of Wilson | (p − 2)! ≡ 1 (mod p), p prime |