11. Remainders & Modulo Arithmetic
Remainder concepts + modulo arithmetic (mod): division algorithm, remainder rules, cyclicity base, negative mod basics, SSC CGL level examples & practice questions with answers.
1) Division Algorithm (base concept)
Kisi bhi integers a (dividend) aur b (>0) (divisor) ke liye:
a = bq + r
jahan 0 ≤ r < b.
Yahi r remainder hota hai.
- Example: 29 = 7×4 + 1 ⇒ remainder 1
- Important: remainder always divisor se chhota hota hai.
2) Modulo (mod) kya hota hai?
a mod n ka matlab: a ko n se divide karne par jo remainder aaye.
- 17 mod 5 = 2
- 100 mod 8 = 4
3) Congruence (≡) — SSC friendly meaning
Agar a aur b ko n se divide karne par same remainder aaye, to:
a ≡ b (mod n)
- Example: 17 ≡ 2 (mod 5) because both leave remainder 2 when divided by 5.
- Shortcut: a ≡ b (mod n) ⇔ (a − b) divisible by n.
4) Most-used modulo rules (must learn)
- (a + b) mod n = ((a mod n) + (b mod n)) mod n
- (a − b) mod n = ((a mod n) − (b mod n)) mod n (negative aaya to n add kar do)
- (a × b) mod n = ((a mod n) × (b mod n)) mod n
- (ak) mod n: pehle a mod n reduce, then power/cyclicity use
5) Quick examples (reduce first)
Example 1
(123 + 789) mod 10
- 123 mod 10 = 3, 789 mod 10 = 9
- (3 + 9) mod 10 = 12 mod 10 = 2
Example 2
(98 × 77) mod 7
- 98 mod 7 = 0 ⇒ (0 × 77) mod 7 = 0
6) Negative modulo (simple handling)
Exam me kabhi kabhi subtraction me negative aa jata hai.
Rule: answer ko 0 to n−1 ke beech laane ke liye n add kar do.
- Example: (2 − 5) mod 7 = (−3) mod 7 = 4 (because −3 + 7 = 4)
7) Standard remainder patterns (SSC)
A) (a + b) divisible by n
Agar a mod n = r, to (n − r) mod n = n − r (unless r=0).
So a + (n − r) is divisible by n.
- Example: 17 mod 5 = 2 ⇒ add 3 to make divisible by 5: 17+3=20
B) If a ≡ b (mod n) then ak ≡ bk (mod n)
- Example: 12 ≡ 2 (mod 5) ⇒ 124 mod 5 = 24 mod 5 = 16 mod 5 = 1
8) Classic SSC-type remainder questions
Example 1: Big power remainder
Find remainder when 3100 is divided by 7.
- 3 mod 7 = 3
- 32=9 ≡ 2 (mod 7)
- 33≡ 6, 34≡ 4, 35≡ 5, 36≡ 1 (cycle length 6)
- 100 mod 6 = 4 ⇒ remainder = 34 mod 7 = 4
Example 2: Expression remainder
Find remainder when (1050 + 3) is divided by 7.
- 10 mod 7 = 3 ⇒ 1050 mod 7 = 350 mod 7
- 3 cycle mod 7 has length 6 (as above): 50 mod 6 = 2 ⇒ 350 mod 7 = 32 mod 7 = 2
- (2 + 3) mod 7 = 5
9) Common traps
- Remainder always 0 to (divisor−1) ke beech hota hai.
- Before big calculation, numbers ko mod n me reduce karo (life easy).
- Subtraction me negative aaye to n add karke positive remainder lo.
10) Practice (SSC CGL) + Answers
- Find remainder when 257 is divided by 9.
- Find (3456 mod 8).
- Find remainder when 225 is divided by 7.
- Find remainder when (995 + 1) is divided by 10.
- (15×17 + 19) mod 6 ?
- (5 − 19) mod 7 ?
Show Answers
- 257 = 9×28 + 5 ⇒ remainder 5
- 3456 divisible by 8? last3=456, 456÷8=57 ⇒ remainder 0
- 2 mod 7 cycle: 2,4,1,2... length 3. 25 mod 3 = 1 ⇒ remainder 2
- 99 mod 10 = 9 ⇒ 9odd mod 10 = 9 ⇒ (9 + 1) mod 10 = 0
- 15 mod 6=3, 17 mod 6=5 ⇒ 3×5=15 mod 6=3; 19 mod 6=1 ⇒ (3+1)=4
- (5−19)=-14; -14 mod 7 = 0