Real Numbers: HCF and LCM

Euclid's division algorithm

To find the HCF of two positive integers aa and bb (with a>ba > b), repeatedly apply a=bq+ra = bq + r where 0≤r<b0 \le r < b, replacing aa and bb with bb and rr each time, until the remainder is 0. The divisor at that final step is the HCF.

Worked example: HCF by Euclid's algorithm

Find the HCF of 867 and 255.

Solution: Since 867>255867 > 255:

867=255×3+102867 = 255 \times 3 + 102255=102×2+51255 = 102 \times 2 + 51102=51×2+0102 = 51 \times 2 + 0

As the remainder is now 0, the HCF of 867 and 255 is 51.

Worked example: a proof using the division lemma

Show that any positive odd integer is of the form 6q+16q+1, 6q+36q+3, or 6q+56q+5, for some integer qq.

Solution: Euclid's division lemma says any positive integer aa can be written as a=6q+ra = 6q+r for some qq, where 0≤r<60 \le r < 6, so aa is one of 6q,6q+1,6q+2,6q+3,6q+4,6q+56q, 6q+1, 6q+2, 6q+3, 6q+4, 6q+5.

Of these six forms, 6q6q, 6q+26q+2, and 6q+46q+4 are all even, since every term is a multiple of 2. That leaves exactly 6q+16q+1, 6q+36q+3, and 6q+56q+5 as the only forms an odd integer can take.

HCF and LCM by prime factorization

Break both numbers into prime factors. The HCF is the product of the smallest power of each common prime factor; the LCM is the product of the greatest power of every prime factor that appears in either number. For any two positive integers, these always satisfy:

HCF(a,b)×LCM(a,b)=a×b\text{HCF}(a, b) \times \text{LCM}(a, b) = a \times b

Worked example: HCF, LCM, and verification

Find the HCF and LCM of 336 and 54, and verify the relationship above.

Solution: Prime factorizing both numbers:

336=24×3×7,54=2×33336 = 2^4 \times 3 \times 7, \qquad 54 = 2 \times 3^3

The HCF takes the lowest power of each shared prime (212^1 and 313^1), and the LCM takes the highest power of every prime seen:

HCF(336,54)=2×3=6,LCM(336,54)=24×33×7=3024\text{HCF}(336, 54) = 2 \times 3 = 6, \qquad \text{LCM}(336, 54) = 2^4 \times 3^3 \times 7 = 3024

Verification: HCF×LCM=6×3024=18144\text{HCF} \times \text{LCM} = 6 \times 3024 = 18144, and 336×54=18144336 \times 54 = 18144 too, so the relationship holds.

Continue learning

Real Numbers and Polynomials are back-to-back foundational chapters in the Class 10 syllabus, both built on breaking expressions down into simpler factors.