Finding Common Ground: Primes, HCF and LCM

Two bells

A temple has two bells. The priest rings the small bell every 6 minutes and the big bell every 8 minutes. At 9:00 sharp, both ring at the same moment.

The two bells ring together at 9:00. When will they next ring together?

  • At 9:14, because 6 + 8 = 14
  • At 9:48, because 6 × 8 = 48
  • At 9:24
  • At 9:02, because 8 − 6 = 2

You could list every ringing time, minute by minute. This page gives you faster tools that work for any numbers, and they all start with prime numbers.

Primes and prime factorisation

Take 12 counters. You can lay them out as a rectangle in many ways: 2 rows of 6, 3 rows of 4. Now take 7 counters. The only rectangle is one long row of 7. Numbers like 7 are special.

A prime number is greater than 1, and its only factors are 1 and itself: 2, 3, 5, 7, 11, 13… A number with more than two factors is a composite number: 4, 6, 8, 9, 12… Two facts trip up many students:

  • 1 is neither prime nor composite. It has only one factor, itself.
  • 2 is the only even prime. Every other even number has 2 as a factor, so it has at least three factors.

How do you find all the primes up to 100? About 2,200 years ago, the Greek scholar Eratosthenes used a sieve. Circle 2, then cross out all the other multiples of 2. Circle the next number left, 3, and cross out its multiples. Keep going. What is never crossed out is prime.

The Sieve of Eratosthenes: circle a prime, cross out its multiples

You have crossed out the multiples of 2, 3, 5 and 7. Do you still need to cross out the multiples of 11 to finish the sieve up to 100?

  • Yes: some multiples of 11 are still there
  • No: every multiple of 11 up to 100 is already crossed out
  • Yes: none of them is crossed out yet

22 = 2 × 11, 33 = 3 × 11, 55 = 5 × 11 and 77 = 7 × 11 were crossed out already. So were 44, 66, 88 and 99. The first multiple of 11 with no smaller prime factor is 11 × 11 = 121, which is past 100.

There are exactly 25 primes up to 100. Here they are:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97

Prime factorisation

Every composite number can be broken into smaller factors, and those into smaller ones, until only primes are left. Writing a number as a product of primes is its prime factorisation. A factor tree does it in pictures. Split the number into any two factors. Split again each factor that is not prime. Stop when every leaf is prime.

A factor tree for 360. 360 splits into 36 and 10. 36 splits into 6 and 6, and each 6 into 2 and 3. 10 splits into 2 and 5. The leaves, all prime, are 2, 3, 2, 3, 2 and 5, so 360 = 2 × 2 × 2 × 3 × 3 × 5.
A factor tree for 360: keep splitting until every leaf is prime

But 360 can be split in many ways at the start. Does the start change the end?

Grow a factor tree: pick the number and its first split

Kavya starts her tree with 360 = 4 × 90. Ravi starts with 360 = 2 × 180. What happens at the end?

  • They get different primes
  • The same primes, but a different number of 2s
  • Exactly the same primes, maybe in a different order

Both trees end with three 2s, two 3s and one 5: 360 = 2 × 2 × 2 × 3 × 3 × 5. Try any first split in the lab: the leaves change place, never their values.

A factor tree can spread wide. Dividing again and again keeps it in one column. Divide by the smallest prime that goes in, write the answer below, and repeat until you reach 1. This is the division method of prime factorisation.

Prime factorisation of 360 by repeated division: 360 ÷ 2 = 180, 180 ÷ 2 = 90, 90 ÷ 2 = 45, 45 ÷ 3 = 15, 15 ÷ 3 = 5, 5 ÷ 5 = 1. The divisors down the left, 2, 2, 2, 3, 3, 5, give 360 = 2 × 2 × 2 × 3 × 3 × 5.
The same 360 by repeated division: read the primes down the left

Example 1. Find the prime factorisation of 1,200 by repeated division.

StepWorking
1,200 is even: divide by 21,200 ÷ 2 = 600
Still even: divide by 2600 ÷ 2 = 300
Still even: divide by 2300 ÷ 2 = 150
Still even: divide by 2150 ÷ 2 = 75
75 is odd; its digits add to 12, so try 375 ÷ 3 = 25
25 ends in 5: divide by 525 ÷ 5 = 5
5 is prime: divide by 55 ÷ 5 = 1
Read the divisors1,200 = 2 × 2 × 2 × 2 × 3 × 5 × 5

Check: 2 × 2 × 2 × 2 = 16, 3 × 5 × 5 = 75, and 16 × 75 = 1,200.

A prime's factorisation is just itself: 97 = 97. Now test this claim: “A bigger number always has a longer prime factorisation.” 64 = 2 × 2 × 2 × 2 × 2 × 2 has six primes. 101 is bigger, but it is prime, so its factorisation is one prime long. The claim is false. A claim nobody has proved yet is a conjecture. One example where it fails, like 101, is a counterexample, and one is enough to break it.

Riya finds the prime factorisation of 90. Which line has the mistake?
Line 1: 90 = 2 × 45
Line 2: 45 = 5 × 9
Line 3: So 90 = 2 × 5 × 9
Line 4: The prime factorisation of 90 is 2 × 5 × 9.

  • Line 1
  • Line 2
  • Line 3
  • Line 4

Lines 1 to 3 are true, but 9 is not prime, so the tree is not finished. Split it: 9 = 3 × 3. The prime factorisation is 90 = 2 × 3 × 3 × 5.

Twin primes and co-prime numbers

This part on twin primes is for Maharashtra students: it is in your Standard Seven book. Others can read it as an extra.

Some primes come in close pairs: 11 and 13, 17 and 19, 29 and 31. Two primes whose difference is 2 are called twin primes. Up to 100 there are eight pairs: (3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61) and (71, 73).

Every board uses the next word. Two numbers whose only common factor is 1 are co-prime (also called relatively prime). They need not be prime themselves. 8 = 2 × 2 × 2 and 15 = 3 × 5 share no prime. So 8 and 15 are co-prime, though neither is prime. Any two numbers next to each other, like 14 and 15, are always co-prime.

Your Maharashtra book words twin primes as two “co-prime numbers” whose difference is 2, but every pair it gives, like (3, 5) and (11, 13), is a pair of primes, and both numbers must be prime: 25 and 27 are co-prime and differ by 2, yet they are not twin primes.

Where you have seen this:

  • Safe online payments. Many secret codes that protect a UPI payment or a bank website are built by multiplying two huge primes. Finding them again from the product is too slow even for fast computers.

Divisibility rules

To factorise fast, you need to know which primes go into a number without dividing. A divisibility rule tells you from the digits alone. ICSE students need every rule in this table; other boards use them all the time.

Divisible byRuleTest on 7,920
2Last digit is 0, 2, 4, 6 or 8ends in 0: yes
3Sum of the digits is divisible by 37 + 9 + 2 + 0 = 18: yes
4Number made by the last two digits is divisible by 420 ÷ 4 = 5: yes
5Last digit is 0 or 5ends in 0: yes
6Divisible by both 2 and 3both yes: yes
8Number made by the last three digits is divisible by 8920 ÷ 8 = 115: yes
9Sum of the digits is divisible by 918 ÷ 9 = 2: yes
10Last digit is 0yes
11From the right, add the digits in odd places and the digits in even places. The difference is 0 or a multiple of 11(0 + 9) − (2 + 7) = 0: yes

7,920 passes every test! Its prime factorisation shows why: 7,920 = 2 × 2 × 2 × 2 × 3 × 3 × 5 × 11.

Why does adding the digits work for 3 and 9? Because 10 is 9 + 1, 100 is 99 + 1, and 1,000 is 999 + 1.

Example 2. Show why 4,725 is divisible by 9.

StepWorking
Write the place values4,725 = 4 × 1,000 + 7 × 100 + 2 × 10 + 5
Write each place as “nines + 1”= 4 × (999 + 1) + 7 × (99 + 1) + 2 × (9 + 1) + 5
Gather the nines, then the rest= (4 × 999 + 7 × 99 + 2 × 9) + (4 + 7 + 2 + 5)
The first bracket is a multiple of 9999, 99 and 9 are all multiples of 9
So only the digit sum matters4 + 7 + 2 + 5 = 18, a multiple of 9

So 4,725 is divisible by 9. Check: 9 × 525 = 4,725. The same reasoning works for 3, since 999, 99 and 9 are multiples of 3 too. For 4, only the last two digits matter because 100 is a multiple of 4. For 8, the last three, because 1,000 is a multiple of 8.

Sana tests whether 3,714 is divisible by 4. Which line has the mistake?
Line 1: For 4, look at the last digit: 4.
Line 2: 4 ÷ 4 = 1, a whole number.
Line 3: So 3,714 is divisible by 4.

  • Line 1
  • Line 2
  • Line 3

The rule for 4 uses the last two digits: 14. 14 ÷ 4 = 3, remainder 2. So 3,714 is not divisible by 4 (3,714 ÷ 4 = 928, remainder 2). Lines 2 and 3 only carry the Line 1 slip forward.

All the factors of a number

Lay 36 squares out as rectangles. Each rectangle gives a pair of factors.

Every rectangle that can be made from 36 equal squares: 1 by 36, 2 by 18, 3 by 12, 4 by 9 and 6 by 6. Their sides are the factors of 36: 1, 2, 3, 4, 6, 9, 12, 18 and 36.
Factors come in pairs: every rectangle of 36 squares gives two

For bigger numbers, guessing rectangles is slow and you may miss one. The prime factorisation gives every factor, with none missed. Any part of the prime factorisation multiplies to a factor. Take 360 = 2 × 2 × 2 × 3 × 3 × 5. Is 12 a factor? 12 = 2 × 2 × 3 is a part of it, and what is left over is 2 × 3 × 5 = 30. So 360 = 12 × 30. Is 27 a factor? 27 = 3 × 3 × 3 needs three 3s, but 360 has only two. So 27 is not a factor.

Example 3. List all the factors of 72.

StepWorking
Prime factorisation72 = 2 × 2 × 2 × 3 × 3
Ways to use the 2s: none, one, two or three1, 2, 4, 8
Ways to use the 3s: none, one or two1, 3, 9
Multiply each by each, in a tablesee the table below
×139
1139
22618
441236
882472

So 72 has 4 × 3 = 12 factors: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36 and 72. Check: they pair up to make 72. 1 × 72, 2 × 36, 3 × 24, 4 × 18, 6 × 12, 8 × 9.

100 = 2 × 2 × 5 × 5. How many factors does 100 have?

Ways to use the 2s: 1, 2, 4 (3 ways)
Ways to use the 5s: 1, 5, 25 (3 ways)
3 × 3 = 9 factors
They are 1, 2, 4, 5, 10, 20, 25, 50, 100.

HCF: the highest common factor

Ayaan’s family wants to tile a room 36 ft long and 24 ft wide with square tiles. All tiles must be the same size, with sides a whole number of feet, and no tile may be cut. They want as few tiles as possible.

Square tiles on a floor: which sizes fit with no gaps?

What is the biggest square tile that covers the 36 ft by 24 ft floor with no gaps and no cutting?

  • 4 ft
  • 6 ft
  • 12 ft
  • 24 ft

12 goes into 36 three times and into 24 twice, so 6 tiles cover the floor. A 24 ft tile fits the width but not the length: 36 ÷ 24 leaves 12 ft over. 4 ft and 6 ft tiles fit too, but need more tiles.

A tile fits along the length only if its side is a factor of 36. It fits along the width only if its side is a factor of 24. So it must be a factor of both: a common factor.

  • Factors of 36: 1, 2, 3, 4, 6, 9, 12, 18, 36
  • Factors of 24: 1, 2, 3, 4, 6, 8, 12, 24
  • Common factors: 1, 2, 3, 4, 6, 12

The biggest tile means the fewest tiles. So the answer is 12 ft. The highest of the common factors is the highest common factor, or HCF. Some books call it the greatest common divisor (GCD). The HCF of 36 and 24 is 12.

A floor 36 feet by 24 feet, drawn to scale, covered by six square tiles of side 12 feet, 3 along the length and 2 along the breadth, with no gaps.
The 36 ft by 24 ft floor, to scale, covered by six 12 ft tiles

HCF by prime factorisation

Listing factors gets slow for big numbers, and it is easy to miss one. Prime factors make it quick. A common factor must be a part of both prime factorisations. So line the primes up and take what both share.

24 = 2 × 2 × 2 × 3 and 36 = 2 × 2 × 3 × 3, with the same primes lined up in columns. The columns where both numbers have the prime are ringed in green: two 2s and one 3. HCF = 2 × 2 × 3 = 12.
HCF of 24 and 36: take each prime as many times as both have it

Example 4. Find the HCF of 60 and 84.

StepWorking
Prime factorise both60 = 2 × 2 × 3 × 5 and 84 = 2 × 2 × 3 × 7
Primes in both2 and 3 (5 is only in 60, 7 only in 84)
How many 2s in both? Each has two2 × 2
How many 3s in both? Each has one3
MultiplyHCF = 2 × 2 × 3 = 12

The HCF of 60 and 84 is 12. Check: 60 ÷ 12 = 5 and 84 ÷ 12 = 7. 5 and 7 share no factor except 1, so nothing bigger divides both.

Example 5. Find the HCF of 72 and 120.

StepWorking
Prime factorise both72 = 2 × 2 × 2 × 3 × 3 and 120 = 2 × 2 × 2 × 3 × 5
2s: 72 has three, 120 has three2 × 2 × 2
3s: 72 has two, 120 has one. Take the smaller3
MultiplyHCF = 2 × 2 × 2 × 3 = 24

For three numbers, do the same with all three. 18 = 2 × 3 × 3, 30 = 2 × 3 × 5 and 42 = 2 × 3 × 7. All three share one 2 and one 3, so their HCF is 6.

Two numbers may share no prime at all, like 35 = 5 × 7 and 48 = 2 × 2 × 2 × 2 × 3. Then their HCF is 1: they are co-prime.

Arjun finds the HCF of 24 and 36. Which line has the mistake?
Line 1: 24 = 2 × 2 × 2 × 3 and 36 = 2 × 2 × 3 × 3
Line 2: Both have 2 and 3.
Line 3: 24 has three 2s, so I take 2 × 2 × 2.
Line 4: HCF = 2 × 2 × 2 × 3 = 24.

  • Line 1
  • Line 2
  • Line 3
  • Line 4

The HCF takes the smaller count. 36 has only two 2s, so take 2 × 2. HCF = 2 × 2 × 3 = 12. (24 is not even a factor of 36.) Line 4 only carries the Line 3 slip forward.

HCF by the division method

This method is in the Maharashtra book; any student may use it, and it is fastest for big numbers. It is also called Euclid’s method, after the Greek mathematician who wrote it down.

  1. Divide the bigger number by the smaller one.
  2. Divide the last divisor by the remainder.
  3. Repeat until the remainder is 0. The last divisor is the HCF.

Example 6. Find the HCF of 168 and 396 by the division method.

StepWorking
Divide 396 by 168396 = 2 × 168 + 60
Divide 168 by the remainder 60168 = 2 × 60 + 48
Divide 60 by 4860 = 1 × 48 + 12
Divide 48 by 1248 = 4 × 12 + 0
Remainder 0: the last divisor is the HCFHCF = 12

Check by primes: 168 = 2 × 2 × 2 × 3 × 7 and 396 = 2 × 2 × 3 × 3 × 11. They share 2 × 2 × 3 = 12. Why does the method work? Any number that divides 396 and 168 also divides 396 − 2 × 168 = 60. So the pair (168, 60) has the same common factors as (396, 168), only smaller numbers.

Example 7. Reduce 221/391 to its simplest form.

StepWorking
Divide 391 by 221391 = 1 × 221 + 170
Divide 221 by 170221 = 1 × 170 + 51
Divide 170 by 51170 = 3 × 51 + 17
Divide 51 by 1751 = 3 × 17 + 0
The HCF is 17: divide top and bottom by it221/391 = (221 ÷ 17)/(391 ÷ 17) = 13/23

221/391 = 13/23. Guessing the factor 17 would have been hard; the method found it for you.

Careful with the name: Ganita Prakash also calls repeated division by primes “the division method”. In a Maharashtra exam, “HCF by the division method” means the long divisions above.

Where you have seen this:

  • Packing. A shopkeeper packs 96 kg of rice and 120 kg of wheat into bags all of the same weight. The heaviest such bag is the HCF, 24 kg.
  • Cutting cloth. A tailor cuts two lengths of cloth into equal pieces as long as possible, with nothing wasted: the HCF of the two lengths.

LCM: the lowest common multiple

Back to the temple bells. The small bell rings at 6, 12, 18, 24… minutes after 9:00: the multiples of 6. The big bell rings at 8, 16, 24, 32… minutes: the multiples of 8. They ring together at the numbers on both lists, the common multiples.

Two number lines from 0 to 50 minutes after 9:00, with a tick every 2 minutes. Bell 1 rings at 6, 12, 18, 24, 30, 36, 42 and 48; bell 2 at 8, 16, 24, 32, 40 and 48. Green lines join 24 and 48, the common multiples. The first is 24, so they ring together again at 9:24.
The bells’ times on two number lines: the first meeting is 24, not 48

They next ring together at 9:24. 24 is the first number on both lists. 6 + 8 = 14 and 8 − 6 = 2 are not multiples of 6 or of 8, so neither bell rings at 9:14 or 9:02.

6 × 8 = 48 is a time they do ring together, but it is the second time, not the first. Multiplying counts the factor 2, which 6 and 8 share, twice: 48 ÷ 2 = 24.

The lowest of the common multiples is the lowest common multiple, or LCM (some books say least common multiple). The LCM of 6 and 8 is 24. Is there a highest common multiple? No: 24, 48, 72, 96… go on for ever.

Lights that blink every few seconds: when do they blink together?

Two lights blink together at 0 seconds. One blinks every 4 seconds, the other every 9 seconds. When do they first blink together again?

  • After 13 seconds
  • After 18 seconds
  • After 36 seconds
  • After 12 seconds

Multiples of 4: 4, 8, 12, … 32, 36. Multiples of 9: 9, 18, 27, 36. The first number on both lists is 36, which is 4 × 9. This time the product is the LCM, because 4 and 9 share no factor except 1.

LCM by prime factorisation

A multiple of 24 must contain all of 24’s primes, 2 × 2 × 2 × 3. A multiple of 36 must contain all of 36’s primes, 2 × 2 × 3 × 3. The smallest number that contains both needs three 2s (for 24) and two 3s (for 36), and nothing more.

24 = 2 × 2 × 2 × 3 and 36 = 2 × 2 × 3 × 3, with the same primes lined up in columns. Every column is ringed in amber and taken once: three 2s, the most in 24, and two 3s, the most in 36. LCM = 2 × 2 × 2 × 3 × 3 = 72.
LCM of 24 and 36: take each prime as many times as the number that has the most

Example 8. Find the LCM of 60 and 84.

StepWorking
Prime factorise both60 = 2 × 2 × 3 × 5 and 84 = 2 × 2 × 3 × 7
Every prime that appears2, 3, 5 and 7
Most 2s in either: two2 × 2
Most 3s: one; most 5s: one; most 7s: one3 × 5 × 7
MultiplyLCM = 2 × 2 × 3 × 5 × 7 = 420

The LCM of 60 and 84 is 420. Check: 420 ÷ 60 = 7 and 420 ÷ 84 = 5, both whole.

Example 9. Find the LCM of 12, 18 and 30.

StepWorking
Prime factorise all three12 = 2 × 2 × 3, 18 = 2 × 3 × 3, 30 = 2 × 3 × 5
Most 2s: two (in 12)2 × 2
Most 3s: two (in 18); most 5s: one (in 30)3 × 3 × 5
MultiplyLCM = 2 × 2 × 3 × 3 × 5 = 180

Check: 180 ÷ 12 = 15, 180 ÷ 18 = 10 and 180 ÷ 30 = 6.

Find the LCM of 10 and 15.

10 = 2 × 5 and 15 = 3 × 5
Most 2s: one; most 3s: one; most 5s: one
LCM = 2 × 3 × 5
= 30

Where you have seen this:

  • Buses from a depot. Two buses leave together, one every 15 minutes and one every 20. They leave together again after 60 minutes, the LCM.

Patterns and a pretty procedure

Try pairs where one number is a factor of the other: 6 and 18, 7 and 35, 12 and 48. The HCF is always the smaller number, and the LCM is always the bigger one. Using a letter-number: for any number n, the HCF of n and 5n is n, and their LCM is 5n. A rule that holds in every case is a general statement, and finding one is called generalisation.

Pair of numbersExampleHCFLCM
Two numbers next to each other14 and 15114 × 15 = 210
Two even numbers next to each other14 and 16214 × 16 ÷ 2 = 112
Two odd numbers next to each other15 and 17115 × 17 = 255
Two co-prime numbers8 and 1518 × 15 = 120

Why is the HCF of two numbers next to each other always 1? A number that divides both must also divide their difference, which is 1. In the same way, two even numbers next to each other differ by 2. Any common factor must divide 2, and 2 divides both, so their HCF is 2. Two odd numbers next to each other also differ by 2, but 2 does not divide an odd number, so their HCF is 1. Doubling both numbers doubles the HCF, because it adds one more shared 2. The HCF of 12 and 18 is 6; the HCF of 24 and 36 is 12.

Both at once: the pretty procedure

Write the two numbers side by side. Divide both by a prime that goes into both. Repeat until the two numbers left share no factor except 1. The divisors down the left multiply to the HCF. Those divisors times the last two numbers give the LCM.

Example 10. Find the HCF and LCM of 72 and 120 at once.

StepWorking
Both even: divide by 22 | 72, 120 → 36, 60
Both even: divide by 22 | 36, 60 → 18, 30
Both even: divide by 22 | 18, 30 → 9, 15
Both divisible by 33 | 9, 15 → 3, 5
3 and 5 share nothing: stopleft: 2, 2, 2, 3; last row: 3, 5
HCF = the divisors2 × 2 × 2 × 3 = 24
LCM = divisors × last row24 × 3 × 5 = 360

The HCF is 24, as in Example 5, and the LCM is 360. You may also divide by any common factor you spot, not just a prime. Divide 72 and 120 by 12 to get 6 and 10. Then divide by 2 to get 3 and 5. HCF = 12 × 2 = 24, and LCM = 24 × 3 × 5 = 360.

Three numbers. Maharashtra’s book runs the same ladder for the LCM of three numbers, with one change: divide by a prime that goes into at least two of them, and bring down any number it does not divide. Here is the LCM of 16, 28 and 40.

StepWorking
All three even: divide by 22 | 16, 28, 40 → 8, 14, 20
All three even: divide by 22 | 8, 14, 20 → 4, 7, 10
2 goes into 4 and 10; bring 7 down2 | 4, 7, 10 → 2, 7, 5
No two of 2, 7, 5 share a factor: stopleft: 2, 2, 2; last row: 2, 7, 5
LCM = divisors × last row2 × 2 × 2 × 2 × 7 × 5 = 560

Careful: here the left column is not the HCF, because the third 2 did not go into 28. Only the rows where the prime divides all three count: HCF = 2 × 2 = 4.

HCF × LCM

For 24 and 36, the HCF is 12 and the LCM is 72. Is there a link between these and the numbers themselves?

Prime factors in two circles: shared ones in the overlap

Pick any two numbers. Find their HCF and their LCM, and multiply them. Compare with the two numbers multiplied together. What do you find?

  • They are always equal
  • They are equal only sometimes
  • They are never equal

12 × 72 = 864 and 24 × 36 = 864. For 35 and 48: 1 × 1,680 = 1,680 = 35 × 48. Try any pair in the lab: the two products always match.

Two overlapping circles. The left holds the prime factors of 24 and the right those of 36. The shared primes 2, 2 and 3 sit in the overlap; one 2 is only in 24 and one 3 only in 36. The overlap multiplies to the HCF, 12; everything multiplies to the LCM, 72.
Prime factors of 24 and 36: the overlap is the HCF, everything is the LCM

Here is why. The product 24 × 36 uses every prime in both circles, and the shared ones twice. The HCF uses the shared ones once. The LCM uses everything once. So HCF × LCM also uses the shared primes twice and the rest once.

Example 11. Two numbers have HCF 6 and LCM 180. One of them is 36. Find the other.

StepWorking
Write the ruleHCF × LCM = first number × second number
Put in the numbers6 × 180 = 36 × second number
Multiply1,080 = 36 × second number
Divide by 36second number = 1,080 ÷ 36 = 30

The other number is 30. Check: 36 = 2 × 2 × 3 × 3 and 30 = 2 × 3 × 5. They share 2 × 3 = 6, and their LCM is 2 × 2 × 3 × 3 × 5 = 180.

Two more facts follow. The LCM is never bigger than the product of the two numbers, because the product is itself a common multiple. And the HCF is never bigger than the smaller number.

Kabir checks the rule on 4, 6 and 10. Which line has the mistake?
Line 1: HCF of 4, 6 and 10 = 2.
Line 2: LCM of 4, 6 and 10 = 60.
Line 3: HCF × LCM = 2 × 60 = 120.
Line 4: So 4 × 6 × 10 must be 120.

  • Line 1
  • Line 2
  • Line 3
  • Line 4

4 × 6 × 10 = 240, not 120. HCF × LCM = product works only for two numbers. With three, the shared primes get counted a different number of times.

HCF or LCM? Word problems

The hardest part of a word problem is choosing. Ask: is the answer smaller than the numbers, or bigger?

The question asks forThe answer isUse
The biggest piece, tile, bag or group that fits into both exactlysmaller than the numbersHCF
The first time things happen together again; the smallest number both go intobigger than the numbersLCM

Example 12. Two ribbons are 84 cm and 120 cm long. Meena cuts both into pieces of the same length, as long as possible, with nothing left over. How long is each piece, and how many pieces are there?

StepWorking
Biggest piece that fits both: HCF84 = 2 × 2 × 3 × 7, 120 = 2 × 2 × 2 × 3 × 5
Shared primes, smaller countsHCF = 2 × 2 × 3 = 12 cm
Pieces from each ribbon84 cm ÷ 12 cm = 7 and 120 cm ÷ 12 cm = 10
Total pieces7 + 10 = 17

Each piece is 12 cm long, and there are 17 pieces.

Example 13. Three traffic lights change every 40 s, 60 s and 72 s. They all change together at 8:00:00 in the morning. When do they next change together?

StepWorking
First time together: LCM40 = 2 × 2 × 2 × 5, 60 = 2 × 2 × 3 × 5, 72 = 2 × 2 × 2 × 3 × 3
Most 2s: three; most 3s: two; most 5s: oneLCM = 2 × 2 × 2 × 3 × 3 × 5 = 360 s
Change to minutes360 s ÷ 60 = 6 min

They next change together at 8:06:00 in the morning.

Example 14. What is the smallest number of laddoos that leaves exactly 2 over when packed in boxes of 4, of 6 or of 9, with at least one full box?

StepWorking
A number that 4, 6 and 9 all go into: LCM4 = 2 × 2, 6 = 2 × 3, 9 = 3 × 3
Most 2s: two; most 3s: twoLCM = 2 × 2 × 3 × 3 = 36
Add the 2 left over36 + 2 = 38

The smallest number is 38 laddoos. Check: 38 = 9 boxes of 4 + 2 = 6 boxes of 6 + 2 = 4 boxes of 9 + 2.

Rohan has 48 pencils and 60 erasers. He wants to make as many identical gift packs as possible, using all of them. Which do you need?

  • The HCF of 48 and 60
  • The LCM of 48 and 60
  • 48 × 60

The number of packs must divide 48 and 60 exactly, and be as big as possible: the HCF, 12. Each pack gets 4 pencils and 5 erasers. The answer is smaller than both numbers, which is the HCF sign.

Check yourself

Twelve questions, one at a time. Answer each one before you see why.

Which of these is a prime number?

  • 1
  • 51
  • 57
  • 59

59 has only the factors 1 and 59. 1 is neither prime nor composite. 51 = 3 × 17 and 57 = 3 × 19: both digit sums are divisible by 3.

How many prime numbers are there from 1 to 100?

The sieve leaves these:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47
53, 59, 61, 67, 71, 73, 79, 83, 89, 97
That is 15 + 10 = 25 primes.

Which is the prime factorisation of 84?

  • 2 × 42
  • 4 × 3 × 7
  • 2 × 2 × 3 × 7
  • 2 × 3 × 14

Every factor must be prime. 42, 4 and 14 are not prime. 84 ÷ 2 = 42, 42 ÷ 2 = 21, 21 ÷ 3 = 7, so 84 = 2 × 2 × 3 × 7.

Is 5,346 divisible by 11?

  • Yes
  • No

From the right, odd places: 6 + 3 = 9. Even places: 4 + 5 = 9. The difference is 0, so yes. Check: 11 × 486 = 5,346.

108 = 2 × 2 × 3 × 3 × 3. How many factors does 108 have?

Ways to use the 2s: 1, 2, 4 (3 ways)
Ways to use the 3s: 1, 3, 9, 27 (4 ways)
3 × 4 = 12 factors

Find the HCF of 48 and 72.

48 = 2 × 2 × 2 × 2 × 3
72 = 2 × 2 × 2 × 3 × 3
Shared: three 2s and one 3
HCF = 2 × 2 × 2 × 3 = 24

Find the LCM of 48 and 72.

Most 2s: four (in 48)
Most 3s: two (in 72)
LCM = 2 × 2 × 2 × 2 × 3 × 3
= 144

Use the division method to find the HCF of 299 and 391.

391 = 1 × 299 + 92
299 = 3 × 92 + 23
92 = 4 × 23 + 0
The last divisor is 23, so HCF = 23.

Two numbers have HCF 9 and LCM 270. One number is 54. What is the other?

HCF × LCM = product of the two numbers
9 × 270 = 54 × other
2,430 = 54 × other
other = 2,430 ÷ 54 = 45

What is the HCF of any two numbers next to each other, like 20 and 21?

  • 1
  • 2
  • The smaller number
  • Their product

A number that divides both must also divide their difference, which is 1. So the only common factor is 1.

Three buses leave a depot together at 8:00. They come back and leave again every 10, 12 and 15 minutes. After how many minutes do all three leave together again?

First time together: LCM
10 = 2 × 5, 12 = 2 × 2 × 3, 15 = 3 × 5
LCM = 2 × 2 × 3 × 5 = 60
So after 60 minutes, at 9:00.

Ribbons of 90 cm and 126 cm are cut into equal pieces, as long as possible, with nothing left over. How long is each piece?

Biggest piece that fits both: HCF
90 = 2 × 3 × 3 × 5, 126 = 2 × 3 × 3 × 7
HCF = 2 × 3 × 3 = 18 cm

Try at home

Three things to try, one with a phone. Note what you find, then see what should happen.

Biggest equal groups from bangles or buttons

  • 18 things of one colour and 24 of another (bangles, buttons, bindis or beads)
  1. Make groups so that each group has only one colour.
  2. Every group, of either colour, must have the same number of things, and nothing is left over.
  3. Find the biggest group size that works.

The biggest group size was

6 in each group: 3 groups of the first colour and 4 of the second. The group size must divide 18 and 24, and 6 is their HCF. Groups of 1, 2 or 3 also work, but 4 does not divide 18, and 9 does not divide 24.

Primes in columns of six

  • a sheet of paper and a pencil
  1. Write the numbers 1 to 60 in rows of six. 1 to 6 go on the first row, 7 to 12 on the next, and so on.
  2. Circle every prime (use the list of 25 primes on this page).
  3. Look at which columns the circles are in.

I noticed that

Apart from 2 and 3, every prime sits in the first column (1, 7, 13…) or the fifth (5, 11, 17…). The other columns hold even numbers or multiples of 3. Not every number in those two columns is prime, though: 25 and 49 are there too.

Clap together with a phone stopwatch

  • a phone with a stopwatch (in the Clock app)
  • a friend or someone at home
  1. Start the stopwatch where you can both see it.
  2. You clap every 3 seconds. Your friend claps every 4 seconds.
  3. Press Lap each time you both clap at once. Stop after 40 seconds.

We clapped together first at

At 12, 24 and 36 seconds: the common multiples of 3 and 4. 3 and 4 are co-prime, so this time the LCM is the product, 3 × 4 = 12. Try 4 and 6 seconds next: you meet at 12 again, not 24.

Go deeper

Only if you want more. None of this is in your exam. Open a door if the question makes you curious.

What is the biggest prime anyone knows?

Your Ganita Prakash book says the largest prime found so far has 4,10,24,320 digits. It was found on 12 October 2024. It is 13,62,79,841 twos multiplied together, minus 1. A volunteer found it with many computers working together, and no bigger prime had been found by late 2026.

How long would it take to write? At one digit a second, without sleeping, it takes 4,10,24,320 seconds: about 475 days. Nobody finds such primes by hand. But why there is always a bigger one was known over 2,000 years ago.

Do the primes ever run out?

No, and the Greek mathematician Euclid showed why, around 300 BCE. Suppose someone hands you a list and says it holds every prime. Multiply all of them together and add 1. Divide this new number by any prime on the list: the remainder is always 1. So none of them divides it.

But every number bigger than 1 has at least one prime factor. This one's prime factors are not on the list. So the list was not complete, however long it was.

A common slip is to think the new number is itself prime. Not always! 2 × 3 × 5 × 7 × 11 × 13 + 1 = 30,031, and 30,031 = 59 × 509. Its primes, 59 and 509, are new, which is all Euclid needed.

Why do some insects wait 13 or 17 years?

In North America, some cicadas live underground for 13 years, or for 17, then come out together in their millions. 13 and 17 are both prime. Scientists have a guess why, though nobody has proved it.

Think of an enemy that booms every 4 years. A 12-year cicada would meet it every time it came out, since the LCM of 12 and 4 is 12. A 17-year cicada meets it only every 68 years, the LCM of 17 and 4. Prime cycles make a clash rare.

A 13-year group and a 17-year group meet only once every 13 × 17 = 221 years. In 2024 two such groups came out in the same spring, side by side in the American state of Illinois, for the first time since 1803.

Exam pass

Exams ask about this chapter in a few set ways. Here is how marks are usually given.

  • Prime factorisation: one mark for the method (tree or division) with every step, one for the answer as a product of primes only.
  • HCF and LCM: one mark for the prime factorisations, one for each of HCF and LCM with the right counts of each prime.
  • Word problems: one mark for saying HCF or LCM and why, one for each main step, one for the answer with its unit.
  • Divisibility, and true or false: one mark for the answer, one for the reason. A reason with numbers is safest.

Write each answer in your notebook first. Then open the marking points and tick the ones you wrote. Each point is one mark.

Find the prime factorisation of 1,260 by the division method.

  • 1,260 ÷ 2 = 630; 630 ÷ 2 = 315.
  • 315 ÷ 3 = 105; 105 ÷ 3 = 35; 35 ÷ 5 = 7; 7 ÷ 7 = 1.
  • 1,260 = 2 × 2 × 3 × 3 × 5 × 7.

Find the HCF and LCM of 72 and 108 by prime factorisation.

  • 72 = 2 × 2 × 2 × 3 × 3 and 108 = 2 × 2 × 3 × 3 × 3.
  • HCF: two 2s (smaller count) and two 3s (smaller count).
  • HCF = 2 × 2 × 3 × 3 = 36.
  • LCM = 2 × 2 × 2 × 3 × 3 × 3 = 216 (larger count of each).

For 72 and 108, verify that HCF × LCM = product of the numbers.

  • HCF × LCM = 36 × 216 = 7,776.
  • 72 × 108 = 7,776, the same, so the rule holds.

(Maharashtra) Find the HCF of 306 and 657 by the division method.

  • 657 = 2 × 306 + 45; 306 = 6 × 45 + 36.
  • 45 = 1 × 36 + 9; 36 = 4 × 9 + 0.
  • The remainder is 0, so HCF = 9.

A milkman has 120 L of cow’s milk and 180 L of buffalo’s milk. He wants to fill cans of the same size, as big as possible, each with one kind of milk and none left over. What size should each can be?

  • Biggest size that divides both exactly: the HCF.
  • 120 = 2 × 2 × 2 × 3 × 5; 180 = 2 × 2 × 3 × 3 × 5; HCF = 2 × 2 × 3 × 5 = 60.
  • Each can holds 60 L.

Three traffic lights change every 40 s, 60 s and 72 s. They change together at 8:00:00 a.m. When will they next change together?

  • First time together: the LCM.
  • 40 = 2 × 2 × 2 × 5, 60 = 2 × 2 × 3 × 5, 72 = 2 × 2 × 2 × 3 × 3.
  • LCM = 2 × 2 × 2 × 3 × 3 × 5 = 360 s = 6 min.
  • They change together again at 8:06:00 a.m.

Without dividing, say whether 4,59,162 is divisible by 9 and by 11. Give reasons.

  • By 9: yes, the digit sum 4 + 5 + 9 + 1 + 6 + 2 = 27 is divisible by 9.
  • By 11: yes, from the right (2 + 1 + 5) − (6 + 9 + 4) = 8 − 19 = −11, a multiple of 11.

True or false: for 4, 6 and 10, HCF × LCM = 4 × 6 × 10. Give a reason.

  • False.
  • HCF = 2 and LCM = 60, so HCF × LCM = 120, but 4 × 6 × 10 = 240. The rule works only for two numbers.

Summary

Big ideaIn one line
Prime and compositeA prime has exactly two factors, 1 and itself. 1 is neither; 2 is the only even prime. 25 primes up to 100.
Prime factorisationBy a factor tree or repeated division: 360 = 2 × 2 × 2 × 3 × 3 × 5. Every number has only one.
Divisibility rules3 and 9: digit sum. 4: last two digits. 8: last three. 11: difference of alternate digit sums.
All factorsMultiply every way of using the primes: 72 has 4 × 3 = 12 factors.
HCFShared primes, each the smaller number of times: HCF of 24 and 36 = 12.
LCMEvery prime, each the larger number of times: LCM of 24 and 36 = 72.
HCF × LCM= the product, for two numbers only: 12 × 72 = 24 × 36.
Word problemsBiggest that fits into both: HCF. First time together: LCM.
  • Twin primes differ by 2: (11, 13). Co-prime numbers have HCF 1: (8, 15).
  • Numbers next to each other are co-prime. Their LCM is their product.
  • If one number is a factor of the other, the HCF is the smaller and the LCM the bigger.
  • The division method (Euclid’s): divide, then divide the divisor by the remainder, until the remainder is 0.
  • A conjecture is a claim not yet proved; one counterexample breaks it.

Book words: prime, composite, prime factorisation, factor tree, division method, twin primes, co-prime, divisibility rule, common factor, highest common factor (HCF), greatest common divisor (GCD), multiple, common multiple, lowest common multiple (LCM), conjecture, counterexample, general statement, generalisation.

Next: the chapter Number Play uses odd and even numbers, magic squares and number patterns to reason about what must be true.

Which boards teach this

If you study in a CBSE school, this is Chapter 3 of your Ganita Prakash Grade 7 book, Part 2, “Finding Common Ground”. Maharashtra’s Standard Seven book has it as Chapter 3, “HCF and LCM”, with twin primes and the division method. The ICSE (CISCE) Class 7 syllabus asks for divisibility rules, HCF and LCM. West Bengal students meet HCF and LCM again in the revision at the start of their book. Most other boards, and the older NCERT book, teach primes, HCF and LCM in Class 6. For you this page is a revision, with faster methods.

Based on NCERT Ganita Prakash, Grade 7, Part 2, Chapter 3 “Finding Common Ground”, with twin primes and the division method from Maharashtra’s Standard Seven Chapter 3 “HCF and LCM” and divisibility rules from the CISCE Class 7 syllabus.