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.
Try these first. Nothing is marked: just have a go.
Two lights flash at the same moment. One flashes every seconds and the other every seconds.
After how many seconds do they next flash at the same moment?
apples and 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?
List the factors of and the factors of . Which numbers are in both lists?
The red bus leaves every minutes and the blue bus every 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.
- Start with and . Multiply the chips in the overlap (or press the button to show the products). Compare with your answer to try-first 3.
- Multiply all the chips. Look at the timeline under the diagram: where do the two rows of marks first meet?
- Try and . What is in the overlap now? Then try two numbers where one divides the other, such as and .
- Try-first 3. The factors of are and of are . The factors in both lists are . The biggest is , and the other shared factors all divide .
- In the Venn diagram for and , the overlap holds one and one : . The overlap is exactly what both numbers share.
- All the chips multiply to . On the timeline, the marks for and first meet at . That is the bus answer: 8:36.
- Try-first 1. Lights every and every seconds first flash together after seconds: is the first number in both times tables. In the Venn diagram, and share one , and all the chips make .
- Try-first 2. apples and oranges make at most identical bags. The number of bags must divide both and , and is the biggest number that does.
- For and the overlap was empty: they share no prime. Their only common factor is , and the chips make .
- For and , every chip of sat in the overlap. The overlap made , the smaller number itself, and all the chips made , the larger number. When one number divides the other, the shared part is the smaller number and the first meeting is the larger one.
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.
The common factors are , so the HCF of and is .
Two numbers whose only common factor is (HCF ) are called coprime (American English: relatively prime), like and .
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.
The common multiples are (every multiple of ), so the LCM of and is .
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.
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.
The HCF. A factor of can only be built from the building blocks of , and a factor of only from the blocks of . A common factor must be built from blocks that are in both. has three s and has two, so a common factor can have at most two s; each number has at least one , so it can have one . The biggest such number is . In the Venn diagram: it is the overlap.
The LCM. A multiple of must contain all of βs blocks (), and a multiple of must contain all of βs (). To be both, it needs three s (enough for ) and two s (enough for ). Nothing extra is needed, so the smallest is . 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 is a common multiple, so are , , β¦ That is why we look for the highest common factor and the lowest common multiple.
- 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 for and is impossible.
- The product of the two numbers is a common multiple, but often not the lowest: , but the LCM of and is . The product is the LCM only when the numbers are coprime.
- The HCF uses only shared primes. In and , the is not shared, so it stays out of the HCF.
- If two numbers share no prime, the HCF is , not : 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.
Two ways to find the HCF and LCM of 24 and 36
Way 1: Listing
Factors of : . Factors of : . The biggest in both lists is : HCF .
Multiples of the bigger number, : Is a multiple of ? No. Is ? Yes, . LCM .
Way 2: Prime factors
and .
HCF: shared primes, lower index: . LCM: every prime, higher index: .
Which is neater?
For small numbers like these, listing is quick and needs nothing new. For bigger numbers, listing gets long: the factors of and fill two long lists, and their LCM is far down both times tables. With prime factors, and give the HCF and the LCM in two lines.
Is it sensible?
divides both: and β. is a multiple of both: and β. And : the HCF is not bigger than the smaller number, and the LCM is not smaller than the larger β.
The floor from the hook
Step 1: HCF or LCM?
The side of a tile must fit into cm a whole number of times and into cm a whole number of times. So it is a common factor of and , and we want the biggest: the HCF.
Step 2: Find it
and . Shared primes, lower index: .
The biggest tile is 60 cm by 60 cm. It takes tiles along one side and along the other: tiles.
Step 3: Is it sensible?
cm is a big tile, but it is smaller than both sides of the room β, and , β. Any smaller common factor would also fit (for example cm tiles: tiles), just with more joins.
Find the HCF of and .
Find the LCM of and .
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.
Every common factor of and () divides their HCF, . Every common multiple () is a multiple of their LCM, . Look at the Venn diagram: can you explain why this must always happen?
Find the HCF of and .
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.
The plot is cm by 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?
The gardeners want to reach the middle of each bed without stepping on it, so they ask for smaller square beds, with sides between cm and cm, still filling the plot exactly.
Find the only possible size. How many beds will there be?
Watering system P runs every minutes and system Q every minutes. Both run at 6:00.
How many minutes after 6:00 do they next run at the same time?
One gardener asks: "Why can't we just have 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.
HCF and LCM come back as soon as you work with fractions. To simplify , divide the top and bottom by their HCF, : . To add , rewrite both with a common denominator, and the smallest one is the LCM, .
Repeating cycles are everywhere: timetables, traffic lights, the teeth of two gears turning together on a bicycle, a -day week and a -day club rota (they line up again after days, the LCM of and ). Whenever two things repeat at different rates, the LCM tells you when they line up again.
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?
- 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.