Skip to content

LearnIPMAT Quant: Number System

IPMAT Quant: Number System

HCF & LCM

IPMAT Indore Quant, MCQ and short answer · 108 min read · 20 worked examples · 50 practice questions

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 20÷4=520 \div 4 = 5 pens and 28÷4=728 \div 4 = 7 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.
factors of 20 1 2 4 5 10 20 factors of 28 1 2 4 7 14 28 common: 1, 2, 4 highest: HCF = 4 0 9 18 27 36 45 54 63 72 81 90 15 30 45 60 75 90 first in both: LCM = 45 then 90 every 9 every 15
Figure 1 Top: the factors of 20 and of 28; the common ones, 1, 2, 4, are yellow, and the highest is the HCF, 4. Bottom: multiples of 9 above the line, of 15 below; they first meet at 45, the LCM, and again at 90

Words to know

  • A factor (or divisor) of a number divides it with nothing left over. 4 is a factor of 20, because 20=4×520 = 4 \times 5.
  • A multiple of a number is that number times 1, 2, 3, and so on. 45 is a multiple of 9, because 45=9×545 = 9 \times 5.
  • 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 ≤\le smaller ≤\le larger ≤\le 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 9×15=1359 \times 15 = 135. 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

list the factors in pairs

Step 2: Factors of 40: 1, 2, 4, 5, 8, 10, 20, 40

list the factors in pairs

Step 3: Common: 1, 2, 4, 8. The highest is 8

HCF = the biggest common factor

Step 4: Multiples of the larger number, 40: 40, 80, 120, ... Is each a multiple of 16? 40 is not (40=16×2+840 = 16 \times 2 + 8); 80 is (80=16×580 = 16 \times 5)

list the multiples of the larger, stop at the first the smaller divides

Step 5: LCM = 80

the first common multiple

Check: HCF 8 is below 16 and LCM 80 is above 40; and 8×80=640=16×408 \times 80 = 640 = 16 \times 40

HCF ≤\le smaller, LCM ≥\ge larger

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

shared equally means divisible

Step 2: Multiples of 14: 14, 28, 42. 14 and 28 are not multiples of 6; 42 is (42=6×742 = 6 \times 7). So LCM(6, 14) = 42

list the multiples of the larger

Step 3: The smallest box holds 42 sweets

LCM = the least common multiple

Step 4: Every common multiple is a multiple of 42: 42, 84, 126, 168, ...

every common multiple is a multiple of the LCM

Step 5: Between 100 and 150 only 126 appears

pick from the list

Check: 126=6×21=14×9126 = 6 \times 21 = 14 \times 9

both shares are whole

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

Question 1 of 5Easy

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