1A

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 byTestExample
$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.

Example 1●

Write $360$ as a product of prime factors in index form.

$360 = 10 \times 36$
360 ends in 0, so 10 is a factor. Any split works; you end up with the same primes.
$= 2 \times 5 \times 6 \times 6 = 2 \times 5 \times 2 \times 3 \times 2 \times 3$
Keep splitting until every piece is prime.
$= 2^3 \times 3^2 \times 5$
Collect equal primes as powers, smallest prime first.

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.

Example 2●●

Find the HCF and LCM of $126$ and $210$.

$126 = 2 \times 3^2 \times 7$ and $210 = 2 \times 3 \times 5 \times 7$
Break each number into primes first.
HCF $= 2 \times 3 \times 7 = 42$
Shared primes are 2, 3 and 7. Use the lower power of each: 3¹, not 3².
LCM $= 2 \times 3^2 \times 5 \times 7 = 630$
Every prime that appears, each at its higher power.

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.
Example 3●●

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?

$96 = 2^5 \times 3$ and $72 = 2^3 \times 3^2$
The piece length must divide into both 96 and 72, and we want it as big as possible. That is the HCF.
HCF $= 2^3 \times 3 = 24$, so each piece is $24$ m.
Shared primes at the lower powers.

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$.

Flashcards
HCF from prime factors
Shared primes, lower power of each.
LCM from prime factors
Every prime that appears, higher power of each.
Divisibility by 3 or 9
Add the digits. If the sum divides by 3 (or 9), so does the number.
Practice
  1. $2^3 \times 3 \times 7 =$

  2. $150 = 2 \times 3 \times 5^k$. Find $k$.

  3. Which number is divisible by $3$?

  4. Which number is divisible by $4$?

  5. Find the HCF of $72$ and $120$.

  6. Find the LCM of $72$ and $120$.

  7. Find the HCF of $2^3 \times 3^2 \times 5$ and $2^2 \times 3^3 \times 7$.

  8. Two lights flash together. One flashes every $18$ seconds and the other every $30$ seconds. After how many seconds do they next flash together?

  9. 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?

  10. Challenge: $120 = 2^3 \times 3 \times 5$. What is the smallest whole number you can multiply $120$ by to get a perfect square?

Formula sheet