Problems with HCF and LCM · Mathematics Class 9–10 | StemPy Lab
Course 2.1·Lesson 3 of 3
Problems with HCF and LCM
Word problems about the largest equal pieces need the HCF. Problems about things that happen together again need the LCM. A remainder changes the numbers first. For big numbers, Euclid's division method finds the HCF quickly, and so does Python's math.gcd.
about 25 min1 simulation2 practice questions1 Python program4 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
HCF or LCM?
The hardest part of a word problem is to choose. Ask what the answer must be.
The largest size that fits exactly into some amounts (the longest rope piece, the biggest tile, the largest container): the answer divides each amount. Use the HCF.
The first time that things happen together again (bells, lights, buses, laps): the answer is a multiple of each time. Use the LCM.
A quick check: an HCF answer is never more than the smallest number in the problem. An LCM answer is never less than the largest one.
Bells that ring together
Three bells ring every 15, 20 and 24 minutes. They ring together at 7:00 a.m. When do they next ring together?
Choose. They ring together after a time that is a multiple of 15, 20 and 24. We want the first one: the LCM.
Factorise.15=3×5, 20=22×5, 24=23×3.
LCM.23×3×5=120 minutes, that is 2 hours.
Answer the question. They next ring together at 9:00 a.m.
The largest square tile
A floor is 450cm long and 330cm wide. It must be covered with equal square tiles, with no tile cut. What is the largest tile, and how many tiles are needed?
Choose. The side must divide both 450 and 330, and it must be as large as possible: the HCF.
Factorise.450=2×32×52 and 330=2×3×5×11.
HCF.2×3×5=30cm.
Count.30450=15 tiles along the length and 30330=11 along the width, so 15×11=165 tiles.
When there is a remainder
Some problems leave something over. Take it away (or add it) first.
The largest number that divides 64 and 99 and leaves remainders 4 and 3. It divides 64−4=60 and 99−3=96 exactly. HCF(60,96)=12.
The smallest number that leaves a remainder of 1 when divided by 4, 6 and 9. One less than it is a multiple of all three. LCM(4,6,9)=36, so the number is 37.
Big numbers: Euclid's division method
Factorising 1071 and 462 by hand is slow. More than two thousand years ago, Euclid found a faster way. It rests on one fact.
If a=b×q+r, then the HCF of a and b equals the HCF of b and r.
Why? Any number that divides a and b also divides r=a−b×q. And any number that divides b and r also divides a. So the two pairs have the same common factors.
So divide, keep the divisor and the remainder, and divide again. Stop at a remainder of 0. The last divisor is the HCF.
1071=462×2+147
462=147×3+21
147=21×7+0
The HCF of 1071 and 462 is 21. Three short divisions did the work.
Try it in Python
The program writes out each step of Euclid's method, then checks the answer with math.gcd, which Python keeps ready for you.
Practise with new numbers
Common mistakes
Choosing the wrong one. "Largest piece" needs the HCF. "Together again" needs the LCM. Ask whether the answer divides the numbers or is a multiple of them.
Mixed units. Change 4.5m and 330cm into the same unit before you find the HCF.
Stopping at the number. If the question asks for a clock time or a number of tiles, finish that step too.
Dividing the wrong way in Euclid's method. Always divide the larger number by the smaller one, then the divisor by the remainder.
Remember these
Largest equal size that fits exactly: HCF. First time together again: LCM.
With a remainder, take it away from the numbers (for an HCF problem) or add it to the LCM.
Euclid: a=b×q+r gives HCF(a,b)= HCF(b,r). The last divisor before the remainder 0 is the HCF.
In Python, math.gcd(a, b) gives the HCF.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A florist has 48 roses and 72 lilies. She makes the largest bunches she can, all the same size, each of one kind of flower. How many flowers are in each bunch, and how many bunches are there?
Two lighthouses flash every 10 seconds and every 14 seconds. They flash together now. After how many seconds do they flash together again?
Use Euclid's method to find the HCF of 196 and 38.
What is the smallest whole number greater than 1 that leaves a remainder of 1 when divided by 2, 3, 4, 5 and 6?
Enroll free in Primes, HCF and LCM
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.