IIT-JEE Foundation
Class 10 Mathematics
Chapter: Real Numbers
Modular Arithmetic, Cyclicity & Diophantine Equations
Olympiad & JEE Bridge Module: Congruences, Last Digits & Linear Diophantine Equations
1Introduction
Every time you check a 12-hour analog clock—saying “10 hours after 7 o’clock is 5 o’clock” rather than 17 o’clock—you are using Modular Arithmetic. Instead of tracking infinitely growing numbers, modular arithmetic focuses on remainders after division by a fixed positive integer called the modulus.
When you combine modular remainders with the repeating last-digit patterns of powers (Cyclicity) and integer-solution equations (Linear Diophantine Equations), you gain the exact toolkit needed to crack remainder towers, find units/tens digits of huge powers like 72026, and solve integer word problems in IOQM, NTSE, and IIT-JEE Foundation examinations.
Why This Bridge Module Matters for Class 10 & IIT-JEE Foundation:
- Competitive Exam Edge: Remainder of an upon division by m, last digit / last two digits of powers, and integer solutions to ax + by = c are classic Olympiad and JEE Main numerical/MCQ topics.
- Cleaner Alternative to Casework: Congruences let you replace messy mq + r expansions with clean, compact remainder equations.
- Foundation for Higher Number Theory: Congruences and Diophantine equations directly prepare you for prime tests, polynomial roots mod p, and integer programming.
2Definitions
Definition 1: Congruence Modulo m
Let m be a positive integer (called the modulus). Two integers a and b are said to be congruent modulo m, written:
a ≡ b (mod m)
if and only if m divides (a – b) without remainder (i.e., a – b = km for some integer k). Equivalently, a and b leave the exact same remainder when divided by m.
In Simple Language: 29 ≡ 5 (mod 12) because both 29 and 5 leave remainder 5 when divided by 12 (and 29 – 5 = 24 is a multiple of 12). Also, 10 ≡ -2 (mod 12) because 10 – (-2) = 12!
Definition 2: Cyclicity of Powers
The Cyclicity of a base integer a (with respect to a modulus like 10 for the units digit or 100 for the last two digits) is the length of the repeating cycle of remainders as the exponent n = 1, 2, 3, … increases.
Example: Powers of 2 end in 2, 4, 8, 6, 2, 4, 8, 6…—a repeating cycle of 4 digits. So the units-digit cyclicity of 2 is 4.
Definition 3: Linear Diophantine Equation
A Linear Diophantine Equation in two variables is an equation of the form:
ax + by = c
where a, b, c are given integers (a, b not both zero), and we seek integer solutions (x, y ∈ Z), often subject to extra restrictions like x ≥ 0, y ≥ 0.
3Important Concepts
3.1 Arithmetic Operations with Congruences (Negative Remainders Trick!)
Suppose a ≡ b (mod m) and c ≡ d (mod m). You can add, subtract, multiply, and raise powers just like equations:
- Addition & Subtraction: a ± c ≡ b ± d (mod m).
- Multiplication & Powers: a · c ≡ b · d (mod m) and ak ≡ bk (mod m) for any integer k ≥ 1.
- Negative Residue Shortcut: When computing 9100 (mod 10), note that 9 ≡ -1 (mod 10)! Raising both sides to 100 gives 9100 ≡ (-1)100 = +1 (mod 10) in one line!
3.2 Units-Digit Cyclicity Table for Base Digits (0–9)
| Last Digit of Base |
Cycle of Last Digits (n = 1, 2, 3, 4…) |
Cyclicity |
Rule for Exponent n ≥ 1 |
| 0, 1, 5, 6 |
0; 1; 5; 6 |
1 |
Always ends in the same digit (0, 1, 5, or 6) for all n ≥ 1. |
| 4 |
4, 6, 4, 6… |
2 |
Ends in 4 if n is odd; ends in 6 if n is even. |
| 9 |
9, 1, 9, 1… |
2 |
Ends in 9 if n is odd; ends in 1 if n is even. |
| 2 |
2, 4, 8, 6… |
4 |
Let r = n (mod 4) (use r = 4 if divisible by 4); last digit is 2r‘s last digit. |
| 3 |
3, 9, 7, 1… |
4 |
With r ∈ {1, 2, 3, 4} where n ≡ r (mod 4), last digit matches 3r. |
| 7 |
7, 9, 3, 1… |
4 |
With r ∈ {1, 2, 3, 4} where n ≡ r (mod 4), last digit matches 7r. |
| 8 |
8, 4, 2, 6… |
4 |
With r ∈ {1, 2, 3, 4} where n ≡ r (mod 4), last digit matches 8r. |
3.3 Solving Linear Diophantine Equations (ax + by = c)
- Step 1 (Existence Check): Compute d = HCF(|a|, |b|). Integer solutions exist if and only if d divides c. If d does not divide c, stop immediately: no integer solutions exist.
- Step 2 (Reduce to Co-Prime Coefficients): Divide both sides by d to get a’x + b’y = c’, where HCF(a’, b’) = 1.
- Step 3 (Find One Particular Solution (x0, y0)): Use Euclid’s Algorithm / inspection or congruence (a’x ≡ c’ (mod b’)).
- Step 4 (Write All Integer Solutions): x = x0 + b’k, y = y0 – a’k for any integer k ∈ Z.
4Mathematical Formulas and Properties
1. Congruence Definition & Power Rule
a ≡ b (mod m) ⇔ m | (a – b) | an ≡ bn (mod m) (n ∈ Z+)
- Cancellation Caution: You can cancel a common factor c in ca ≡ cb (mod m) to get a ≡ b (mod m / gcd(c, m)). If gcd(c, m) = 1, the modulus m stays unchanged!
2. Last Digit & Last Two Digits Rules
Last Digit of N = N (mod 10) | Last Two Digits of N = N (mod 100)
- Useful Mod-100 Shortcuts: 76k ≡ 76 (mod 100) and 25k ≡ 25 (mod 100) for all k ≥ 1; 51k ≡ (50k + 1) (mod 100).
3. Linear Diophantine Equation (ax + by = c)
Solvable in Z ⇔ d | c (d = HCF(a, b)) ⇒ x = x0 + (b/d)k, y = y0 – (a/d)k (k ∈ Z)
- Chicken McNugget / Frobenius Bound (for a, b > 0 co-prime): The largest integer that cannot be written as ax + by with non-negative integers x, y ≥ 0 is ab – a – b. Every integer greater than ab – a – b can be formed with x, y ≥ 0!
5Solved Examples (Basic to Advanced)
Example 1: Finding the Units Digit Using Cyclicity
Basic
Find the units (last) digit of 3147 × 782 × 455.
Step 1 (Units digit of 3147, cyclicity = 4):
Divide exponent 147 by 4: 147 = 4 × 36 + 3 ⇒ 147 ≡ 3 (mod 4).
3rd term in {3, 9, 7, 1} is 7.
Step 2 (Units digit of 782, cyclicity = 4):
Divide exponent 82 by 4: 82 = 4 × 20 + 2 ⇒ 82 ≡ 2 (mod 4).
2nd term in {7, 9, 3, 1} is 9.
Step 3 (Units digit of 455, cyclicity = 2):
Since exponent 55 is odd, 455 ends in 4.
Step 4 (Multiply only the units digits mod 10):
7 × 9 × 4 = 63 × 4 ≡ 3 × 4 = 12 ≡ 2 (mod 10).
Final Answer: The units digit is 2.
Example 2: Remainder of a Large Power Using Modular Arithmetic
Basic
Find the remainder when 172026 is divided by 18.
Step 1 (Reduce base 17 modulo 18):
Since 17 – (-1) = 18, we have:
17 ≡ -1 (mod 18).
Step 2 (Raise both sides to power 2026):
Since 2026 is an even integer:
172026 ≡ (-1)2026 = +1 (mod 18).
Final Answer: The remainder is 1.
Example 3: Solving a Linear Diophantine Equation via Congruence
Intermediate
Find the general integer solution of 11x + 7y = 1 and find all positive integer solutions (x > 0, y > 0).
Step 1 (Check solvability & convert to congruence mod 7):
HCF(11, 7) = 1, which divides 1. Taking both sides modulo 7 (since 7y ≡ 0 (mod 7)):
11x ≡ 1 (mod 7) ⇒ 4x ≡ 1 (mod 7) (since 11 ≡ 4 (mod 7)).
Step 2 (Find x0 and y0):
Test x = 2: 4(2) = 8 ≡ 1 (mod 7)! So x0 = 2 works.
Substitute x0 = 2 into 11x + 7y = 1:
11(2) + 7y = 1 ⇒ 22 + 7y = 1 ⇒ 7y = -21 ⇒ y0 = -3.
Step 3 (General solution & positive integer filter):
General solution: x = 2 + 7k, y = -3 – 11k (k ∈ Z).
For x > 0: 2 + 7k > 0 ⇒ k ≥ 0. For y > 0: -3 – 11k > 0 ⇒ k < -3/11.
No integer k satisfies both inequalities simultaneously.
Final Answer: General solution: x = 2 + 7k, y = -3 – 11k (k ∈ Z); Positive integer solutions: None (0 pairs).
Example 4: Last Two Digits of a Power
Intermediate
Find the last two digits of 740.
Step 1 (Find a power of 7 ending in 01 to simplify mod 100):
• 71 = 07
• 72 = 49
• 73 = 343 ≡ 43 (mod 100)
• 74 = 2401 ≡ 01 (mod 100)!
Step 2 (Write 740 = (74)10):
Since 74 ≡ 1 (mod 100):
740 = (74)10 ≡ 110 = 1 (mod 100).
Final Answer: The last two digits of 740 are 01.
Example 5: IOQM / JEE Foundation — Remainder of a Sum of Powers
Advanced
Find the remainder when 12026 + 22026 + 32026 + 42026 + 52026 is divided by 5.
Step 1 (Reduce each base modulo 5):
• 12026 ≡ 12026 = 1 (mod 5)
• 22026: since 22 = 4 ≡ -1 (mod 5), write 22026 = (22)1013 ≡ (-1)1013 = -1 ≡ 4 (mod 5)
• 32026: since 32 = 9 ≡ -1 (mod 5), write 32026 = (32)1013 ≡ (-1)1013 = -1 ≡ 4 (mod 5)
• 42026 ≡ (-1)2026 = +1 (mod 5)
• 52026 ≡ 0 (mod 5)
Step 2 (Sum the remainders modulo 5):
1 + (-1) + (-1) + 1 + 0 = -1 ≡ 4 (mod 5).
Final Answer: The remainder is 4.
6Real-Life Applications
Application 1: Day-of-the-Week Calendar Scheduling (Modulo 7)
Practical Use
Today is Thursday. What day of the week will it be after 10100 days?
Step 1 (Find 10100 (mod 7)):
Since 10 ≡ 3 (mod 7), look at powers of 3 modulo 7:
31 ≡ 3, 32 ≡ 2, 33 ≡ 6 ≡ -1 (mod 7).
Now write 100 = 3 × 33 + 1:
10100 ≡ 3100 = (33)33 · 31 ≡ (-1)33 · 3 = -3 ≡ 4 (mod 7).
Step 2 (Advance 4 days from Thursday):
Thursday + 1 = Friday; + 2 = Saturday; + 3 = Sunday; + 4 = Monday.
Practical Result: After 10100 days, it will be a Monday.
Application 2: Inventory Ordering & Diophantine Budget Planning
Practical Use
A lab orders x packs of 6-vial reagent boxes and y packs of 10-vial reagent boxes to get an exact total of 100 vials (x, y ≥ 0). How many valid ordering combinations exist?
Solution:
We have 6x + 10y = 100. Divide by HCF(6, 10) = 2: 3x + 5y = 50.
Since 5y ends in 0 or 5, 3x must also end in 0 or 5 for x, y ≥ 0:
• x = 0 ⇒ y = 10
• x = 5 ⇒ 3(5) + 5y = 50 ⇒ 5y = 35 ⇒ y = 7
• x = 10 ⇒ 3(10) + 5y = 50 ⇒ 5y = 20 ⇒ y = 4
• x = 15 ⇒ 3(15) + 5y = 50 ⇒ 5y = 5 ⇒ y = 1.
Practical Result: 4 non-negative integer combinations: (0, 10), (5, 7), (10, 4), and (15, 1).
7Common Mistakes & How to Avoid Them
Mistake 1: Using Remainder 0 Instead of 4 When Exponent Is Divisible by 4
For 212, 12 ÷ 4 leaves remainder 0. Students who pick the “0th” item in the cycle write 0 instead of the 4th item (6).
How to Avoid: Whenever the exponent is an exact multiple of 4 (remainder 0), use the 4th power in the cycle (e.g., 24 = 16 → ends in 6).
Mistake 2: Leaving a Negative Remainder When Asked for “The Remainder”
Writing -3 (mod 7) as the final remainder in a word problem loses points because standard remainders satisfy 0 ≤ r < m.
How to Avoid: Negative residues are great shortcuts during calculation, but always add the modulus m at the very end (-3 + 7 = 4) to state the standard non-negative remainder.
Mistake 3: Forgetting to Check HCF(a, b) | c Before Solving Diophantine Equations
In 4x + 6y = 15, HCF(4, 6) = 2 does not divide 15 (an even number plus an even number can never equal an odd number!).
How to Avoid: Always run the HCF(a, b) | c divisibility check first.
Mistake 4: Applying Units-Digit Cyclicity to Find the Last Two Digits
The last digit repeats in cycles of at most 4, but the last two digits follow a larger cycle (such as 20 for powers of 2).
How to Avoid: For last two digits, work modulo 100 and look for powers ending in 01, 76, or 25.
8Quick Revision
Olympiad & JEE Bridge Cheat-Sheet
- Congruence Relation: a ≡ b (mod m) ⇔ m | (a – b). Preserved under +, -, ×, and positive integer powers.
- Units Digit Cyclicity: Bases ending in 0, 1, 5, 6 have cycle 1; 4, 9 have cycle 2; 2, 3, 7, 8 have cycle 4.
- Diophantine Existence: ax + by = c has integer solutions if and only if HCF(a, b) | c.
- General Integer Solution: After dividing by d = HCF(a, b) to get a’x + b’y = c’, from one solution (x0, y0) all solutions are x = x0 + b’k, y = y0 – a’k (k ∈ Z).
- Non-Negative Representability Bound: For co-prime a, b > 0, the largest integer not of the form ax + by (x, y ≥ 0) is ab – a – b.
Pages: 1 2 3 4 5 6 7 8 9 10
Leave a Reply