Introduction
Modular arithmetic helps us find remainders easily - even for very large numbers. Instead of dividing completely, we just focus on what remainder a number leaves when divided by another number. This idea appears in many aptitude problems like remainder, last-digit, and cyclicity questions.
Pattern: Remainder & Modular Arithmetic (Basic)
Pattern
The key concept: a ≡ b (mod m) means both a and b leave the same remainder when divided by m.
- Definition: a ≡ b (mod m) ⇔ m divides (a - b).
- Addition & Subtraction: (a ± b) mod m = [(a mod m) ± (b mod m)] mod m.
- Multiplication: (a × b) mod m = [(a mod m) × (b mod m)] mod m.
- Power rule: ak mod m → keep reducing after each multiplication step to avoid large numbers.
- Cycles: For repeated powers, the pattern of remainders repeats after some time. Use this cycle to simplify large exponents.
- Negative Remainders: If you get a negative remainder, add the divisor (m) until it becomes positive.
Step-by-Step Example
Question
Find the remainder when 7100 is divided by 13.
Solution
-
Step 1: What we are finding:
We need the remainder of 7100 ÷ 13, i.e., 7100 mod 13. -
Step 2: Look for a pattern in powers of 7 mod 13:
7¹ ≡ 7 (mod 13) 7² = 49 → 49 ÷ 13 = 3 remainder 10 → 7² ≡ 10 (mod 13) 7³ = 7²×7 = 10×7 = 70 → 70 ÷ 13 = 5 remainder 5 → 7³ ≡ 5 (mod 13) 7⁴ = 5×7 = 35 → 35 ÷ 13 = 2 remainder 9 → 7⁴ ≡ 9 (mod 13) -
Step 3: Check for repeating cycle:
If we continue, after 12 powers, 7¹² ≡ 1 (mod 13). So the powers of 7 repeat every 12 steps. -
Step 4: Simplify exponent using the cycle:
100 ÷ 12 → remainder 4 → 7¹⁰⁰ ≡ 7⁴ (mod 13) -
Step 5: Use the earlier result:
From Step 2, 7⁴ ≡ 9 (mod 13) -
Final Answer:
Remainder = 9 -
Quick Check:
You can verify by smaller exponent reduction: 7¹² ≡ 1, so 7¹⁰⁰ = (7¹²)⁸ × 7⁴ ≡ 1⁸ × 7⁴ ≡ 9 mod 13 ✅
Quick Variations
1. Find remainders of large numbers using cycles (like 2100 mod 5).
2. Handle negative numbers (e.g., -3 mod 5 = 2).
3. Solve equations like a·x ≡ b (mod m) by trying small values or using modular inverses.
Trick to Always Use
- Step 1: Reduce numbers modulo m as soon as possible.
- Step 2: Look for repeating patterns in powers to simplify large exponents.
- Step 3: For simple equations, test small values or find modular inverses when possible.
- Step 4: Always convert negative remainders to positive by adding m.
Summary
Summary
- Modular arithmetic helps solve remainder problems quickly by reducing numbers under the modulus.
- Use rules for addition, subtraction, multiplication, and powers to simplify expressions modulo m.
- Recognise that a ≡ b (mod m) means both leave the same remainder when divided by m.
- Use cycles (repeating patterns) for large exponents and convert negative remainders to positive by adding m.
Example to remember:
7¹² ≡ 1 (mod 13), so 7¹⁰⁰ ≡ 7⁴ ≡ 9 (mod 13).
