Maths · Ch 1 · Topic 3 of 6HCF and LCM
Topic 3 of 6

HCF and LCM by prime factorisation

About 55 minutes · 3 things to learn
By the end you can…
  • Find the HCF and LCM of two or three numbers from their prime factorisations.
  • Use HCF × LCM = product of two numbers, and know that it fails for three numbers.
  • Solve problems with unknown exponents or missing values (e.g. HCF given, find the LCM; find k).

Listing factors works for 12 and 18. It is hopeless for 1 050 and 1 386 — you would be writing lists for ten minutes. With prime factorisation, you can find the highest common factor and the lowest common multiple of those two numbers in about a minute, and be sure you are right. The trick is a small table.

What HCF and LCM mean

  • The HCF (highest common factor) of two or more numbers is the largest number that divides all of them exactly. HCF(12, 18) = 6.
  • The LCM (lowest common multiple) is the smallest positive number that all of them divide into exactly. LCM(12, 18) = 36.

So the HCF is never bigger than the smallest number, and the LCM is never smaller than the largest number. Keep this as a quick sense-check.

Reading HCF and LCM from the factorisations

Factorise each number, then put the powers of each prime in a table — one column per prime, one row per number:

22 33 77 1111
84=22×3×784 = 2^2 \times 3 \times 7 222^2 313^1 717^1 —
198=2×32×11198 = 2 \times 3^2 \times 11 212^1 323^2 — 11111^1
HCF: smallest power of each common prime 212^1 313^1 — —
LCM: largest power of every prime 222^2 323^2 717^1 11111^1

So HCF(84,198)=2×3=6\text{HCF}(84, 198) = 2 \times 3 = 6 and LCM(84,198)=22×32×7×11=2772\text{LCM}(84, 198) = 2^2 \times 3^2 \times 7 \times 11 = 2772.

Why the rules work

A factor of 84 can contain at most two 2s; a factor of 198 can contain at most one 2. A number that divides both can therefore contain only one 2 — the smaller power. A prime that is missing from one of the numbers (7 or 11 here) cannot appear in a common factor at all.

A multiple of 84 must contain at least 222^2, and a multiple of 198 must contain at least 323^2 and an 11. A common multiple needs all of these at once, so it must take the larger power of every prime. The lowest common multiple takes exactly those and nothing more.

Three numbers: the same table

For three numbers, add a third row. The HCF uses only primes found in all three rows; the LCM uses every prime in any row, at its highest power. Worked example 3 shows the layout.

HCF × LCM = product — for two numbers only

Multiply the HCF and LCM of 84 and 198: 6×2772=16 6326 \times 2772 = 16\,632, and 84×198=16 63284 \times 198 = 16\,632. This always happens for two numbers:

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

Why? For each prime, one number has the smaller power and the other has the larger. The HCF takes the smaller, the LCM takes the larger, so between them they use each power exactly once — just like a×ba \times b. This gives a quick way to find the LCM when the HCF is known:

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

For three numbers it is not true in general. Take 4, 6 and 10: HCF = 2 and LCM = 60, so HCF × LCM = 120, but 4×6×10=2404 \times 6 \times 10 = 240. With three numbers, the middle power of a prime is used by neither the HCF nor the LCM. So the two sides match only in the special case where no two of the numbers share a prime (for example 8, 9 and 25: 1×1800=18001 \times 1800 = 1800). You cannot rely on being in that special case, so never use the product rule to find an HCF or LCM of three numbers. Use the table.

Three more facts worth knowing

  • The HCF of two numbers always divides their LCM. (So numbers with HCF 12 and LCM 150 cannot exist — 12 does not divide 150.)
  • If two numbers have no common prime, their HCF is 1. They are called co-prime, and their LCM is simply their product.
  • If a power is unknown, compare the two sides prime by prime: for an LCM, the given power of each prime must equal the larger of the two powers; for an HCF, the smaller.

Setting out your answer

In the exam, write each factorisation on its own line, with the same primes one under the other, so the smallest and largest powers are easy to see. Then write two clear lines: "HCF = … = 18" and "LCM = … = 1584", each showing the powers you chose. If the question says verify, finish with both products worked out in full — "18×1584=28 51218 \times 1584 = 28\,512 and 144×198=28 512144 \times 198 = 28\,512" — and the word "verified". Marking schemes usually give marks for the factorisations and for each correct result (in a 2-mark question, typically 1 mark for the factorisations and ½ for each result), so a neat layout protects marks even if one multiplication slips.

Visuals

Prime-power tables for HCF and LCM Prime-power tables for HCF and LCM. Key: HCF uses the smallest power of each COMMON prime, marked ▼; LCM uses the largest power of EVERY prime, marked ▲; — means the prime is missing. Two numbers: 144 = 2⁴ × 3² has 2⁴ ▲, 3² ▼▲, —; 198 = 2 × 3² × 11 has 2¹ ▼, 3² ▼▲, 11¹ ▲. HCF row 2¹, 3², —; LCM row 2⁴, 3², 11¹. HCF = 2 × 3² = 18; LCM = 2⁴ × 3² × 11 = 1584. Three numbers: 48 = 2⁴ × 3 has 2⁴ ▲, 3¹ ▼, —; 60 = 2² × 3 × 5 has 2², 3¹ ▼, 5¹ ▲; 90 = 2 × 3² × 5 has 2¹ ▼, 3² ▲, 5¹ ▲. HCF row 2¹, 3¹, — (5 is missing from 48); LCM row 2⁴, 3², 5¹. HCF = 2 × 3 = 6; LCM = 2⁴ × 3² × 5 = 720. HCF: smallest power of each COMMON prime LCM: largest power of EVERY prime — = prime missing Two numbers 2 3 11 prime 144 = 24 × 32 24 32 — 198 = 2 × 32 × 11 21 32 111 HCF 21 32 — LCM 24 32 111 HCF = 2 × 32 = 18 LCM = 24 × 32 × 11 = 1584 Three numbers 2 3 5 prime 48 = 24 × 3 24 31 — 60 = 22 × 3 × 5 22 31 51 90 = 2 × 32 × 5 21 32 51 HCF 21 31 — LCM 24 32 51 HCF = 2 × 3 = 6 LCM = 24 × 32 × 5 = 720 HCF has — under 5: 5 is missing from 48
Prime-power table for HCF and LCM (two and three numbers)The single layout for HCF and LCM, with the min/max choice made visible.Draw in exam
Venn diagram of prime factors of 144 and 198 Venn diagram of prime factors. Two overlapping circles, 144 on the left and 198 on the right, inside a dashed frame labelled whole picture = LCM. Tokens in the 144-only part: 2, 2, 2. Tokens in the overlap: 2, 3, 3 — common part = HCF. Token in the 198-only part: 11. Common part: 2 × 3 × 3 = 18, HCF = 18. Everything in the picture: 2 × 2 × 2 × 2 × 3 × 3 × 11 = 1584, LCM = 1584. HCF × LCM uses every token of both numbers exactly once, so HCF × LCM = 144 × 198 (for two numbers): 18 × 1584 = 144 × 198 = 28 512. whole picture = LCM 144 198 2 2 2 2 3 3 11 common part = HCF common part: 2 × 3 × 3 = 18 HCF = 18 everything in the picture: 2 × 2 × 2 × 2 × 3 × 3 × 11 = 1584 LCM = 1584 HCF × LCM uses every token of both numbers exactly once, so HCF × LCM = 144 × 198 (for two numbers): 18 × 1584 = 144 × 198 = 28 512
Venn diagram of prime factors (HCF = overlap, LCM = whole)A second way to see the rules — the common part is the HCF, the whole picture is the LCM — and why HCF × LCM uses every factor of both numbers exactly once.
HCF–LCM explorer HCF–LCM explorer, shown for 144 and 198. Factor trees, splitting off the smallest prime each time: 144 → 2 and 72 → 2 and 36 → 2 and 18 → 2 and 9 → 3 and 3; 198 → 2 and 99 → 3 and 33 → 3 and 11. 144 = 2⁴ × 3², 198 = 2 × 3² × 11. Prime-power table with HCF ▼ and LCM ▲ marks: HCF = 2 × 3² = 18, LCM = 2⁴ × 3² × 11 = 1584. Product check: HCF × LCM = 18 × 1584 = 28 512 and 144 × 198 = 28 512, equal. With the interactive version you can type your own numbers, add a third number and switch between tree and ladder. HCF–LCM explorer start: 144 and 198 First number 144 Second number 198 144 2 72 2 36 2 18 2 9 3 3 198 2 99 3 33 3 11 144 = 24 × 32 198 = 2 × 32 × 11 2 3 11 prime 144 = 24 × 32 24 32 — 198 = 2 × 32 × 11 21 32 111 HCF 21 32 — LCM 24 32 111 HCF = 2 × 32 = 18 LCM = 24 × 32 × 11 = 1584 HCF × LCM = 18 × 1584 = 28 512 144 × 198 = 28 512 equal
HCF–LCM explorer (interactive)Try their own numbers and see the min/max rules and the product rule (and its failure for three numbers) at work.

Worked examples

Worked example 1

HCF and LCM of two numbers

Question. Find the HCF and LCM of 144 and 198 by prime factorisation, and verify that HCF × LCM = product of the numbers.

Given: 144 and 198. Asked: HCF, LCM, and the check.

Concept used: the two rules (smallest power of common primes; largest power of every prime). Why it applies: both numbers are easy to factorise.

  1. 1

    Factorise 144 (144=16×9144 = 16 \times 9).

    144=24×32144 = 2^4 \times 3^2
  2. 2

    Factorise 198 (198=2×99=2×9×11198 = 2 \times 99 = 2 \times 9 \times 11).

    198=2×32×11198 = 2 \times 3^2 \times 11
  3. 3

    Common primes: 2 and 3. Smallest powers: 212^1 and 323^2.

    HCF=2×32=18\text{HCF} = 2 \times 3^2 = 18
  4. 4

    All primes: 2, 3, 11. Largest powers: 242^4, 323^2, 11111^1.

    LCM=24×32×11=16×99=1584\text{LCM} = 2^4 \times 3^2 \times 11 = 16 \times 99 = 1584
  5. 5

    Product of the numbers.

    144×198=28 512144 \times 198 = 28\,512
  6. 6

    Product of HCF and LCM.

    18×1584=28 51218 \times 1584 = 28\,512
  7. Check: the two products are equal ✔. Also HCF 18 ≤ 144 and LCM 1584 ≥ 198 ✔.

  8. Answer HCF=18,LCM=1584\text{HCF} = 18, \quad \text{LCM} = 1584; HCF × LCM = 28 512 = 144 × 198 ✔

    Common trap: Leaving 11 out of the LCM because "it is not common". Common primes are for the HCF; the LCM takes every prime.

Worked example 2

Bigger numbers, same table

Question. Find the HCF and LCM of 1 050 and 1 386.

Given: 1 050 and 1 386. Asked: HCF and LCM.

Concept used: prime-power table. Why it applies: listing factors would take far too long.

  1. 1

    Factorise 1 050: 1050=2×525=2×3×175=2×3×52×71050 = 2 \times 525 = 2 \times 3 \times 175 = 2 \times 3 \times 5^2 \times 7.

    1050=2×3×52×71050 = 2 \times 3 \times 5^2 \times 7
  2. 2

    Factorise 1 386: 1386=2×693=2×32×77=2×32×7×111386 = 2 \times 693 = 2 \times 3^2 \times 77 = 2 \times 3^2 \times 7 \times 11.

    1386=2×32×7×111386 = 2 \times 3^2 \times 7 \times 11
  3. 3

    Common primes: 2, 3, 7. Smallest powers: 212^1, 313^1, 717^1.

    HCF=2×3×7=42\text{HCF} = 2 \times 3 \times 7 = 42
  4. 4

    All primes: 2, 3, 5, 7, 11. Largest powers: 212^1, 323^2, 525^2, 717^1, 11111^1.

    LCM=2×32×52×7×11\text{LCM} = 2 \times 3^2 \times 5^2 \times 7 \times 11
  5. 5

    Multiply: 2×9=182 \times 9 = 18, 18×25=45018 \times 25 = 450, 450×7=3150450 \times 7 = 3150, 3150×11=34 6503150 \times 11 = 34\,650.

    LCM=34 650\text{LCM} = 34\,650
  6. Check: 42×34 650=1 455 30042 \times 34\,650 = 1\,455\,300 and 1050×1386=1 455 3001050 \times 1386 = 1\,455\,300 ✔.

  7. Answer HCF=42,LCM=34 650\text{HCF} = 42, \quad \text{LCM} = 34\,650

    Common trap: Taking 323^2 for the HCF because "3² is in one of them". For the HCF use the smaller power: 313^1.

Worked example 3

Three numbers

Question. Find the HCF and LCM of 48, 60 and 90.

Given: three numbers. Asked: HCF and LCM.

Concept used: the same table with three rows. Why it applies: the rules do not change; "common" now means common to all three.

  1. 1

    Factorise each number.

    48=24×3,60=22×3×5,90=2×32×548 = 2^4 \times 3, \qquad 60 = 2^2 \times 3 \times 5, \qquad 90 = 2 \times 3^2 \times 5
  2. 2

    Primes in all three: 2 and 3 (5 is missing from 48). Smallest powers: 212^1, 313^1.

    HCF=2×3=6\text{HCF} = 2 \times 3 = 6
  3. 3

    Every prime: 2, 3, 5. Largest powers: 242^4 (from 48), 323^2 (from 90), 515^1.

    LCM=24×32×5\text{LCM} = 2^4 \times 3^2 \times 5
  4. 4

    Multiply: 16×9=14416 \times 9 = 144, 144×5=720144 \times 5 = 720.

    LCM=720\text{LCM} = 720
  5. Check: 6 divides 48, 60 and 90 ✔. 720÷48=15720 \div 48 = 15, 720÷60=12720 \div 60 = 12, 720÷90=8720 \div 90 = 8 — all exact ✔.

  6. Answer HCF=6,LCM=720\text{HCF} = 6, \quad \text{LCM} = 720

    Common trap: Putting 5 in the HCF because 60 and 90 share it. A prime must be in all three numbers to enter the HCF.

Worked example 4

Does HCF × LCM = product for three numbers?

Question. Riya claims that HCF(8,12,20)×LCM(8,12,20)=8×12×20\text{HCF}(8, 12, 20) \times \text{LCM}(8, 12, 20) = 8 \times 12 \times 20. Test her claim.

Given: 8, 12, 20. Asked: is the claim true?

Concept used: find HCF and LCM by the table, then compare. Why it applies: a single counter-example is enough to show a claim is false.

  1. 1

    Factorise.

    8=23,12=22×3,20=22×58 = 2^3, \qquad 12 = 2^2 \times 3, \qquad 20 = 2^2 \times 5
  2. 2

    Only 2 is in all three; smallest power 222^2.

    HCF=22=4\text{HCF} = 2^2 = 4
  3. 3

    Largest powers: 232^3, 313^1, 515^1.

    LCM=23×3×5=120\text{LCM} = 2^3 \times 3 \times 5 = 120
  4. 4

    Left side.

    HCF×LCM=4×120=480\text{HCF} \times \text{LCM} = 4 \times 120 = 480
  5. 5

    Right side.

    8×12×20=19208 \times 12 \times 20 = 1920
  6. 6

    Compare: 480≠1920480 \neq 1920.

  7. Check: look at the 2s. The numbers contain 232^3, 222^2, 222^2 — seven 2s in the product. HCF and LCM use only 222^2 and 232^3 — five 2s. One power is "lost" ✔.

  8. Answer Riya is wrong: 4×120=4804 \times 120 = 480, but 8×12×20=19208 \times 12 \times 20 = 1920. HCF × LCM = product works only for two numbers.

    Common trap: Finding an LCM of three numbers by 8×12×20HCF\dfrac{8 \times 12 \times 20}{\text{HCF}}, which gives 19204=480\dfrac{1920}{4} = 480 — four times too big.

Worked example 5

HCF given, find the LCM

Question. Given that HCF(391, 527) = 17, find LCM(391, 527).

Given: the two numbers and their HCF. Asked: the LCM.

Concept used: LCM(a,b)=a×bHCF(a,b)\text{LCM}(a, b) = \dfrac{a \times b}{\text{HCF}(a, b)}. Why it applies: there are exactly two numbers.

  1. 1

    Write the rule.

    LCM=391×52717\text{LCM} = \dfrac{391 \times 527}{17}
  2. 2

    Divide first to keep the numbers small: 391÷17=23391 \div 17 = 23.

    LCM=23×527\text{LCM} = 23 \times 527
  3. 3

    Multiply: 23×527=23×500+23×27=11 500+62123 \times 527 = 23 \times 500 + 23 \times 27 = 11\,500 + 621.

    LCM=12 121\text{LCM} = 12\,121
  4. Check: 391=17×23391 = 17 \times 23 and 527=17×31527 = 17 \times 31, so the LCM is 17×23×31=12 12117 \times 23 \times 31 = 12\,121 ✔.

  5. Answer LCM(391,527)=12 121\text{LCM}(391, 527) = 12\,121

Worked example 6

Unknown exponent; find k

Question. (a) The LCM of 23×3m×72^3 \times 3^m \times 7 and 22×34×52^2 \times 3^4 \times 5 is 23×35×5×72^3 \times 3^5 \times 5 \times 7. Find m. (b) HCF(165, 210) = 15 and LCM(165, 210) = 15×k15 \times k. Find k.

Given: (a) two factorisations and their LCM; (b) two numbers, their HCF, and the LCM in terms of k. Asked: m and k.

Concept used: (a) the LCM takes the larger power of each prime; (b) HCF × LCM = product. Why it applies: (a) we can compare the powers of 3; (b) there are two numbers.

  1. 1

    (a)

    The LCM's power of 3 is the larger of 3m3^m and 343^4.

    larger of m and 4=5\text{larger of } m \text{ and } 4 = 5
  2. 2

    4 is not 5, so the larger one must be m.

    m=5m = 5
  3. 3

    (b)

    Use HCF × LCM = product.

    15×15k=165×21015 \times 15k = 165 \times 210
  4. 4

    Simplify the left side.

    225k=34 650225k = 34\,650
  5. 5

    Divide both sides by 225.

    k=34 650225=154k = \dfrac{34\,650}{225} = 154
  6. Check: (a) larger of 5 and 4 is 5 ✔. (b) 165=3×5×11165 = 3 \times 5 \times 11, 210=2×3×5×7210 = 2 \times 3 \times 5 \times 7, LCM =2×3×5×7×11=2310=15×154= 2 \times 3 \times 5 \times 7 \times 11 = 2310 = 15 \times 154 ✔.

  7. Answer (a) m=5m = 5 (b) k=154k = 154

    Common trap: In (b), writing 15×k=165×21015 \times k = 165 \times 210 and getting k=2310k = 2310 — that is the LCM itself. The LCM is 15k15k, so divide by 15 once more.

6 examples · they get harder as you go

Quick check

Answer without scrolling up
Quick check · 1 of 3MCQ1 mark

The HCF of 23×32×52^3 \times 3^2 \times 5 and 22×33×72^2 \times 3^3 \times 7 is:

Quick check · 2 of 3Very short answer1 mark

The HCF of two numbers is 9 and their product is 4 374. Find their LCM.

Quick check · 3 of 3True/False with justification2 marks

True or false? Justify. "HCF(4,6,9)×LCM(4,6,9)=4×6×9\text{HCF}(4, 6, 9) \times \text{LCM}(4, 6, 9) = 4 \times 6 \times 9."

Key points

  • Factorise, then use the table: HCF = smallest power of each common prime; LCM = largest power of every prime.
  • The same table works for three numbers; "common" means common to all of them.
  • For two numbers only: HCF(a,b)×LCM(a,b)=a×b\text{HCF}(a, b) \times \text{LCM}(a, b) = a \times b, so LCM=a×bHCF\text{LCM} = \dfrac{a \times b}{\text{HCF}}.
  • For three numbers HCF × LCM is not the product (e.g. 4, 6, 10: 2×60≠2402 \times 60 \neq 240).
  • The HCF always divides the LCM; co-prime numbers have HCF 1 and LCM = product.
My notesComing soon