HCF and LCM by prime factorisation
Write each number as a product of primes. HCF = product of the smallest powers of common primes; LCM = product of the greatest powers of all primes.
What HCF and LCM mean
The HCF (highest common factor) is the biggest number that divides each given number exactly. The LCM (lowest common multiple) is the smallest number that each given number divides exactly. The HCF is never bigger than the smallest number. The LCM is never smaller than the biggest number. The HCF always divides the LCM.
Method: HCF and LCM by prime factorisation
- 1Write each number as a product of primes, using powers.
- 2List every prime that appears in any of the numbers.
- 3★HCF: take only the primes common to all the numbers, each with its smallest power. Multiply.
- 4★LCM: take every prime, each with its greatest power. Multiply.
- 5For two numbers, check that HCF × LCM equals the product of the numbers.
★ key step
Example 1: HCF and LCM of 84 and 120
Find the HCF and LCM of 84 and 120 by prime factorisation. Verify that HCF × LCM = product of the numbers.
- 84 = 2² × 3 × 7
- 120 = 2³ × 3 × 5
- Common primes: 2 and 3. Smallest powers: 2² and 3¹.
- HCF = 2² × 3 = 12
- All primes with greatest powers: 2³, 3¹, 5¹, 7¹.
- LCM = 2³ × 3 × 5 × 7 = 840
- HCF × LCM = 12 × 840 = 10080
- 84 × 120 = 10080. The two products are equal.
HCF = 12, LCM = 840, and 12 × 840 = 84 × 120 = 10080.
Example 2: three numbers
Find the HCF and LCM of 12, 18 and 30. Does HCF × LCM equal 12 × 18 × 30?
- 12 = 2² × 3, 18 = 2 × 3², 30 = 2 × 3 × 5
- Common primes in all three: 2 and 3, each with smallest power 1.
- HCF = 2 × 3 = 6
- Greatest powers: 2², 3², 5¹.
- LCM = 2² × 3² × 5 = 4 × 9 × 5 = 180
- HCF × LCM = 6 × 180 = 1080
- 12 × 18 × 30 = 6480, which is not 1080.
HCF = 6, LCM = 180. The product rule does not work for these three numbers.
Example 3: using the product rule
The HCF of two numbers is 18 and their product is 12960. Find their LCM.
- Rule for two numbers: HCF × LCM = product of the numbers.
- 18 × LCM = 12960
- LCM = 12960 ÷ 18 = 720
- Check with a real pair: 144 × 90 = 12960, HCF(144, 90) = 18 and LCM(144, 90) = 720.
LCM = 720
A shopkeeper uses the HCF to pack two kinds of sweets in the largest equal boxes with nothing left over. A bus depot uses the LCM to find when two routes leave together again.
1 marks: “Given HCF(26, 169) = 13, find LCM(26, 169).” LCM = (26 × 169) ÷ 13 = 4394 ÷ 13 = 338.
2 marks: “Find the HCF and LCM of 90 and 144 by prime factorisation.” 90 = 2 × 3² × 5 and 144 = 2⁴ × 3². HCF = 2 × 3² = 18. LCM = 2⁴ × 3² × 5 = 720.
3 marks: “Find the HCF and LCM of 24, 36 and 60 by prime factorisation.” 24 = 2³ × 3, 36 = 2² × 3², 60 = 2² × 3 × 5. HCF = 2² × 3 = 12. LCM = 2³ × 3² × 5 = 360.
HCF is small and shared: smallest powers of the common primes. LCM is large and complete: greatest powers of every prime.