Prime factorisation, HCF and LCM
Writing numbers as products of prime factors, and using prime factorisation to find the highest common factor and lowest common multiple of large numbers.
Every whole number bigger than $1$ is either prime or can be built by multiplying primes together. That makes primes the "atoms" of the number system. Once a number is broken into its primes, finding common factors and common multiples becomes a matter of reading them off.
Divisibility tests
Before you can split a number into primes, you need to know what divides into it. These tests let you check without doing the division.
| Divisible by | Test | Example |
|---|---|---|
| $2$ | Last digit is even | $736$ |
| $3$ | Digit sum is divisible by $3$ | $471$: $4 + 7 + 1 = 12$ |
| $4$ | Last two digits form a multiple of $4$ | $9\,324$: $24 = 4 \times 6$ |
| $5$ | Last digit is $0$ or $5$ | $2\,085$ |
| $6$ | Passes the tests for both $2$ and $3$ | $534$: even, and $5 + 3 + 4 = 12$ |
| $8$ | Last three digits form a multiple of $8$ | $7\,136$: $136 = 8 \times 17$ |
| $9$ | Digit sum is divisible by $9$ | $6\,381$: $6 + 3 + 8 + 1 = 18$ |
| $10$ | Last digit is $0$ | $4\,970$ |
There is no quick test for $7$. Just divide.
Prime factorisation
A prime has exactly two factors: $1$ and itself. The first few are $2, 3, 5, 7, 11, 13, 17, 19, 23$. The number $1$ is not prime, because it has only one factor.
To find the prime factors, keep splitting the number into two factors (a factor tree) until every branch ends in a prime. Then write the primes in order, using index notation for repeats.
Write $360$ as a product of prime factors in index form.
HCF and LCM from primes
The highest common factor (HCF) is the biggest number that divides into both. The lowest common multiple (LCM) is the smallest number both divide into. For small numbers you can list factors or multiples. For bigger numbers, primes are faster.
Find the HCF and LCM of $126$ and $210$.
HCF or LCM in a problem?
Ask yourself what the question wants:
- Splitting things into equal groups with nothing left over, as large as possible: HCF.
- Waiting for things to line up again (buses, flashing lights, repeating patterns): LCM.
A rope of $96$ m and a rope of $72$ m are cut into pieces that are all the same length, with nothing wasted. What is the longest each piece can be?
Your turn
Find the HCF and LCM of $84$ and $120$.
Show the working
$84 = 2^2 \times 3 \times 7$ and $120 = 2^3 \times 3 \times 5$. HCF: shared primes $2$ and $3$ at lower powers, $2^2 \times 3 = 12$. LCM: $2^3 \times 3 \times 5 \times 7 = 840$. Check: $12 \times 840 = 10\,080 = 84 \times 120$.
$2^3 \times 3 \times 7 =$
$2^3 = 8$, and $8 \times 3 \times 7 = 24 \times 7 = 168$.
$150 = 2 \times 3 \times 5^k$. Find $k$.
$150 = 2 \times 75 = 2 \times 3 \times 25 = 2 \times 3 \times 5^2$, so $k = 2$.
Which number is divisible by $3$?
Digit sums: $2 + 3 + 5 + 4 = 14$, $5 + 0 + 1 + 3 = 9$, $7 + 2 + 0 + 1 = 10$, $8 + 3 + 3 + 0 = 14$. Only $9$ is a multiple of $3$, so $5\,013$.
Which number is divisible by $4$?
Look at the last two digits: $26$, $18$ and $34$ are not multiples of $4$, but $16 = 4 \times 4$ is. So $5\,716$.
Find the HCF of $72$ and $120$.
$72 = 2^3 \times 3^2$ and $120 = 2^3 \times 3 \times 5$. Shared primes at the lower powers: $2^3 \times 3 = 24$.
Find the LCM of $72$ and $120$.
Every prime at its higher power: $2^3 \times 3^2 \times 5 = 8 \times 9 \times 5 = 360$.
Find the HCF of $2^3 \times 3^2 \times 5$ and $2^2 \times 3^3 \times 7$.
The shared primes are $2$ and $3$. Lower powers: $2^2 \times 3^2 = 4 \times 9 = 36$.
Two lights flash together. One flashes every $18$ seconds and the other every $30$ seconds. After how many seconds do they next flash together?
We need the LCM. $18 = 2 \times 3^2$ and $30 = 2 \times 3 \times 5$, so the LCM is $2 \times 3^2 \times 5 = 90$ seconds.
Challenge: $84$ lollies and $126$ chocolates are shared into identical gift bags with nothing left over. What is the greatest number of bags that can be made?
The number of bags must divide both $84$ and $126$, and be as large as possible: the HCF. $84 = 2^2 \times 3 \times 7$ and $126 = 2 \times 3^2 \times 7$, so HCF $= 2 \times 3 \times 7 = 42$ bags (each with $2$ lollies and $3$ chocolates).
Challenge: $120 = 2^3 \times 3 \times 5$. What is the smallest whole number you can multiply $120$ by to get a perfect square?
In a perfect square every prime has an even power. $2^3$ needs one more $2$, and $3^1$ and $5^1$ each need one more. Multiply by $2 \times 3 \times 5 = 30$: $120 \times 30 = 3600 = 60^2$.
Coaching Centre