Prime factorisation, HCF and LCM
Write a number as a product of primes with a factor tree, then use it to find the highest common factor and lowest common multiple.
Also known as: prime factorization, prime factor decomposition, highest common factor, lowest common multiple, GCF and LCM, factor trees.
Key ideas
- A prime number has exactly two factors: 1 and itself. 1 is not prime, and 2 is the only even prime.
- Every whole number greater than 1 can be written as a product of primes in exactly one way (apart from order): .
- HCF (highest common factor): multiply the prime factors the numbers share, using the lower power of each.
- LCM (lowest common multiple): multiply every prime factor that appears, using the higher power of each.
Prime numbers and factor trees
The primes start
To write a number as a product of prime factors, split it into any two factors, and keep splitting until every branch ends in a prime. For 60:
- and
- So .
You could start with instead and you'd reach the same primes: the prime factorisation of a number is unique. Write the primes in order, using powers for repeats.
HCF and LCM from prime factors
Write both numbers as products of primes, then compare the powers of each prime.
For and :
| Prime | Power in 36 | Power in 60 | HCF uses the lower | LCM uses the higher |
|---|---|---|---|---|
| 2 | ||||
| 3 | ||||
| 5 | none | none |
So and . A quick check: for two numbers, equals the product of the numbers, and .
Some students prefer a Venn diagram: shared primes go in the overlap. The HCF is the product of the overlap; the LCM is the product of everything in the diagram.
When to use HCF or LCM
- HCF answers "what's the biggest equal group or size?" Questions about splitting things into identical groups with nothing left over, or the largest square tile that fits exactly.
- LCM answers "when do things line up again?" Questions about buses, lights or events that repeat at different intervals.
In the US, the HCF is often called the GCF (greatest common factor).
Worked examples
Example 1 · A factor tree
Write 84 as a product of its prime factors.
- Step 1., and , and .
- Step 2.So .
Answer:
Example 2 · HCF and LCM
Find the HCF and LCM of 36 and 60.
- Step 1. and .
- Step 2.HCF: shared primes with the lower power, .
- Step 3.LCM: every prime with the higher power, .
Answer: ,
Example 3 · A word problem
One bus leaves the station every 12 minutes and another every 18 minutes. Both leave together at 9:00. When do they next leave together?
- Step 1."Next together" means a common multiple, so find the LCM of 12 and 18.
- Step 2. and , so .
- Step 3.36 minutes after 9:00 is 9:36.
Answer: 9:36
Common mistakes
- Counting 1 as a prime number.
- Stopping a factor tree too early, e.g. writing (15 is not prime).
- Mixing up HCF and LCM: the HCF can't be bigger than the smaller number, and the LCM can't be smaller than the larger number.
- Using the higher powers for the HCF, e.g. giving as the HCF of 36 and 60.
Try it yourself
Original practice questions. Your answer is checked instantly.
Which of these numbers is prime?
What is 12 written as a product of its prime factors?