Why bother?

You've found HCF and LCM before by long divi­sion and by list­ing mul­ti­ples, and it can be slow. Once a num­ber is writ­ten as a prod­uct of prime pow­ers, though, its HCF and LCM can be read straight off, with­out a sin­gle divi­sion. Let's see the rule, why it works, and a handy iden­tity that gives you one from the other.

Read­ing HCF and LCM off the fac­tori­sa­tions

Write both num­bers in prime-power form, lin­ing up the same primes one under the other.

168=23×3×7,180=22×32×5168 = 2^3 \times 3 \times 7, \qquad 180 = 2^2 \times 3^2 \times 5

  • HCF, take each prime that appears in both, with the smaller expo­nent.
  • LCM, take each prime that appears in either, with the larger expo­nent.

HCF(168,180)=22×3=12\mathrm{HCF}(168, 180) = 2^2 \times 3 = 12
LCM(168,180)=23×32×5×7=2520\mathrm{LCM}(168, 180) = 2^3 \times 3^2 \times 5 \times 7 = 2520

Two overlapping circles of prime factors: 168 holds 2 and 7 alone, 180 holds 3 and 5 alone, and both share 2, 2 and 3. The overlap gives HCF 12; all factors give LCM 2520.
Prime fac­tors of 168 and 180: the over­lap is the HCF

Why the smaller expo­nent for the HCF? A com­mon divi­sor can't use more copies of 22 than the poorer of the two num­bers owns. 180180 has only 222^2, so no com­mon divi­sor can con­tain 232^3.

And why the larger for the LCM? A com­mon mul­ti­ple must con­tain enough copies of 22 to be divis­i­ble by 168168, and that needs three of them.

The iden­tity

For any two pos­i­tive inte­gers aa and bb,

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

Check it on the pair above: 12×2520=3024012 \times 2520 = 30240, and 168×180=30240168 \times 180 = 30240. They agree.

You can see why by look­ing at the expo­nents. For each prime, one num­ber sup­plies the smaller expo­nent and the other sup­plies the larger. The HCF takes one and the LCM takes the other, so between them they use both, which is exactly what mul­ti­ply­ing aa by bb does.

A warn­ing: this iden­tity holds for two num­bers only. For three it fails, and it's easy to see: take 22, 44 and 88. Then HCF=2\mathrm{HCF} = 2 and LCM=8\mathrm{LCM} = 8, so HCF×LCM=16\mathrm{HCF} \times \mathrm{LCM} = 16, while 2×4×8=642 \times 4 \times 8 = 64. Quot­ing the iden­tity for three num­bers is a com­mon mis­take, and an expen­sive one in board exams.

Worked exam­ples

Exam­ple 1. Find the HCF and LCM of 9090 and 144144.

90=2×32×5,144=24×3290 = 2 \times 3^2 \times 5, \qquad 144 = 2^4 \times 3^2

Com­mon primes are 22 and 33. Smaller expo­nents: 212^1 and 323^2.

HCF=2×32=18\mathrm{HCF} = 2 \times 3^2 = 18

All primes, larger expo­nents:

LCM=24×32×5=720\mathrm{LCM} = 2^4 \times 3^2 \times 5 = 720

Check: 18×720=12960=90×14418 \times 720 = 12960 = 90 \times 144. ✓

Exam­ple 2. Given HCF(306,1314)=18\mathrm{HCF}(306, 1314) = 18, find the LCM with­out fac­toris­ing either num­ber.

LCM=306×131418=40208418=22338\displaystyle \mathrm{LCM} = \frac{306 \times 1314}{18} = \frac{402084}{18} = 22338

A lit­tle tip: divide before you mul­ti­ply and the num­bers stay small. Since 306÷18=17306 \div 18 = 17, LCM=17×1314=22338\mathrm{LCM} = 17 \times 1314 = 22338.

Exam­ple 3. Two bells ring at inter­vals of 8484 sec­onds and 126126 sec­onds. They ring together now. After how long do they next ring together?

"Together again" is a sign that the ques­tion wants the LCM.

84=22×3×7,126=2×32×784 = 2^2 \times 3 \times 7, \qquad 126 = 2 \times 3^2 \times 7
LCM=22×32×7=252\mathrm{LCM} = 2^2 \times 3^2 \times 7 = 252

They next ring together after 252252 sec­onds, which is 44 min­utes 1212 sec­onds.

Timeline in seconds: bell A rings at 0, 84, 168 and 252; bell B rings at 0, 126 and 252. The first time after 0 when both ring together is 252 seconds.
The two bells first ring together again at 252 sec­onds

Which one does the ques­tion want?

Word prob­lems rarely say "HCF" or "LCM" out loud, so you have to decide from what is being asked.

  • Cut­ting or shar­ing into equal parts, largest pos­si­ble → HCF. The size must divide every quan­tity.
  • Events repeat­ing together, ear­li­est → LCM. The time must be a mul­ti­ple of every inter­val.

Here's a quick test to set­tle it: if the answer must be no larger than the num­bers given, it's an HCF. If it must be no smaller, it's an LCM.

Prac­tice

  1. Find the HCF and LCM of 6060 and 8888 by prime fac­tori­sa­tion, and ver­ify the iden­tity.
  2. Given HCF(510,92)=2\mathrm{HCF}(510, 92) = 2, find LCM(510,92)\mathrm{LCM}(510, 92) with­out fac­toris­ing either num­ber.
  3. Find the HCF and LCM of 1212, 1818 and 3030.
  4. Show that HCF×LCM≠\mathrm{HCF} \times \mathrm{LCM} \ne prod­uct, for the three num­bers in ques­tion 3.
  5. Rib­bons of length 7777 cm and 121121 cm are to be cut into equal pieces of the great­est pos­si­ble length, with noth­ing left over. Find that length and the num­ber of pieces.

Answers

Show answers
  1. 60=22×3×560 = 2^2 \times 3 \times 5, 88=23×1188 = 2^3 \times 11. HCF=22=4\mathrm{HCF} = 2^2 = 4; LCM=23×3×5×11=1320\mathrm{LCM} = 2^3 \times 3 \times 5 \times 11 = 1320. Check: 4×1320=5280=60×884 \times 1320 = 5280 = 60 \times 88. ✓
  2. LCM=510×922=510×46=23460\displaystyle \mathrm{LCM} = \frac{510 \times 92}{2} = 510 \times 46 = 23460.
  3. 12=22×312 = 2^2 \times 3, 18=2×3218 = 2 \times 3^2, 30=2×3×530 = 2 \times 3 \times 5. HCF=2×3=6\mathrm{HCF} = 2 \times 3 = 6; LCM=22×32×5=180\mathrm{LCM} = 2^2 \times 3^2 \times 5 = 180.
  4. HCF×LCM=6×180=1080\mathrm{HCF} \times \mathrm{LCM} = 6 \times 180 = 1080, while 12×18×30=648012 \times 18 \times 30 = 6480. They dif­fer, so the two-num­ber iden­tity does not extend to three.
  5. 77=7×1177 = 7 \times 11 and 121=112121 = 11^2, so HCF=11\mathrm{HCF} = 11. The great­est pos­si­ble length is 1111 cm, giv­ing 7+11=187 + 11 = 18 pieces.