1 What HCF and LCM mean
Kiran has 20 pens and 28 pencils. She wants to fill identical gift bags: every bag gets the same number of pens and the same number of pencils, and nothing is left over. What is the largest number of bags she can fill?
The number of bags must divide 20 (so the pens share out) and must divide 28 (so the pencils share out).
- Numbers that divide 20: 1, 2, 4, 5, 10, 20.
- Numbers that divide 28: 1, 2, 4, 7, 14, 28.
- In both lists: 1, 2 and 4. The biggest is 4.
So she fills 4 bags, each with pens and pencils.
Now a different question. At a depot, a blue bus leaves every 9 minutes and a red bus every 15 minutes. Both leave together at 7:00 am. When do they next leave together?
- Blue leaves after 9, 18, 27, 36, 45, 54, ... minutes.
- Red leaves after 15, 30, 45, 60, ... minutes.
- The first time in both lists is 45 minutes. So they leave together again at 7:45 am.
Words to know
- A factor (or divisor) of a number divides it with nothing left over. 4 is a factor of 20, because .
- A multiple of a number is that number times 1, 2, 3, and so on. 45 is a multiple of 9, because .
- A common factor of two numbers is a factor of both. The common factors of 20 and 28 are 1, 2 and 4.
- The HCF (highest common factor) is the biggest common factor. Many books call it the GCD, the greatest common divisor; it is the same number. HCF(20, 28) = 4.
- A common multiple is a multiple of both numbers. The common multiples of 9 and 15 are 45, 90, 135, and so on.
- The LCM (least common multiple) is the smallest common multiple above 0. LCM(9, 15) = 45.
Two facts that never change
The HCF cannot be bigger than the smaller number, because it must fit into it. The LCM cannot be smaller than the larger number, because it must be a multiple of it.
So for any two numbers, HCF smaller larger LCM. A quick check on every answer: HCF(20, 28) = 4 is below 20, and LCM(9, 15) = 45 is above 15.
- In words: the common factors of 20 and 28 (1, 2, 4) are exactly the factors of the HCF, 4. The common multiples of 9 and 15 (45, 90, 135, ...) are exactly the multiples of the LCM, 45.
- Use it whenever a question says "a multiple of both" or "divides both". A number that is a multiple of 9 and of 15 is a multiple of 45, and nothing less.
- Tiny use: the buses leave together at 7:00, 7:45, 8:30, 9:15, ...: every 45 minutes, never in between.
- The Divisibility page uses the same fact to count the numbers divisible by two numbers at once: count the multiples of their LCM.
- The common slip: taking "a multiple of 9 and 15" as a multiple of . That misses 45 and 90. The product works only when the two numbers share no factor (Section 4).
Example 1Basic
Find the HCF and the LCM of 16 and 40 by listing.
See the solution
Step 1: Factors of 16: 1, 2, 4, 8, 16
Step 2: Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40
Step 3: Common: 1, 2, 4, 8. The highest is 8
Step 4: Multiples of the larger number, 40: 40, 80, 120, ... Is each a multiple of 16? 40 is not (); 80 is ()
Step 5: LCM = 80
Check: HCF 8 is below 16 and LCM 80 is above 40; and
Answer: HCF 8, LCM 80
The check in the last line is no accident. Section 4 shows why HCF × LCM equals the product of the two numbers.
Example 2Exam level
A box of sweets can be shared equally among 6 children with none left over. It can also be shared equally among 14 children with none left over. What is the smallest number of sweets the box can hold? If the box holds between 100 and 150 sweets, how many does it hold?
See the solution
Step 1: The number of sweets is a multiple of 6 and a multiple of 14
Step 2: Multiples of 14: 14, 28, 42. 14 and 28 are not multiples of 6; 42 is (). So LCM(6, 14) = 42
Step 3: The smallest box holds 42 sweets
Step 4: Every common multiple is a multiple of 42: 42, 84, 126, 168, ...
Step 5: Between 100 and 150 only 126 appears
Check:
Answer: 42 sweets at least; 126 sweets in the box
Listing works for small numbers. For numbers like 600 and 1,260, list nothing. Section 2 reads the HCF and the LCM straight off the prime factors.
Try it
Find the HCF and the LCM of 27 and 45 by listing.
Check yourself · 5 questions
Which of these is a common multiple of 6 and 15, but not their LCM?
Loading the rest of the chapter…
Focused
Read the whole chapter
12 more sections: 20 worked examples, 12 graphs and figures, the question types IPMAT asks, 50 practice questions with full solutions.
Unlock with Focused Aspirant