Skip to content

HCF and LCM Applications

10 lessons · 52 questions · 23 PYQs · ~50 s per question

The idea

Two questions hide behind every word problem: "what is the largest thing that fits into all of these?" (HCF) and "when do these cycles line up / what is the smallest number all of these divide?" (LCM). Remainders shift the answer by a constant; bounds (four-digit, five-digit) pick a particular multiple; counting pairs or co-primes uses the prime structure of the quotient.

Textbook vs exam method

Exam method

  1. JIPMAT 2024 Q7. LCM(12,21,35)=420(12,21,35)=420, +6+6 → 426426. The option 4343 is HCF-style noise.JIPMAT 2024
  2. JIPMAT 2025 Q30. LCM(8,12,20,28,35)=840(8,12,20,28,35)=840, x=845x=845, digit sum 1717.JIPMAT 2025
  3. JIPMAT 2025 Q18. LCM(48,72,108)=432(48,72,108)=432 s → 08:20:00+7:12=08:27:1208{:}20{:}00+7{:}12=08{:}27{:}12. Convert seconds to min:sec before adding.JIPMAT 2025
  4. Indore 2026 (memory-based). gcd⁡(n,107)=103\gcd(n,10^7)=10^3 ⇒ n=103mn=10^3m, m≤104m\le10^4, gcd⁡(m,104)=1\gcd(m,10^4)=1 ⇒ φ(104)=4000\varphi(10^4)=4000.
  5. Pairs. product 54005400, HCF 3030 ⇒ ab=6ab=6 co-prime ⇒ (1,6),(2,3)(1,6),(2,3) ⇒ 22 pairs. HCF 55, sum 5050 ⇒ co-prime splits of 1010: 1+91+9, 3+73+7 ⇒ 22 pairs.
  6. Greatest n-digit. 99999−99999 mod 72=9993699999-99999\bmod72=99936; +5+5 ⇒ 9994199941 (still five digits).

Worked examples

Example 1Sitter

Least number leaving 11 with 2,3,4,5,62,3,4,5,6 and divisible by 77

Example 2Easy

Greatest number dividing 2525, 6060, 130130 with the same remainder

Example 3Easy

Bells at 7,8,11,127, 8, 11, 12 s in 33 h

Example 4Easy

Floor 462×360462\times360 cm

Example 5Typical

Least perfect square divisible by 3,4,6,8,10,113,4,6,8,10,11

Traps

  • hh vs h2h^2; ordered vs unordered; deficit sign; digit overflow; start counted in bell problems.

Formulas

Same remainder with every divisor

N=LCM(a,b,c)⋅k+rN=\text{LCM}(a,b,c)\cdot k+r

JIPMAT 2024/2025: least such number is LCM + r. Add an extra condition (divisible by p) by scanning k.
Constant-deficit remainders

N=LCM⋅k−d(remainders a−d, b−d, c−d)N=\text{LCM}\cdot k-d\quad(\text{remainders }a-d,\ b-d,\ c-d)

'Remainders 3, 4, 8, 15 with 10, 11, 15, 22' — each is 7 short; N + 7 is a multiple of the LCM.
Greatest divisor leaving the same remainder

greatest divisor, same remainder=HCF(b−a, c−b, c−a)\text{greatest divisor, same remainder}=\text{HCF}(b-a,\ c-b,\ c-a)

Any divisor leaving equal remainders divides every difference.
Greatest divisor leaving given remainders

greatest divisor, remainders ri=HCF(a−r1, b−r2, c−r3)\text{greatest divisor, remainders }r_i=\text{HCF}(a-r_1,\ b-r_2,\ c-r_3)

Subtract each remainder first; the answer must exceed every remainder.
Pairs with given product and HCF

#pairs with product P, HCF h=2 ω(P/h2)−1\#\text{pairs with product }P,\ \text{HCF }h=2^{\,\omega(P/h^2)-1}

omega = number of DISTINCT primes of P/h^2; unordered pairs. Enumerate when in doubt.
Pairs with given HCF and sum

#pairs with HCF h, sum s=12φ(s/h)\#\text{pairs with HCF }h,\ \text{sum }s=\tfrac12\varphi(s/h)

Count co-prime splits of s/h; equals phi(s/h)/2 for s/h > 2.
Euler's phi (co-primes below N)

φ(N)=N∏p∣N(1−1p)\varphi(N)=N\prod_{p\mid N}\left(1-\tfrac1p\right)

Inclusion–exclusion over the primes of N.
Count with a given gcd (Indore 2026)

#{n≤N: gcd⁡(n,N)=d}=φ(N/d)\#\{n\le N:\ \gcd(n,N)=d\}=\varphi(N/d)

Write n = d m; m runs up to N/d and must be co-prime to N/d.
Square tiles on a floor

tiles=Lh⋅Bh,h=HCF(L,B)\text{tiles}=\frac{L}{h}\cdot\frac{B}{h},\quad h=\text{HCF}(L,B)

Largest tile side = HCF of the sides; number of tiles = area ratio.

In the exam

Shortcuts
  • Translate the words: 'greatest number that divides …' → HCF; 'least number divisible by / that when divided by …' → LCM; 'together again' → LCM; 'largest size measuring all' → HCF.
  • Remainder patterns: equal remainders → +r+r; remainders each dd less than the divisor → −d-d; mixed → build from the LCM and scan.
  • n-digit bounds: largest multiple == bound −- (bound mod LCM); then add rr and check the digit count (JIPMAT 2025 Q30: 840+5=845840+5=845, digit sum 1717).
  • Pairs with product PP and HCF hh: divide by h2h^2 FIRST (not by hh); 5400/900=6=2⋅35400/900=6=2\cdot3 → 22 pairs.
  • Perfect-square multiple: take the LCM and pair up every odd exponent.
  • Bells in TT hours: ⌊T⋅3600/LCM⌋\lfloor T\cdot3600/\text{LCM}\rfloor — the start is not counted unless the question says so.
~50 s per question at exam speed
When to skip: Skip only an unusual counting set-up (gcd counts with large N) if the phi structure is not visible in 30 s; the rest are 40–60 s items.

Before this

What the exams ask here

  • least N leaving remainder r with each of a,b,c
  • greatest number dividing a,b,c leaving same remainder
  • bells ring together
  • pairs with given HCF and sum

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

Start free