IIT-JEE Foundation
Class 10 Mathematics
Chapter: Real Numbers
Euclid’s Division Algorithm & Linear Combinations
A complete guide to computing Highest Common Factors (HCF) and expressing them as Bezout linear combinations for Class 10 Boards & IIT-JEE Foundation.
1Introduction
Finding the Highest Common Factor (HCF) of small numbers like 12 and 18 by listing factors is effortless. However, what if you need to find the HCF of two massive integers like 12576 and 4052 without spending twenty minutes testing prime factors?
Euclid’s Division Algorithm solves this problem in just a few simple division steps. Even better, by reversing those exact division steps, we can express the HCF of any two integers a and b as a Linear Combination (ax + by)—a deep result in number theory known as Bezout’s Identity.
Why This Topic Matters in Mathematics & Competitive Exams:
- Speed & Reliability: Prime factorization becomes nearly impossible when numbers have large prime factors. Euclid’s Algorithm guarantees the exact HCF in a small, predictable number of steps.
- Solving Linear Diophantine Equations: Expressing d = ax + by is the foundational technique for finding integer solutions to equations like 56x + 72y = 8 in IOQM, NTSE, and JEE Foundation problems.
- Modern Cryptography: Variations of this exact algorithm power RSA internet encryption and digital security protocols worldwide.
2Definitions
Definition 1: Euclid’s Division Algorithm
An Algorithm is a series of well-defined steps that gives a procedure for solving a type of problem. Euclid’s Division Algorithm is a step-by-step technique based on Euclid’s Division Lemma (a = bq + r, 0 ≤ r < b) used to compute the Highest Common Factor (HCF) of two given positive integers.
In Simple Language: Keep dividing the larger number by the smaller number, then divide the previous divisor by the remainder, until the remainder becomes 0. The very last divisor that gave a zero remainder is the HCF.
Definition 2: Linear Combination of Two Integers
For any two integers a and b, an expression of the form:
ax + by, where x, y ∈ Z
is called an integer Linear Combination of a and b. By Bezout’s Identity, if d = HCF(a, b), there always exist integers x and y such that d = ax + by.
In Simple Language: If you multiply a by some whole integer x and b by some whole integer y (one positive, one negative) and add them together, you can always hit their exact HCF! For example, HCF(6, 15) = 3, and 3 = 6(-2) + 15(1).
3Important Concepts
3.1 Why Euclid’s Division Algorithm Works (Mathematical Logic)
Suppose a = bq + r. Let d be any common divisor of a and b:
- Since d divides both a and b, d also divides a – bq, which is equal to r. Thus, every common divisor of (a, b) is also a common divisor of (b, r).
- Conversely, any common divisor of b and r must divide bq + r = a.
- Therefore, the set of common divisors of (a, b) is identical to the set of common divisors of (b, r), meaning HCF(a, b) = HCF(b, r).
3.2 Step-by-Step Procedure to Find HCF
To compute HCF(c, d) for two positive integers with c > d:
- Step 1: Divide c by d to write c = dq1 + r1, where 0 ≤ r1 < d.
- Step 2: If r1 = 0, stop! HCF(c, d) = d.
- Step 3: If r1 ≠ 0, divide d by r1 to get d = r1q2 + r2.
- Step 4: Repeat until some remainder rn+1 = 0. The last non-zero remainder rn (which is the divisor in the final step) is the required HCF.
3.3 Back-Substitution Method for Linear Combinations
Once you finish Euclid’s Algorithm and find d = HCF(a, b), follow this reverse ladder to find x and y in d = ax + by:
- Ignore the last equation (the one where remainder is 0).
- Start from the second-last equation and rewrite it so that the HCF (d) is isolated on the Left-Hand Side.
- Move upward one equation at a time: Replace the previous remainder using the equation right above it, and collect like terms (treat the numbers a and b as algebraic variables—do not multiply them out!).
- Stop at the top equation: You will reach d = a(x) + b(y) directly.
3.4 Non-Uniqueness of (x, y) & Finding Infinitely Many Solutions
In Euclid’s Division Lemma, quotient q and remainder r are unique, whereas in Bezout’s Identity (d = ax + by), the integers x and y are not unique—there are infinitely many pairs!
How to Generate New Pairs from One Known Pair (x0, y0):
Add and subtract ab · k (where k ∈ Z):
d = ax0 + by0 = a(x0 + bk) + b(y0 – ak)
Even simpler, dividing by d gives all integer solutions: x = x0 + (b/d)k and y = y0 – (a/d)k.
4Mathematical Formulas and Properties
1. Stepwise Reduction Identity of Euclid’s Algorithm
HCF(a, b) = HCF(b, r1) = HCF(r1, r2) = … = rn
- Symbols: a, b = positive integers (a > b); r1, r2, …, rn = successive non-zero remainders with b > r1 > r2 > … > rn > 0.
- Condition: Terminates in at most b steps because remainders strictly decrease as whole numbers.
2. Bezout’s Linear Combination Theorem
d = HCF(a, b) = ax + by (x, y ∈ Z)
- Symbols: d = HCF of a and b; x, y = integer multipliers.
- Condition: Holds for any integers a and b not both zero.
3. Solvability Criterion for Linear Diophantine Equations
ax + by = c has integer solutions ⇔ HCF(a, b) divides c
- Meaning: An integer c can be formed as ax + by if and only if c is an exact multiple of d = HCF(a, b).
- Corollary (Co-prime Case): Two integers a and b are co-prime (HCF(a, b) = 1) if and only if there exist integers x, y such that ax + by = 1.
4. General Solution Formula for ax + by = d
x = x0 + (b/d)k, y = y0 – (a/d)k (k ∈ Z)
- Symbols: (x0, y0) is any single particular integer solution obtained from Euclid’s Algorithm, d = HCF(a, b), and k is any integer (0, ±1, ±2, …).
5Solved Examples (Basic to Advanced)
Example 1: Computing HCF via Euclid’s Division Algorithm
Basic
Use Euclid’s Division Algorithm to find the HCF of 867 and 255.
Step 1: Since 867 > 255, apply Euclid’s Division Lemma (a = bq + r) to 867 and 255:
867 = 255 × 3 + 102 (since 255 × 3 = 765 and 867 – 765 = 102)
Step 2: Remainder 102 ≠ 0. Apply the lemma to divisor 255 and remainder 102:
255 = 102 × 2 + 51 (since 102 × 2 = 204 and 255 – 204 = 51)
Step 3: Remainder 51 ≠ 0. Apply the lemma to divisor 102 and remainder 51:
102 = 51 × 2 + 0
Step 4: The remainder has become 0, and the divisor at this step is 51.
Final Answer: HCF(867, 255) = 51
Example 2: Expressing HCF as a Linear Combination (3-Step Algorithm)
Intermediate
Find the HCF of 210 and 55 using Euclid’s Division Algorithm, and express it in the form 210x + 55y for integers x and y.
Step 1 (Forward Division Steps):
210 = 55 × 3 + 45 …(Equation 1)
55 = 45 × 1 + 10 …(Equation 2)
45 = 10 × 4 + 5 …(Equation 3)
10 = 5 × 2 + 0 …(Equation 4)
Since the remainder becomes 0 when dividing by 5, HCF(210, 55) = 5.
Step 2 (Start Back-Substitution from Equation 3): Isolate the HCF (5):
5 = 45 – 10 × 4
Step 3 (Substitute remainder 10 from Equation 2): Since 10 = 55 – 45 × 1:
5 = 45 – (55 – 45 × 1) × 4
5 = 45 – 55(4) + 45(4)
5 = 45(5) – 55(4)
Step 4 (Substitute remainder 45 from Equation 1): Since 45 = 210 – 55 × 3:
5 = (210 – 55 × 3) × 5 – 55(4)
5 = 210(5) – 55(15) – 55(4)
5 = 210(5) + 55(-19)
Final Answer: HCF(210, 55) = 5 = 210(5) + 55(-19), where x = 5 and y = -19.
Example 3: Generating Two Different Linear Combinations
Intermediate
If d = HCF(45, 27), find two different pairs of integers (x, y) such that d = 45x + 27y.
Step 1 (Find HCF):
45 = 27 × 1 + 18 …(Equation 1)
27 = 18 × 1 + 9 …(Equation 2)
18 = 9 × 2 + 0 …(Equation 3)
So, d = HCF(45, 27) = 9.
Step 2 (Find First Pair via Back-Substitution):
From Equation (2): 9 = 27 – 18.
Substitute 18 = 45 – 27 from Equation (1):
9 = 27 – (45 – 27) = 45(-1) + 27(2).
Thus, our first pair is (x1, y1) = (-1, 2).
Step 3 (Generate Second Pair): Add and subtract 45 × 27 (or use x = x1 + (27/9)k and y = y1 – (45/9)k with k = 1):
x2 = -1 + 3(1) = 2
y2 = 2 – 5(1) = -3
Verify: 45(2) + 27(-3) = 90 – 81 = 9.
Final Answer: Two valid integer pairs are (-1, 2) and (2, -3).
Example 4: Proving Two Algebraic Expressions Are Co-Prime
Advanced
Prove that for every integer n, the integers 9n + 4 and 2n + 1 are co-prime (i.e., HCF(9n + 4, 2n + 1) = 1).
Method 1 (Using Linear Combination / Bezout’s Criterion):
We want to eliminate n by forming a linear combination (9n + 4)x + (2n + 1)y = 1.
Choose x = -2 and y = 9 to cancel the 18n terms:
(9n + 4)(-2) + (2n + 1)(9) = -18n – 8 + 18n + 9 = 1.
Step 2 (Conclude Divisibility):
Let d = HCF(9n + 4, 2n + 1). Since d divides both 9n + 4 and 2n + 1, d must divide their linear combination -2(9n + 4) + 9(2n + 1) = 1.
The only positive integer that divides 1 is 1 itself, so d = 1.
Final Conclusion: Since HCF(9n + 4, 2n + 1) = 1 for all integers n, the two numbers are always co-prime.
Example 5: Solving a Linear Diophantine Equation (IIT-JEE Foundation)
Advanced
Find all positive integer solutions (x, y) to the equation 17x + 23y = 300.
Step 1 (Find HCF(23, 17) via Euclid’s Algorithm):
23 = 17 × 1 + 6 …(Equation 1)
17 = 6 × 2 + 5 …(Equation 2)
6 = 5 × 1 + 1 …(Equation 3)
5 = 1 × 5 + 0 …(Equation 4)
Thus, HCF(17, 23) = 1. Since 1 divides 300, integer solutions exist.
Step 2 (Express 1 as a linear combination of 17 and 23):
From (3): 1 = 6 – 5.
From (2): 5 = 17 – 6(2) ⇒ 1 = 6 – (17 – 6(2)) = 6(3) – 17.
From (1): 6 = 23 – 17 ⇒ 1 = (23 – 17)(3) – 17 = 17(-4) + 23(3).
Step 3 (Scale up to 300 and write the general solution):
Multiply 17(-4) + 23(3) = 1 by 300:
17(-1200) + 23(900) = 300.
Using x = x0 + 23k and y = y0 – 17k:
x = -1200 + 23k, y = 900 – 17k.
Step 4 (Apply positive integer constraints x > 0 and y > 0):
• -1200 + 23k > 0 ⇒ k > 1200/23 ≈ 52.17 ⇒ k ≥ 53.
• 900 – 17k > 0 ⇒ k < 900/17 ≈ 52.94 ⇒ k ≤ 52.
Since no integer k satisfies both k ≥ 53 and k ≤ 52 simultaneously, there are 0 positive integer solutions!
Final Answer: There are NO positive integer solutions (x > 0, y > 0) to 17x + 23y = 300.
6Real-Life Applications
Linear combinations (ax + by) directly govern measurement problems using unmarked containers, postage stamps, and currency denominations.
Application 1: The Classic Water Jug Measuring Problem
Practical Use
You have an unlimited water supply and two unmarked jugs of capacities 9 liters and 4 liters. Using Euclid’s Division Algorithm and linear combinations, show how you can measure out exact 1 liter of water.
Step 1 (Check feasibility via HCF): Since HCF(9, 4) = 1, it is guaranteed that 1 liter can be expressed as 9x + 4y = 1.
Step 2 (Find the linear combination):
9 = 4 × 2 + 1 ⇒ 1 = 9(1) + 4(-2).
Here x = +1 means “fill the 9L jug once,” and y = -2 means “empty out using the 4L jug twice.”
Practical Action: Fill the 9L jug completely, pour out 4L into the 4L jug and discard it (5L left), then pour out another 4L into the 4L jug (1L remains in the 9L jug).
Application 2: Digital Token & Postage Stamp Combinations
Practical Use
A vending machine only accepts ₹15 and ₹21 tokens and returns change in the same tokens. Can a customer make a net payment of ₹25? What is the smallest positive rupee amount that can be paid?
Step 1 (Compute HCF(21, 15)):
21 = 15 × 1 + 6
15 = 6 × 2 + 3
6 = 3 × 2 + 0 ⇒ HCF(21, 15) = 3.
Step 2 (Apply Linear Combination Rule):
Every transaction 15x + 21y must be a multiple of 3. Since 3 does not divide 25, paying ₹25 is impossible. The smallest positive payable amount is ₹3 = 15(3) + 21(-2) (insert three ₹15 tokens and receive two ₹21 tokens back).
Practical Result: ₹25 cannot be paid; the minimum positive payable amount is ₹3.
7Common Mistakes & How to Avoid Them
Mistake 1: Multiplying Out Numbers During Back-Substitution
When substituting 45 = 210 – 55 × 3 into 5 = 45(5) – 55(4), students often compute 210 × 5 = 1050 and lose track of the coefficients of 210 and 55.
How to Avoid: Treat every divisor and remainder as an algebraic symbol (like A and B). Only multiply the small integer multipliers together—never multiply into the base numbers a and b.
Mistake 2: Sign Errors When Distributing a Negative Multiplier
In expressions like 45 – (55 – 45 × 1) × 4, students frequently forget that -(-45 × 4) becomes +45(4), writing -3(45) instead of +5(45).
How to Avoid: Always put parentheses around every substituted remainder before expanding, and check your arithmetic at the end by plugging your final x and y back into ax + by.
Mistake 3: Assuming (x, y) Must Be Unique
In an MCQ, if a student finds (x, y) = (5, -19) by back-substitution, and the options list (-6, 23), they assume the question has a typo.
How to Avoid: Remember that linear combination multipliers (x, y) are infinitely many! Simply shift using x = x0 + (b/d)k and y = y0 – (a/d)k (for k = -1, 5 – 11 = -6 and -19 + 42 = 23).
Mistake 4: Starting Back-Substitution from the Last Equation
Students sometimes start from 10 = 5 × 2 + 0, which gives 0 = 10 – 5 × 2 instead of isolating the HCF.
How to Avoid: Cross out the final zero-remainder line before starting back-substitution. Always begin from the line directly above it.
8Quick Revision
Chapter Summary Cheat-Sheet
- Core HCF Reduction: If a = bq + r (0 ≤ r < b), then HCF(a, b) = HCF(b, r).
- Algorithm Stopping Rule: Repeat Euclid’s Division Lemma until r = 0. The last non-zero divisor is HCF(a, b).
- Bezout’s Identity: HCF(a, b) = d can always be written as d = ax + by for integers x, y (not unique).
- Smallest Positive Linear Combination: The smallest positive integer of the form ax + by (x, y ∈ Z) is HCF(|a|, |b|).
- Co-prime Test: HCF(a, b) = 1 ⇔ ax + by = 1 has integer solutions.
- All Solutions Formula: From one solution (x0, y0) of ax + by = d, all integer solutions are x = x0 + (b/d)k, y = y0 – (a/d)k (k ∈ Z).
Pages: 1 2 3 4 5 6 7 8 9 10
Leave a Reply