Study Blocks

World map β€Ί Factors, multiples & primes β€Ί Lesson 5

Highest common factor and lowest common multiple

⏱ about 50 min · MYP criteria A, B, C, D

By the end of this lesson you can…
🌍 The big question

Two problems from a town (the town and its numbers are made up):

The buses. The red bus leaves the station every 12 minutes. The blue bus leaves every 18 minutes. At 8:00 they leave together. When will they next leave at the same moment?

The floor. A small room has a floor 240 cm by 180 cm. It will be covered with square tiles, all the same size, with no cutting and no gaps. Big tiles mean fewer joins to clean. What is the biggest square tile that fits exactly?

The two questions look different. One is about time and the other about length. But both are about factors and multiples that two numbers share, and the prime building blocks from the last lesson answer both.

πŸ§ͺ Explore β€” try it, no scoring

Try these first. Nothing is marked: just have a go.

no hints, nothing is marked

Two lights flash at the same moment. One flashes every 44 seconds and the other every 66 seconds.

After how many seconds do they next flash at the same moment?

s
no hints, nothing is marked

1818 apples and 2424 oranges are packed into identical bags, with nothing left over: every bag gets the same number of apples and the same number of oranges.

What is the greatest number of bags?

no hints, nothing is marked

List the factors of 1212 and the factors of 1818. Which numbers are in both lists?

🎯 Predict first

The red bus leaves every 1212 minutes and the blue bus every 1818 minutes, both at 8:00. When do they next leave together?

Now use the prime Venn diagram. Choose two numbers. Their prime factors appear as chips: primes that both numbers have go in the overlap, the rest stay on their own side.

  1. Start with 1212 and 1818. Multiply the chips in the overlap (or press the button to show the products). Compare with your answer to try-first 3.
  2. Multiply all the chips. Look at the timeline under the diagram: where do the two rows of marks first meet?
  3. Try 88 and 1515. What is in the overlap now? Then try two numbers where one divides the other, such as 1212 and 3636.
12182233
12=22Γ—318=2Γ—3212 = 2^{2} \times 3 \qquad 18 = 2 \times 3^{2}

When do the two cycles line up? Marks show the multiples of each number, starting together at 00. Dashed lines show where the marks meet; the thick one is the first meeting.

12180???
πŸ”Ž What do you notice?
  • Try-first 3. The factors of 1212 are 1,2,3,4,6,121, 2, 3, 4, 6, 12 and of 1818 are 1,2,3,6,9,181, 2, 3, 6, 9, 18. The factors in both lists are 1,2,3,61, 2, 3, 6. The biggest is 66, and the other shared factors all divide 66.
  • In the Venn diagram for 12=22Γ—312 = 2^2 \times 3 and 18=2Γ—3218 = 2 \times 3^2, the overlap holds one 22 and one 33: 2Γ—3=62 \times 3 = 6. The overlap is exactly what both numbers share.
  • All the chips multiply to 2Γ—2Γ—3Γ—3=362 \times 2 \times 3 \times 3 = 36. On the timeline, the marks for 1212 and 1818 first meet at 3636. That is the bus answer: 8:36.
  • Try-first 1. Lights every 44 and every 66 seconds first flash together after 1212 seconds: 1212 is the first number in both times tables. In the Venn diagram, 4=224 = 2^2 and 6=2Γ—36 = 2 \times 3 share one 22, and all the chips make 2Γ—2Γ—3=122 \times 2 \times 3 = 12.
  • Try-first 2. 1818 apples and 2424 oranges make at most 66 identical bags. The number of bags must divide both 1818 and 2424, and 66 is the biggest number that does.
  • For 88 and 1515 the overlap was empty: they share no prime. Their only common factor is 11, and the chips make 8Γ—15=1208 \times 15 = 120.
  • For 1212 and 3636, every chip of 1212 sat in the overlap. The overlap made 1212, the smaller number itself, and all the chips made 3636, the larger number. When one number divides the other, the shared part is the smaller number and the first meeting is the larger one.
πŸ“ Key idea

Common factors and the HCF

A common factor of two numbers is a number that is a factor of both. The highest common factor, HCF (American English: greatest common factor, GCF, or greatest common divisor, GCD), is the biggest of them.

factorsΒ ofΒ 12:β€…β€Š1,2,3,4,6,12factorsΒ ofΒ 18:β€…β€Š1,2,3,6,9,18\text{factors of } 12: \; 1, \mathbf{2}, \mathbf{3}, 4, \mathbf{6}, 12 \qquad \text{factors of } 18: \; 1, \mathbf{2}, \mathbf{3}, \mathbf{6}, 9, 18

The common factors are 1,2,3,61, 2, 3, 6, so the HCF of 1212 and 1818 is 66.

Two numbers whose only common factor is 11 (HCF =1= 1) are called coprime (American English: relatively prime), like 88 and 1515.

πŸ“ Key idea

Common multiples and the LCM

A common multiple of two numbers is a number that is a multiple of both. The lowest common multiple, LCM (American English: least common multiple), is the smallest one above zero.

multiplesΒ ofΒ 12:β€…β€Š12,24,36,48,60,72,…multiplesΒ ofΒ 18:β€…β€Š18,36,54,72,…\text{multiples of } 12: \; 12, 24, \mathbf{36}, 48, 60, \mathbf{72}, \dots \qquad \text{multiples of } 18: \; 18, \mathbf{36}, 54, \mathbf{72}, \dots

The common multiples are 36,72,108,…36, 72, 108, \dots (every multiple of 3636), so the LCM of 1212 and 1818 is 3636.

πŸ“ Key idea

HCF and LCM from prime factorisations

Write both numbers as products of primes. Then:

  • HCF: take only the primes that both numbers have, each with the lower index.
  • LCM: take every prime that appears in either number, each with the higher index.

24=23Γ—336=22Γ—3224 = 2^3 \times 3 \qquad 36 = 2^2 \times 3^2

HCF=22Γ—3=12LCM=23Γ—32=72\text{HCF} = 2^2 \times 3 = 12 \qquad \text{LCM} = 2^3 \times 3^2 = 72

This works for three numbers too: for the HCF, use only the primes that all of them share, each with its lowest index; for the LCM, use every prime that appears in any of them, each with its highest index.

πŸ” Why it works

The HCF. A factor of 2424 can only be built from the building blocks of 2424, and a factor of 3636 only from the blocks of 3636. A common factor must be built from blocks that are in both. 2424 has three 22s and 3636 has two, so a common factor can have at most two 22s; each number has at least one 33, so it can have one 33. The biggest such number is 22Γ—3=122^2 \times 3 = 12. In the Venn diagram: it is the overlap.

The LCM. A multiple of 2424 must contain all of 2424β€˜s blocks (23Γ—32^3 \times 3), and a multiple of 3636 must contain all of 3636β€˜s (22Γ—322^2 \times 3^2). To be both, it needs three 22s (enough for 2424) and two 33s (enough for 3636). Nothing extra is needed, so the smallest is 23Γ—32=722^3 \times 3^2 = 72. In the Venn diagram: it is all the chips.

Why there is a highest common factor but no highest common multiple. Factors of a number can never be bigger than the number, so there are only a few. Multiples go on for ever: if 7272 is a common multiple, so are 144144, 216216, … That is why we look for the highest common factor and the lowest common multiple.

⚠️ Watch out
  • Size check. The HCF can never be bigger than the smaller number (it has to divide it). The LCM can never be smaller than the larger number (it has to be a multiple of it). An HCF of 7272 for 2424 and 3636 is impossible.
  • The product of the two numbers is a common multiple, but often not the lowest: 6Γ—9=546 \times 9 = 54, but the LCM of 66 and 99 is 1818. The product is the LCM only when the numbers are coprime.
  • The HCF uses only shared primes. In 60=22Γ—3Γ—560 = 2^2 \times 3 \times 5 and 72=23Γ—3272 = 2^3 \times 3^2, the 55 is not shared, so it stays out of the HCF.
  • If two numbers share no prime, the HCF is 11, not 00: 11 divides every number.
  • Reason, don’t hunt for keywords. Ask yourself what the situation needs. Cutting or sharing into equal parts as big as possible (something that fits into both numbers): the HCF. Waiting until two repeating things line up (something both numbers fit into): the LCM. Then check that the size of your answer makes sense.
🧱 Worked example

Two ways to find the HCF and LCM of 24 and 36

Way 1: Listing

Factors of 2424: 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24. Factors of 3636: 1,2,3,4,6,9,12,18,361, 2, 3, 4, 6, 9, 12, 18, 36. The biggest in both lists is 1212: HCF =12= 12.

Multiples of the bigger number, 3636: 36,72,…36, 72, \dots Is 3636 a multiple of 2424? No. Is 7272? Yes, 72=24Γ—372 = 24 \times 3. LCM =72= 72.

Way 2: Prime factors

24=23Γ—324 = 2^3 \times 3 and 36=22Γ—3236 = 2^2 \times 3^2.

HCF: shared primes, lower index: 22Γ—3=122^2 \times 3 = 12. LCM: every prime, higher index: 23Γ—32=722^3 \times 3^2 = 72.

Which is neater?

For small numbers like these, listing is quick and needs nothing new. For bigger numbers, listing gets long: the factors of 168168 and 180180 fill two long lists, and their LCM is far down both times tables. With prime factors, 168=23Γ—3Γ—7168 = 2^3 \times 3 \times 7 and 180=22Γ—32Γ—5180 = 2^2 \times 3^2 \times 5 give the HCF 22Γ—3=122^2 \times 3 = 12 and the LCM 23Γ—32Γ—5Γ—7=25202^3 \times 3^2 \times 5 \times 7 = 2520 in two lines.

Is it sensible?

1212 divides both: 24Γ·12=224 \div 12 = 2 and 36Γ·12=336 \div 12 = 3 βœ“. 7272 is a multiple of both: 72Γ·24=372 \div 24 = 3 and 72Γ·36=272 \div 36 = 2 βœ“. And 12≀24≀36≀7212 \le 24 \le 36 \le 72: the HCF is not bigger than the smaller number, and the LCM is not smaller than the larger βœ“.

🧱 Worked example

The floor from the hook

Step 1: HCF or LCM?

The side of a tile must fit into 240240 cm a whole number of times and into 180180 cm a whole number of times. So it is a common factor of 240240 and 180180, and we want the biggest: the HCF.

Step 2: Find it

240=24Γ—3Γ—5240 = 2^4 \times 3 \times 5 and 180=22Γ—32Γ—5180 = 2^2 \times 3^2 \times 5. Shared primes, lower index: 22Γ—3Γ—5=602^2 \times 3 \times 5 = 60.

The biggest tile is 60 cm by 60 cm. It takes 240Γ·60=4240 \div 60 = 4 tiles along one side and 180Γ·60=3180 \div 60 = 3 along the other: 4Γ—3=124 \times 3 = 12 tiles.

Step 3: Is it sensible?

6060 cm is a big tile, but it is smaller than both sides of the room βœ“, and 4Γ—60=2404 \times 60 = 240, 3Γ—60=1803 \times 60 = 180 βœ“. Any smaller common factor would also fit (for example 3030 cm tiles: 8Γ—6=488 \times 6 = 48 tiles), just with more joins.

Foundation

Find the HCF of 2828 and 4242.

Foundation

Find the LCM of 1010 and 1515.

🎬 Another explanation

Still stuck after the example? Hearing it from another teacher often helps. These videos were checked against this lesson. Try the questions again afterwards.

LCM HCF using Product of Primes - Corbettmaths Β· corbettmaths Β· about 6 min

How to put the prime factors of two numbers into a Venn diagram, then multiply the middle to get the HCF and multiply everything to get the LCM.

LCM and Common Multiples - Corbettmaths Β· corbettmaths Β· about 2 min

What a common multiple is, by writing out two times tables and circling the numbers that appear in both, and why the lowest common multiple is the first one they share.

Same idea, different words: The teacher says both lowest common multiple and least common multiple; they mean the same thing.

πŸ€” Pause and think

Every common factor of 1212 and 1818 (1,2,3,61, 2, 3, 6) divides their HCF, 66. Every common multiple (36,72,108,…36, 72, 108, \dots) is a multiple of their LCM, 3636. Look at the Venn diagram: can you explain why this must always happen?

⛏ Practice β€” choose your level

Find the HCF of 1212 and 1616.

πŸ— Build project β€” real-life task

A community garden

A town is turning an empty plot into a community garden. (The plot and the numbers are made up.) The plot is a rectangle 360 cm by 480 cm. It will be split into square beds, all the same size, that fill the plot exactly. The beds are watered by two automatic systems that are switched on at 6:00.

IB StandardCriterion D

The plot is 360360 cm by 480480 cm. It is split into square beds, all the same size, that fill the plot exactly.

What is the side length of the biggest possible square bed, in cm?

cm
IB StandardCriterion D

The gardeners want to reach the middle of each bed without stepping on it, so they ask for smaller square beds, with sides between 5050 cm and 7070 cm, still filling the plot exactly.

Find the only possible size. How many beds will there be?

IB StandardCriterion D

Watering system P runs every 2020 minutes and system Q every 4545 minutes. Both run at 6:00.

How many minutes after 6:00 do they next run at the same time?

min
IB StandardCriterion D

One gardener asks: "Why can't we just have 5050 cm beds?" Another says: "The two watering systems will run together about every three hours all day, which wastes water."

Answer both gardeners. Use numbers, and explain your reasoning so that someone who has not done this lesson can follow it. Then name one thing we assumed about the garden that might not be true in real life.

πŸ““ Work it out in your notebook first β€” sketch, calculate, then write your answer here in full sentences. A model answer appears after you submit, so you can compare.

πŸ”— Connections

HCF and LCM come back as soon as you work with fractions. To simplify 1824\frac{18}{24}, divide the top and bottom by their HCF, 66: 1824=34\frac{18}{24} = \frac{3}{4}. To add 112+118\frac{1}{12} + \frac{1}{18}, rewrite both with a common denominator, and the smallest one is the LCM, 3636.

Repeating cycles are everywhere: timetables, traffic lights, the teeth of two gears turning together on a bicycle, a 77-day week and a 1010-day club rota (they line up again after 7070 days, the LCM of 77 and 1010). Whenever two things repeat at different rates, the LCM tells you when they line up again.

πŸͺž Reflect

Explain to a friend, with the Venn diagram, why the HCF uses only the overlap and the LCM uses all the chips.

Write your own real problem that needs the HCF and one that needs the LCM. How can you tell which is which without looking for keywords?

Listing or prime factors: which do you prefer, and for which numbers would you switch?

πŸ“– Read more in your book
  • Prealgebra (Art of Problem Solving) β€” Chapter 3, sections 3.5 Least Common Multiple and 3.7 Greatest Common Divisor (American names for our LCM and HCF)

The book goes deeper and its problems are harder. Read it after this lesson, with a pencil in your hand.