Loading…
Loading…
Charting your lesson…
Opening your lesson…
Remainders and Divisibility
Lesson 4 of 6
17 steps•about 27 min•7 flashcards
Step 1/ 171 min
The remainder theorem is to number theory what the percentage formula is to arithmetic — a single compact rule that unlocks an entire category of SSC CGL questions about large powers and complex divisions.
Definition: When a number N is divided by a divisor d, the remainder r satisfies: N = d × q + r, where q is the quotient and 0 ≤ r < d.
Step 2/ 17· Remainder Theorem Concepts1 min
Notation: N mod d, or N % d, or "remainder when N ÷ d."
Key observations:
Real-world example: If 100 students are to sit in rows of 9: 100 = 9 × 11 + 1. The remainder 1 means one student is left over after filling 11 complete rows. This models N = 100, d = 9, q = 11, r = 1.
Step 3/ 17· Remainder Theorem Concepts1 min
These rules allow you to break a huge computation into smaller, manageable ones.
Rule 1 — Addition mod d:
(a + b) mod d = [(a mod d) + (b mod d)] mod d
Example: (47 + 38) mod 5
= [(47 mod 5) + (38 mod 5)] mod 5
= [2 + 3] mod 5
= 5 mod 5 = 0
Verify: 47 + 38 = 85; 85 ÷ 5 = 17 remainder 0 ✓
Rule 2 — Multiplication mod d:
(a × b) mod d = [(a mod d) × (b mod d)] mod d
Example: (23 × 17) mod 4
= [(23 mod 4) × (17 mod 4)] mod 4
= [3 × 1] mod 4
= 3 mod 4 = 3
Verify: 23 × 17 = 391; 391 = 97 × 4 + 3, remainder 3 ✓
Rule 3 — Powers mod d (derived from Rule 2):
aⁿ mod d = (a mod d)ⁿ mod d
This is the key to all large-power remainder questions.
Step 4/ 17· Remainder Theorem Concepts1 min
Think of numbers on a clock-face. A 12-hour clock uses mod 12. If it is 10 o'clock now, and 5 hours pass, the clock shows (10 + 5) mod 12 = 3 — not 15. The "modulus" wraps numbers around just like a circular track.
Real-world example: Weekday calculation. If today is Thursday (day 4, counting Mon=1), what day is it 100 days from now? (4 + 100) mod 7 = 104 mod 7 = 104 − 14×7 = 104 − 98 = 6 → Saturday.
Step 5/ 17· Remainder Theorem Concepts1 min
Definition: Euler's Totient function φ(n) counts the number of integers from 1 to n that are co-prime to n.
Euler's Theorem: If gcd(a, n) = 1 (a and n are co-prime), then:
a^φ(n) ≡ 1 (mod n)
This means a^φ(n) leaves remainder 1 when divided by n.
Computing φ(n):
Example: Find remainder when 3^100 is divided by 7.
Step 6/ 17· Remainder Theorem Concepts1 min
Definition: For a prime p and any integer a where p does not divide a:
a^(p−1) ≡ 1 (mod p)
This is actually a special case of Euler's Theorem (since φ(p) = p−1 for prime p).
Example: Find remainder when 2^10 is divided by 11.
Why it matters for SSC: When the divisor is prime, Fermat's theorem gives the cycle length instantly without computing powers manually.
Step 7/ 17· Remainder Theorem Concepts1 min
For questions like "Find remainder when 7^50 ÷ 5":
Method 1 — Euler/Fermat:
Method 2 — Cyclicity (see next lesson): Build the pattern of remainders manually for 7^1, 7^2, 7^3, 7^4 and find when it repeats.
Both methods must give the same answer.
Step 8/ 17· Remainder Theorem Concepts1 min
Shortcut 1: (N + d) has the same remainder as N when divided by d.
Example: Remainder of 17 ÷ 5 = remainder of (17 − 15) = 2 ÷ 5 = 2.
Shortcut 2: If N ≡ r₁ (mod d) and M ≡ r₂ (mod d), then:
Shortcut 3: Negative remainders. Sometimes it is easier to use negative equivalents.
Step 9/ 17· Remainder Theorem Concepts2 min
Question: Find the remainder when 2^100 is divided by 3.
Solution:
Step 1: Note gcd(2, 3) = 1. φ(3) = 2.
Step 2: By Euler: 2^2 ≡ 1 (mod 3). So the cycle length is 2.
Step 3: 100 = 2 × 50, with no remainder. So 2^100 = (2^2)^50 ≡ 1^50 = 1 (mod 3).
Conclusion: Remainder = 1.
Quick verification: 2^1 mod 3 = 2; 2^2 mod 3 = 1; 2^3 mod 3 = 2; 2^4 mod 3 = 1 → cycle is (2, 1). 100 is even → remainder 1 ✓
"Euler's φ resets to 1" — after φ(n) steps of multiplying a, the remainder returns to 1. Think of it as a timer that resets every φ(n) ticks.
Step 10/ 17· ⚡ Speed Tricks & Shortcuts1 min
When you divide N by d, the remainder depends only on N's remainder with respect to d. This lets you shrink huge numbers before doing anything with them. All the shortcuts below follow from this single fact, so each one comes with the condition under which it holds.
Step 11/ 17· ⚡ Speed Tricks & Shortcuts1 min
For a fixed divisor d:
Find the remainder when 23 × 47 × 61 is divided by 11.
23 ≡ 1, 47 ≡ 3, 61 ≡ 6 (mod 11). Product ≡ 1 × 3 × 6 = 18 ≡ 7.
Check: 23 × 47 × 61 = 65,941 and 65,941 = 11 × 5994 + 7. ✓
You may reduce numbers that are added, subtracted, multiplied or raised to powers. You cannot replace a division by a division of remainders. For example, 100 leaves remainder 2 on division by 7 and 50 leaves remainder 1, but "100 ÷ 50" is not a remainder question at all. If the dividend is itself a quotient, simplify it to a whole number first.
Step 12/ 17· ⚡ Speed Tricks & Shortcuts1 min
If a number is just below a multiple of d, use a negative remainder: it makes powers trivial.
17²³ ÷ 18: since 17 ≡ −1 (mod 18), 17²³ ≡ (−1)²³ = −1, and −1 ≡ 18 − 1 = 17.
The same trick: (d − 1)ⁿ leaves remainder 1 if n is even and d − 1 if n is odd; aⁿ ÷ (a + 1) leaves (−1)ⁿ, that is, 1 for even n and a for odd n.
Step 13/ 17· ⚡ Speed Tricks & Shortcuts1 min
Powers of a number repeat their remainders. Find the cycle length, divide the exponent by it, and use the remainder of the exponent (if it is 0, use the last item in the cycle).
The unit digit of a number is its remainder mod 10, and mod 5 depends only on the unit digit too. For 3⁴⁷: the unit-digit cycle is 3, 9, 7, 1; 47 = 4 × 11 + 3, so the unit digit is 7, and 7 mod 5 = 2.
Step 14/ 17· ⚡ Speed Tricks & Shortcuts1 min
Fermat example: 5¹⁰⁰ ÷ 13. Here p = 13, so 5¹² ≡ 1; 100 = 12 × 8 + 4, giving 5⁴ = 625 = 13 × 48 + 1, so the remainder is 1.
Euler example: 2¹⁰⁰⁰ ÷ 9. 2 and 9 are coprime and φ(9) = 6; 1000 = 6 × 166 + 4, so 2¹⁰⁰⁰ ≡ 2⁴ = 16 ≡ 7.
If a shares a factor with n, Euler fails. Example: 6 and 9 are not coprime, and 6² = 36 is already ≡ 0 (mod 9), so 6ⁿ for n ≥ 2 leaves remainder 0, not 1.
Step 15/ 17· ⚡ Speed Tricks & Shortcuts1 min
Step 16/ 17· ⚡ Speed Tricks & Shortcuts1 min
1. The remainder when 3⁴⁷ is divided by 5 is
(a) 1 (b) 2 (c) 3 (d) 4
Answer: (b). Powers of 3 mod 5 cycle 3, 4, 2, 1 (length 4); 47 = 4 × 11 + 3, so the third item, 2.
2. The remainder when 23 × 47 × 61 is divided by 11 is
(a) 5 (b) 6 (c) 7 (d) 8
Answer: (c). Remainders 1, 3, 6 give 18, and 18 mod 11 = 7.
Step 17/ 17· Worked examples6 min
The binomial identity (a + 1)^n = multiple of a + 1 is one of the most elegant shortcuts in number theory — once you see it, an entire class of large-power remainder questions collapses into a single step.
Why it works: By the Binomial Theorem, (kd + r)^n expands as:
(kd)^n + n(kd)^(n−1)·r + … + n·(kd)·r^(n−1) + r^n
Every term except the last contains kd as a factor, so every term except the last is divisible by d. This means:
(kd + r)^n ≡ r^n (mod d)
Special case r = 1:
(kd + 1)^n ≡ 1^n = 1 (mod d) — always remainder 1, regardless of n.
Special case r = −1 (i.e., kd − 1):
(kd − 1)^n ≡ (−1)^n (mod d)
Question: Find the remainder when 17^35 is divided by 16.
Solution:
Step 1: Notice that 17 = 16 + 1. So here d = 16, k = 1, r = 1, n = 35.
Step 2: By the binomial rule: (16 + 1)^35 ≡ 1^35 = 1 (mod 16).
Conclusion: Remainder = 1.
Intuitive check: 17 ≡ 1 (mod 16). So 17^35 ≡ 1^35 = 1 (mod 16). ✓
This takes under 10 seconds once you spot the pattern.
Rule: (kd − 1)^n mod d:
Derivation: kd − 1 ≡ −1 (mod d). So (kd−1)^n ≡ (−1)^n (mod d). When n is even, (−1)^n = 1 → remainder 1. When n is odd, (−1)^n = −1 ≡ d−1 (mod d) → remainder d−1.
Example A: Find the remainder when 19^41 is divided by 18.
Example B: Find the remainder when 35^99 is divided by 36.
Example C: Find the remainder when 35^100 is divided by 36.
Example D: Find the remainder when 31^26 is divided by 32.
When r ≠ 1 or −1, the binomial rule still reduces the problem:
Example E: Find the remainder when 23^3 is divided by 10.
Example F: Find the remainder when 52^10 is divided by 7.
Question: Find the remainder when 2^200 is divided by 15.
Solution:
Step 1: Note gcd(2, 15) = 1. φ(15) = φ(3)×φ(5) = 2×4 = 8.
By Euler: 2^8 ≡ 1 (mod 15).
Step 2: 200 = 8 × 25. So 2^200 = (2^8)^25 ≡ 1^25 = 1 (mod 15).
Conclusion: Remainder = 1.
Quick verify: 2^4 = 16 ≡ 1 (mod 15). So cycle length is actually 4 (not 8 — Euler gives maximum, actual can be shorter). 200 = 4 × 50 → 2^200 ≡ 1^50 = 1 (mod 15). ✓
| Form | Condition | Remainder mod d |
|---|---|---|
| (kd + 1)^n | Any n | 1 |
| (kd − 1)^n | n even | 1 |
| (kd − 1)^n | n odd | d − 1 |
| (kd + r)^n | General | r^n mod d |
| a^n, a ≡ 1 (mod d) | Any n | 1 |
| a^n, a ≡ −1 (mod d) | n even | 1 |
| a^n, a ≡ −1 (mod d) | n odd | d − 1 |
Question 1: Remainder when 101^99 ÷ 100.
Question 2: Remainder when 99^99 ÷ 100.
Question 3: Remainder when 99^100 ÷ 100.
Question 4: Remainder when 37^2 ÷ 13.
"Plus-one never tires — always leaves 1. Minus-one plays odds and evens — odd power gives (d−1), even power gives 1."
Recall
Keep this
When you need the remainder of 7^100 divided by 5, computing 7^100 directly is impossible by hand — but the cyclicity method turns it into a 4-step problem that takes 20 seconds.
Definition: Cyclicity (in the context of remainders) is the property that the remainders of successive powers of a number repeat in a fixed cycle when divided by a given divisor.
This happens because there are only a finite number of possible remainders (0 through d−1) when dividing by d. Once a remainder repeats, the entire cycle repeats from that point.
Step 1: Compute successive powers of the base, taking the remainder at each step.
Step 2: Identify when the remainder first repeats (typically when it returns to the remainder of base^1).
Step 3: Note the cycle length (period of repetition).
Step 4: Divide the exponent by the cycle length. The remainder of this division tells you which position in the cycle the answer falls on.
Step 1 — Compute remainders of 7^n (mod 5):
Cycle: 2, 4, 3, 1 — length 4
Step 2 — Find position of 7^50 in cycle:
50 mod 4 = 2 (since 50 = 4 × 12 + 2)
Step 3 — The answer is the 2nd value in the cycle: 4
Conclusion: Remainder of 7^50 ÷ 5 = 4
Quick shortcut check: 7 ≡ 2 (mod 5), so 7^50 ≡ 2^50 (mod 5). 50 mod 4 = 2 → 2^2 = 4. ✓
The reason cycles are guaranteed: once a remainder r₀ appears twice, the next remainders are determined only by r₀ (via the multiplication rule), so the sequence must repeat exactly.
The cycle length divides φ(d) (Euler's totient). This is why Euler's Theorem guarantees a cycle of length at most φ(d).
Real-world application: The last-digit cycle is cyclicity mod 10. Finding the last digit of 3^47: cycle is (3,9,7,1), period 4. 47 mod 4 = 3. Third element in cycle = 7. The last digit of 3^47 is 7.
Statement: For any prime number p:
(p − 1)! ≡ −1 (mod p)
Equivalently: (p−1)! leaves remainder (p−1) when divided by p.
Example: p = 7. Wilson says 6! ≡ −1 ≡ 6 (mod 7).
Verify: 6! = 720. 720 ÷ 7 = 102 remainder 6. ✓
SSC Application:
Find remainder when 6! is divided by 7.
Answer by Wilson: 720 mod 7 = 6 (i.e., 7−1).
Find remainder when 10! is divided by 11.
11 is prime; Wilson gives 10! ≡ −1 ≡ 10 (mod 11). Remainder = 10.
Converse: If (n−1)! ≡ −1 (mod n), then n is prime. This can be used to verify primality but is impractical for large n by hand.
Definition: The Chinese Remainder Theorem states that if you know the remainders of a number N when divided by several pairwise co-prime moduli, you can uniquely determine N (modulo the product of those moduli).
Practical SSC Form:
"A number N leaves remainder 3 when divided by 5, and remainder 2 when divided by 7. Find the smallest such N."
Method:
The general solution: N = 23 + k × LCM(5,7) = 23 + 35k. Smallest positive N = 23.
Question: Find the remainder when 13^51 is divided by 7.
Solution:
Step 1: Reduce base first. 13 mod 7 = 6 (since 13 = 7×1 + 6). So 13^51 ≡ 6^51 (mod 7).
Step 2: Note 6 ≡ −1 (mod 7). So 6^51 ≡ (−1)^51 = −1 ≡ 6 (mod 7).
Conclusion: Remainder = 6.
(This shows the power of recognising a base that is "−1" relative to the modulus.)
Question: Find the remainder when 14! is divided by 17.
Solution:
Step 1: 17 is prime; Wilson says 16! ≡ −1 ≡ 16 (mod 17).
Step 2: 16! = 16 × 15 × 14!. So 16 × 15 × (14!) ≡ 16 (mod 17).
Step 3: 16 ≡ −1 (mod 17) and 15 ≡ −2 (mod 17).
(−1)(−2)(14!) ≡ 16 ≡ −1 (mod 17)
2 × 14! ≡ −1 (mod 17)
14! ≡ −1 × (2^−1 mod 17) (mod 17)
Step 4: Find 2^−1 mod 17: 2 × 9 = 18 ≡ 1 (mod 17), so 2^−1 = 9.
14! ≡ −9 ≡ 17 − 9 = 8 (mod 17).
Conclusion: Remainder = 8.
Quick-revision notes for Remainders and Divisibility — the must-know points for SSC CGL Tier-I/II.
You've read 0 of 17 steps
Now lock it in — questions straight after reading are what make it stick.