Emzini weCodeUmhlahlandlelaMathematics 3.5 · Factors, Primes and Remainders NoticesAll books

Chapter 3/3.5Foundationabout 9 min

Highest common factor and lowest common multiple

Try this first

Two kombi routes leave the Bulawayo City Hall rank together at 6:00 in the morning. A kombi on Route A leaves every 12 minutes. A kombi on Route B leaves every 18 minutes. When is the next time that two leave together?

Route A leaves at 12, 24, 36, 48, ... minutes past six. Route B leaves at 18, 36, 54, ... minutes past six. The first time on both lists is 36, so they next leave together at 6:36.

Departures in the first 72 minutes after 6:00Route A leaves every 12 minutes, Route B every 18 minutes, both first at 6:00.1AT THE CITY HALL RANK, BULAWAYO2MINUTES AFTER 6:006:367:120122436486072Route Aevery 12 min018365472Route Bevery 18 minBoth routes leave together at 36 and again at 72:the common multiples of 12 and 18.CITY HALLkombi rankRoute Aevery 12 minRoute Bevery 18 min
Figure 3.4 Common multiples of 12 and 18 on a timeline.

You have just found a lowest common multiple.

Definition

lowest common multiple The lowest common multiple (LCM) of two or more numbers is the smallest number that is a multiple of all of them.

Definition

highest common factor The highest common factor (HCF) of two or more numbers is the largest number that is a factor of all of them.

For small numbers you can simply list. The factors of 12 are 1, 2, 3, 4, 6, 12 and the factors of 18 are 1, 2, 3, 6, 9, 18. The common factors are 1, 2, 3 and 6, so the HCF of 12 and 18 is 6.

For larger numbers, listing is slow. Prime factorisation is faster and it shows what is going on.

Worked example 3.5

Find the HCF and LCM of 60 and 84.

Write each number in primes.
60 = 2 × 2 × 3 × 5
84 = 2 × 2 × 3 × 7
Put the primes in a Venn diagram.
The primes that both numbers share go in the overlap.

Now try one yourself

The prime factors of 60 and 84The primes that both numbers share go in the overlap.PUT THE PRIMES IN A VENN DIAGRAM60 =2×2×3×584 =2×2×3×7608457223sharedHCFLCMthe overlap only2 × 2 × 3 = 12the whole diagram5 × 2 × 2 × 3 × 7= 420
Figure 3.5 A Venn diagram of prime factors. The overlap gives the HCF, and the whole diagram gives the LCM.

The HCF is the product of the shared primes: 2 × 2 × 3 = 12.

The LCM is the product of everything in the diagram: 5 × 2 × 2 × 3 × 7 = 420.

Check: 60 = 12 × 5 and 84 = 12 × 7. Also 420 = 60 × 7 = 84 × 5.

Now multiply the two answers: 12 × 420 = 5,040. And multiply the two numbers: 60 × 84 = 5,040. This is not a coincidence. In the Venn diagram, HCF × LCM counts the overlap twice and everything else once, which is exactly what 60 × 84 does.

Key fact

HCF × LCM = the product of the two numbers. For any two whole numbers a and b, HCF(a, b) × LCM(a, b) = a × b.

Which one do I need? In word problems, ask what is happening.

  • Sharing or cutting things into equal groups, as large as possible: you need the HCF.
  • Things that repeat and must coincide again: you need the LCM.
Worked example 3.6

Gogo MaNcube has 48 oranges and 72 bananas. She wants to pack them into identical bags with no fruit left over, and to make as many bags as possible. How many bags can she make, and what is in each?

The number of bags must divide both 48 and 72, and must be as large as possible.
So we need the HCF.
48 = 24 × 3 and 72 = 23 × 32
For each prime, take the smaller power:
23 × 3 = 24
She can make 24 bags.
Each bag has 48 ÷ 24 = 2 oranges and 72 ÷ 24 = 3 bananas.

Now try one yourself

Definition

coprime Two numbers are coprime if their highest common factor is 1. For example, 8 and 15 are coprime, although neither of them is prime.

Going further

Euclid's algorithm. Euclid found a way to get the HCF with no factorising at all. Divide the larger number by the smaller and keep the remainder. Then divide the smaller number by that remainder. Repeat until the remainder is 0. The last divisor is the HCF. For 84 and 60: 84 = 1 × 60 + 24, then 60 = 2 × 24 + 12, then 24 = 2 × 12 + 0. So the HCF is 12. The figure shows why it works: the largest square tile that fits a rectangle of 84 by 60 exactly must also fit every smaller rectangle that is left over. This is the oldest algorithm still in everyday use, and computers run it millions of times a second.

Euclid's algorithm as tiling: a rectangle of 84 by 60Cut off the largest squares you can, then do the same to the piece left over. The lastsquare fits everything exactly.THE RECTANGLE, CUT INTO SQUARESdashed lines: the square of side 12, repeated. It fits every piece.160 × 60224 × 24224 × 24312 × 12312 × 128460THE LINES OF WORKING184 = 1 × 60 + 24one square of side 60260 = 2 × 24 + 12two squares of side 24324 = 2 × 12 + 0two squares of side 12HCF of 84 and 60 = 12
Figure 3.6 The largest square tile that fits a rectangle of 84 by 60 exactly has side 12.

Check your understanding 3.5

  1. Find the HCF and LCM of 18 and 24.
    Show answerHide answer
    18 = 2 × 32 and 24 = 23 × 3. HCF = 2 × 3 = 6. LCM = 23 × 32 = 72.
  2. Find the HCF and LCM of 22 × 3 × 5 and 2 × 32 × 7. Leave your answers in index form.
    Show answerHide answer
    HCF = 2 × 3. LCM = 22 × 32 × 5 × 7.
  3. The HCF of two numbers is 5 and their LCM is 150. One number is 25. Find the other.
    Show answerHide answer
    Other number = 5 × 150 ÷ 25 = 30.
  4. Are 14 and 25 coprime? Explain.
    Show answerHide answer
    Yes. 14 = 2 × 7 and 25 = 52 share no prime, so their HCF is 1.