krit.club logo

The World of Algorithms - Greatest Common Divisor

Grade 9CBSE

Review the key concepts, formulae, and examples before starting your quiz.

πŸ”‘Concepts

β€’

The Greatest Common Divisor (GCD), also known as the Highest Common Factor (HCF), is the largest positive integer that divides two or more integers without leaving a remainder.

β€’

Euclid's Division Lemma states that for any two positive integers aa and bb, there exist unique integers qq (quotient) and rr (remainder) such that a=bq+ra = bq + r, where 0≀r<b0 \le r < b.

β€’

Euclid's Division Algorithm is an efficient method for computing the GCD of two numbers. It works by repeatedly applying Euclid's Division Lemma until the remainder becomes zero.

β€’

The Fundamental Theorem of Arithmetic can also be used to find GCD by finding the product of the smallest power of each common prime factor in the numbers.

β€’

For any two positive integers aa and bb, the relationship between their GCD and Least Common Multiple (LCM) is given by: GCD(a,b)Γ—LCM(a,b)=aΓ—bGCD(a, b) \times LCM(a, b) = a \times b.

πŸ“Formulae

a=bq+r,Β whereΒ 0≀r<ba = bq + r, \text{ where } 0 \le r < b

GCD(a,b)=GCD(b,r)GCD(a, b) = GCD(b, r)

GCD(a,b)Γ—LCM(a,b)=aΓ—bGCD(a, b) \times LCM(a, b) = a \times b

πŸ’‘Examples

Problem 1:

Use Euclid's Division Algorithm to find the GCD of 135135 and 225225.

Solution:

Step 1: Since 225>135225 > 135, we apply the division lemma to a=225a = 225 and b=135b = 135: 225=135Γ—1+90225 = 135 \times 1 + 90 Step 2: Since the remainder 90β‰ 090 \neq 0, we apply the division lemma to the divisor 135135 and the remainder 9090: 135=90Γ—1+45135 = 90 \times 1 + 45 Step 3: Since the remainder 45β‰ 045 \neq 0, we apply the division lemma to 9090 and 4545: 90=45Γ—2+090 = 45 \times 2 + 0 Step 4: The remainder is now 00, so our procedure stops. The divisor at this stage is 4545. Therefore, GCD(135,225)=45GCD(135, 225) = 45.

Explanation:

Euclid's algorithm reduces the problem of finding the GCD of large numbers to finding the GCD of progressively smaller numbers until the remainder is zero.

Problem 2:

Find the GCD of 2424 and 3636 using the Prime Factorization method.

Solution:

Step 1: Write the prime factorization of each number. 24=2Γ—2Γ—2Γ—3=23Γ—3124 = 2 \times 2 \times 2 \times 3 = 2^3 \times 3^1 36=2Γ—2Γ—3Γ—3=22Γ—3236 = 2 \times 2 \times 3 \times 3 = 2^2 \times 3^2 Step 2: Identify the common prime factors and choose the lowest power of each: Common factor 22: lowest power is 222^2 Common factor 33: lowest power is 313^1 Step 3: Multiply these values: GCD=22Γ—31=4Γ—3=12GCD = 2^2 \times 3^1 = 4 \times 3 = 12

Explanation:

The GCD is the product of the lowest powers of all common prime factors.

Problem 3:

Given that GCD(306,657)=9GCD(306, 657) = 9, find the LCM(306,657)LCM(306, 657).

Solution:

We use the property: GCD(a,b)Γ—LCM(a,b)=aΓ—bGCD(a, b) \times LCM(a, b) = a \times b Substituting the given values: 9Γ—LCM(306,657)=306Γ—6579 \times LCM(306, 657) = 306 \times 657 LCM(306,657)=306Γ—6579LCM(306, 657) = \frac{306 \times 657}{9} LCM(306,657)=34Γ—657LCM(306, 657) = 34 \times 657 LCM(306,657)=22338LCM(306, 657) = 22338

Explanation:

This formula allows us to calculate the LCM directly if the GCD and the product of the two numbers are known.