Skip to content

HCF and LCM Basics

Tool topicTool topic: used inside other questions, rarely asked on its own. One short set here; its practice comes inside the topics that use it.

10 lessons · 40 questions · 16 PYQs · ~35 s per question

The idea

The HCF is the largest number dividing all the given numbers (the common primes at their lowest powers); the LCM is the smallest number they all divide (all primes at their highest powers). For two numbers the two multiply to the product. Everything else in the chapter is this idea plus one translation step (fractions, decimals, ratios, powers).

Textbook vs exam method

Exam method

  1. Product rule in one line. HCF 66, LCM 210210, x+y=72x+y=72 ⇒ 1x+1y=721260=235\frac1x+\frac1y=\frac{72}{1260}=\frac2{35}.JIPMAT 2024
  2. Identity in words. "square of the sum minus square of the difference, divided by four" =ab==ab= HCF ×\times LCM. Test with 66 and 44 if unsure.Indore 2022
  3. Fractions. reduce, then HCF =HCF(2,2,8)LCM(3,3,27)=227=\frac{\text{HCF}(2,2,8)}{\text{LCM}(3,3,27)}=\frac2{27}; the LCM-formula value 83\frac83 is the standard wrong option.Rohtak 2019
  4. LCM is k×k\times HCF. h+12h=403h+12h=403 ⇒ h=31h=31, LCM 372372, other =31⋅37293=124=\frac{31\cdot372}{93}=124.JIPMAT 2022
  5. Eliminate by divisibility. the other number must be divisible by the HCF and must divide the LCM.

Worked examples

Example 1Sitter

LCM of 3636 and 4848

Example 2Sitter

HCF 44, LCM 936936, one number 7272

Example 3Easy

Numbers in the ratio 3:4:53:4:5 with HCF 1212

Example 4Easy

LCM of 2.52.5, 0.50.5, 0.1750.175

Example 5Typical

HCF(212−1,218−1)(2^{12}-1, 2^{18}-1)

Traps

  • Product rule misapplied to three numbers; fraction formulas swapped; unreduced fractions; HCF and LCM reported for each other.

Formulas

Product rule (two numbers)

HCF×LCM=a×b\text{HCF}\times\text{LCM}=a\times b

Only for TWO numbers. Given any three of HCF, LCM, a, b, find the fourth (AS, JIPMAT 2022).
HCF of fractions

HCF(ab,cd)=HCF(a,c)LCM(b,d)\text{HCF}\left(\tfrac{a}{b},\tfrac{c}{d}\right)=\frac{\text{HCF}(a,c)}{\text{LCM}(b,d)}

Reduce every fraction to lowest terms first (Rohtak 2019: 4/6 -> 2/3).
LCM of fractions

LCM(ab,cd)=LCM(a,c)HCF(b,d)\text{LCM}\left(\tfrac{a}{b},\tfrac{c}{d}\right)=\frac{\text{LCM}(a,c)}{\text{HCF}(b,d)}

Same rule with HCF and LCM swapped.
Euclid: HCF from the difference

HCF(a,b)=HCF(b, a−b)\text{HCF}(a,b)=\text{HCF}(b,\ a-b)

Any common factor divides the difference, so the HCF is a factor of (a - b); test the factors of the difference on a.
Sum of reciprocals from HCF and LCM

1x+1y=x+yHCF×LCM\frac{1}{x}+\frac{1}{y}=\frac{x+y}{\text{HCF}\times\text{LCM}}

JIPMAT 2024 Q13: (x + y)/(xy) with xy = HCF x LCM.
Indore 2022 identity

(a+b)2−(a−b)24=ab=HCF×LCM\frac{(a+b)^2-(a-b)^2}{4}=ab=\text{HCF}\times\text{LCM}

Expand: the expression is ab, which is HCF x LCM for two numbers.
HCF of two numbers of the form (power of a) minus 1

HCF(am−1, an−1)=agcd⁡(m,n)−1\text{HCF}(a^m-1,\ a^n-1)=a^{\gcd(m,n)}-1

Exponents follow Euclid: gcd of the exponents, same base.
Numbers from HCF and co-prime ratio

a=hp, b=hq, gcd⁡(p,q)=1 ⇒ LCM=hpqa=hp,\ b=hq,\ \gcd(p,q)=1\ \Rightarrow\ \text{LCM}=hpq

If the ratio a:b is in lowest terms, the HCF is the multiplier; LCM = h x (product of the ratio terms) when they are pairwise co-prime.

In the exam

Shortcuts
  • Write numbers as hph p and hqh q with gcd⁡(p,q)=1\gcd(p,q)=1: every HCF/LCM statement becomes a statement about p,qp, q (pq=LCM/hpq=\text{LCM}/h, p+q=sum/hp+q=\text{sum}/h).
  • Difference trick: HCF(2472,1284)(2472,1284) divides 1188=22⋅33⋅111188=2^2\cdot3^3\cdot11; test 1212 on 12841284 — done.
  • Options for 'the other number': it must be a multiple of the HCF and a divisor of the LCM — eliminate first, compute second.
  • LCM of 1..n1..n: product of the highest prime powers ≤n\le n; going from nn to mm only NEW primes and RAISED prime powers add factors.
  • Decimals: scale by the same power of 1010, work with integers, scale back.
~35 s per question at exam speed
When to skip: Never — these are 25–40 s items for Rohtak and JIPMAT and occasional Indore one-liners.

Before this

What the exams ask here

  • HCF/LCM of numbers
  • HCF x LCM = product
  • HCF/LCM of fractions
  • given HCF and LCM find other number
Next sub-topicHCF and LCM Applications

Practise this free. Every mistake is saved and comes back until you fix it.

Start free