Skip to content

← Grade 9 Math

Highest Common Factor and Lowest Common Multiple

Unit 10 · CDC textbook pages 197–213

Hide the stories, facts, photos, activities and interactives, for revising before an exam
In this unit 7 sections
  1. 10.0 Review
  2. 10.1 Highest Common Factor
  3. Exercise 10.1
  4. 10.2 Lowest common multiple
  5. Back to the cicadas
  6. How the exam asks it
  7. Exercise 10.2
A periodical cicada with a black body, red eyes and clear wings with orange veins, clinging to a white-painted wooden wall
Figure 10.1 A periodical cicada of Brood XIII, the brood that comes out every 17 years. It spends those years underground as a nymph. Photo: Joelmills, CC BY-SA 3.0

In the spring of 2024, two broods of periodical cicadas came out of the ground in Illinois, in the United States, in the same season. One brood appears every 17 years, the other every 13. It was the first time the two had come out together since 1803. When will they next?

The first brood is out in the years 2024 + 17, 2024 + 34, …; the second in 2024 + 13, 2024 + 26, …. The next year in both lists is 2024 plus the lowest common multiple (LCM) of 13 and 17. This unit finds the LCM, and the highest common factor (HCF), of expressions with letters, so that one answer holds for every number at once. In Back to the cicadas you will see why these two meet so rarely.

Try it

When do two cycles meet?

Each tick is a year when that brood comes out; the green lines are the years when both do. Set the two cycles to 13 and 17, then to 12 and 18.

every 13 yearsevery 17 yearstogether: 22452024206421042144218422242264
HCF
1
LCM
221 years
Together again
2245

13 and 17 share no factor (HCF 1), so the first year in both lists is 13 × 17 = 221 years on: next in 2245.

10.0 Review

You met the HCF and LCM of numbers in earlier grades. Take 12 and 18, and write each as a product of primes:
12=2×2×318=2×3×3 \begin{aligned} 12 &= 2 \times 2 \times 3 \\ 18 &= 2 \times 3 \times 3 \end{aligned}

  • The HCF takes what both have: one 2 and one 3. HCF = 2 × 3 = 6, the biggest number that divides both.
  • The LCM takes everything either has, each prime as many times as it appears in the one that has it most: two 2s (from 12) and two 3s (from 18). LCM = 2 × 2 × 3 × 3 = 36, the smallest number both divide.

Notice 6 × 36 = 216 = 12 × 18. That is no accident, and it comes back in 10.2.

Letters work the same way, with each letter’s power counting how many times it is multiplied. 6x2y=2×3×x×x×y 6x^2y = 2 \times 3 \times x \times x \times y and 9xy3=3×3×x×y×y×y 9xy^3 = 3 \times 3 \times x \times y \times y \times y . Both have one 3, one x and one y: HCF = 3xy. Everything, each the most times: LCM =2×32×x2×y3=18x2y3 = 2 \times 3^2 \times x^2 \times y^3 = 18x^2y^3 . So for a letter, the HCF takes its lowest power and the LCM its highest.

Expressions with more than one term have to be factorized first (Unit 9). Then their factors play the part of the primes.

What is the HCF of 8a3b2 8a^3b^2 and 12a2b4 12a^2b^4 ?

Pick an answer to see why.

10.1 Highest Common Factor

To find a common factor, every expression has to be broken into its factors first. The usual order:

  1. Take out any common factor of the terms (a number, a letter).
  2. Look for a formula the rest fits: a2−b2 a^2 - b^2 , a3±b3 a^3 \pm b^3 , a4+a2b2+b4 a^4 + a^2b^2 + b^4 , a perfect square, or a middle term to split.
  3. Factorize it, and keep going until no bracket splits any further.

The product of the common factors of the given expressions is called their highest common factor (HCF). If a factor appears more than once in each, it goes in the HCF as many times as it appears in the one that has it fewest times.

Why “highest”? Any common factor divides both expressions, and the HCF is the one of highest degree (the biggest power of the letter): 1 and x − 2 both divide x2−4 x^2 - 4 and x3−8 x^3 - 8 , but x − 2 has degree 1 and the number 1 has degree 0. For numbers, “highest” means largest; for expressions, it means highest degree.

Try it: tap a factor of A that B also has.

Try it

Which factors are in both?

A factor both expressions have moves into the middle, once. When nothing else is shared, read the HCF and LCM off the picture.

A = x² − 4B = x³ − 8(x + 2)(x − 2)(x − 2)(x² + 2x + 4)
Expressions

Tap a factor of A = x² − 4 that is also a factor of B = x³ − 8.

What is the HCF of (x+2)2 (x + 2)^2 and x2−4 x^2 - 4 ?

Pick an answer to see why.

Exercise 10.1

Question 1

a.

What is meant by the HCF of algebraic expressions?

Answer
b.

When is the HCF of algebraic expressions 1?

Answer
c.

What is the product of the common factors of 4x3y 4x^3y and 3z3 3z^3 ?

Answer

Question 2

Find the HCF.

a.

(x+y)2 (x + y)^2 and (x + y)(x − y)

Answer
b.

(x−y)(x2+xy+y2) (x - y)(x^2 + xy + y^2) and (x2+xy+y2)(x2−xy+y2) (x^2 + xy + y^2)(x^2 - xy + y^2)

Answer
c.

(2x−3y)(4x2+6xy+9y2) (2x - 3y)(4x^2 + 6xy + 9y^2) and 4xy(2x − 3y)(2x + 3y)

Answer
d.

4a3b(a−b)(a+b−1) 4a^3b(a - b)(a + b - 1) and 16a2b2(a+2b)(a+b−1) 16a^2b^2(a + 2b)(a + b - 1)

Answer

Question 3

Find the HCF.

a.

a2−ab a^2 - ab and a3b−a2b2 a^3b - a^2b^2

Answer
b.

3x2+9x 3x^2 + 9x and 7x + 21

Answer
c.

a3+1 a^3 + 1 and a4+a2+1 a^4 + a^2 + 1

Answer
d.

8x3+27y3 8x^3 + 27y^3 and 16x4+36x2y2+81y4 16x^4 + 36x^2y^2 + 81y^4

Answer
e.

m3+1+2m2+2m m^3 + 1 + 2m^2 + 2m and m3−1 m^3 - 1

Answer
f.

8(6x4−x3−2x2) 8(6x^4 - x^3 - 2x^2) and 12(2x6+3x5+x4) 12(2x^6 + 3x^5 + x^4)

Answer
g.

a2+4ab+4b2−c2 a^2 + 4ab + 4b^2 - c^2 and a2−4b2+ac−2bc a^2 - 4b^2 + ac - 2bc

Answer
h.

x4+4y4 x^4 + 4y^4 and 2x3y+4xy3+4x2y2 2x^3y + 4xy^3 + 4x^2y^2

Answer
i.

x2−10x+24+6y−9y2 x^2 - 10x + 24 + 6y - 9y^2 and x2+3xy−6x x^2 + 3xy - 6x

Answer
j.

(1−x2)(1−y2)+4xy (1 - x^2)(1 - y^2) + 4xy and 1−2x+y−x2y+x2 1 - 2x + y - x^2y + x^2

Hint
Answer
k.

8a3+1 8a^3 + 1 and 16a4−4a2+4a−1 16a^4 - 4a^2 + 4a - 1

Answer
l.

2a3−a2+a−2 2a^3 - a^2 + a - 2 and a3−a2+a−1 a^3 - a^2 + a - 1

Answer

Question 4

Find the HCF.

a.

a3+b3 a^3 + b^3 , a3−a2b+ab2 a^3 - a^2b + ab^2 and a4+a2b2+b4 a^4 + a^2b^2 + b^4

Answer
b.

x3+2x2+2x+1 x^3 + 2x^2 + 2x + 1 , x3−1 x^3 - 1 and x4+x2+1 x^4 + x^2 + 1

Answer
c.

x3−4x x^3 - 4x , 4x3−10x2+4x 4x^3 - 10x^2 + 4x and 3x4−8x3+4x2 3x^4 - 8x^3 + 4x^2

Answer
d.

y2+2y−8 y^2 + 2y - 8 , y2−5y+6 y^2 - 5y + 6 and y2+5y−14 y^2 + 5y - 14

Answer
e.

x2+2x+1 x^2 + 2x + 1 , x2+5x+6 x^2 + 5x + 6 and 2x2−5x+2 2x^2 - 5x + 2

Answer
f.

x2+2x−8 x^2 + 2x - 8 , x2−2x−24 x^2 - 2x - 24 and x2+5x+4 x^2 + 5x + 4

Answer
g.

x3+2x2+4x x^3 + 2x^2 + 4x , x4+4x2+16 x^4 + 4x^2 + 16 and x3−8 x^3 - 8

Answer
h.

8x3+27y3 8x^3 + 27y^3 , 16x4+36x2y2+81y4 16x^4 + 36x^2y^2 + 81y^4 and 4x3−6x2y+9xy2 4x^3 - 6x^2y + 9xy^2

Answer
i.

2x3−54 2x^3 - 54 , 24x4+18x2+162 24x^4 + 18x^2 + 162 and 2x2+6x+18 2x^2 + 6x + 18

Answer
j.

9x2−4y2−8yz−4z2 9x^2 - 4y^2 - 8yz - 4z^2 , 4z2−4y2−9x2−12xy 4z^2 - 4y^2 - 9x^2 - 12xy and 9x2+12xz+4z2−4y2 9x^2 + 12xz + 4z^2 - 4y^2

Answer
k.

2ax2+2ax−12a 2ax^2 + 2ax - 12a , 3a2x2−7a2x−6a2 3a^2x^2 - 7a^2x - 6a^2 and a3x2+4a3x−21a3 a^3x^2 + 4a^3x - 21a^3

Answer
l.

x3+64y3 x^3 + 64y^3 , x4+16x2y2+256y4 x^4 + 16x^2y^2 + 256y^4 and 4x3−16x2y+64xy2 4x^3 - 16x^2y + 64xy^2

Answer
m.

(a+b)3−3ab(a+b) (a + b)^3 - 3ab(a + b) , a4+a2b2+b4 a^4 + a^2b^2 + b^4 and a4−2a3b+a2b2−b4 a^4 - 2a^3b + a^2b^2 - b^4

Answer

Question 5

5.

The areas of three rectangular rooms are (x + 3)(x + 6), x2+8x+15 x^2 + 8x + 15 and x2+7x+12 x^2 + 7x + 12 square units. The rooms all have the same breadth. Find it.

Answer

10.2 Lowest common multiple

The product of the common factors and the remaining factors of the given expressions is called their lowest common multiple (LCM). Each factor goes in as many times as it appears in the expression that has it most often. The LCM is the expression of lowest degree that each of the given expressions divides exactly.

Why is HCF × LCM the product of the two? Look at the Venn diagram. The first expression is its own oval: the middle times its own side. The second is the middle times its side. Their product therefore has the middle twice, and each side once. The HCF is the middle once; the LCM is the middle once and both sides. So HCF × LCM also has the middle twice and each side once. For two expressions:
HCF×LCM=first×second \text{HCF} \times \text{LCM} = \text{first} \times \text{second}

The LCM of (x−1)2 (x - 1)^2 and x2−1 x^2 - 1 is:

Pick an answer to see why.

When you find the LCM of three expressions, a factor that only two of them share still counts as a common factor: it goes in once (as many times as the expression with most of it has it), never once for each expression. For the HCF, a factor must be in all of them.

Back to the cicadas

13 and 17 are both prime, so they have no common factor: their HCF is 1. Then HCF × LCM = 13 × 17 gives
LCM=13×171=221 \text{LCM} = \frac{13 \times 17}{1} = 221
The two broods next come out together in 2024 + 221 = 2245.

What it means: two cycles that share no factor meet only once in the product of their lengths. Cycles of 12 and 18 years share the factor 6, so they would meet every 12 × 18 ÷ 6 = 36 years, about six times as often.

Biologists have suggested that this is one reason these cicadas keep prime cycles: a prime cycle meets a predator’s or another brood’s shorter cycle rarely. A predator that peaks every 4 years would meet a 12-year brood every 12 years, but a 13-year brood only every 4 × 13 = 52 years. (It is a hypothesis; another is that it keeps broods from mixing.)

How the exam asks it

Grade 9’s final exam is set to CDC’s specification grid for Compulsory Mathematics, Grades 9–10. There, Algebra is 15 marks in three questions. In the grid’s Grade 9 model paper, the HCF is question 9a:

Part Level Marks What it asks
a. understanding 3 the HCF of a sum or difference of cubes and an expression a4+a2b2+b4 a^4 + a^2b^2 + b^4

Its three marks are for three steps, factorizing each expression and then picking out the HCF, so write both factorizations in full even when you can see the answer. Here is one in that shape.

Exercise 10.2

Question 1

a.

Define LCM.

Answer
b.

For two expressions, how are their HCF and LCM related to the expressions?

Answer

Question 2

Find the LCM.

a.

2x(x + 2)(x − 2) and 4x2(3x+7)(x−2) 4x^2(3x + 7)(x - 2)

Answer
b.

3x2y(x−y)(x2+3xy+9y2) 3x^2y(x - y)(x^2 + 3xy + 9y^2) and 10x(x2+y2)(x+y)(x−y) 10x(x^2 + y^2)(x + y)(x - y)

Answer
c.

(2x−y)(x2+xy+y2)(x2−xy+y2) (2x - y)(x^2 + xy + y^2)(x^2 - xy + y^2) and 25xy(2x − y)

Answer
d.

8x3y2(a+b+1)(a−b+1) 8x^3y^2(a + b + 1)(a - b + 1) and 5x3y(a+b+1)(a+b+2) 5x^3y(a + b + 1)(a + b + 2)

Answer

Question 3

3.

The HCF and LCM of two expressions are (a+b)2 (a + b)^2 and 3a(a+b)2(2a+b) 3a(a + b)^2(2a + b) , and the second expression is 3a(a+b)2 3a(a + b)^2 . Find the first expression.
The textbook gives the LCM as 3a2(a+b)(2a+b) 3a^2(a + b)(2a + b) , but its numbers don’t work: an LCM always contains the HCF and each expression, and that one has (a + b) only once. With the LCM 3a(a+b)2(2a+b) 3a(a + b)^2(2a + b) they fit.

Answer

Question 4

4.

Two expressions are (x + 5) and (x+5)(x2−5x+25) (x + 5)(x^2 - 5x + 25) , and their HCF is (x + 5). Find their LCM.

Answer

Question 5

Find the LCM.

a.

x2−x+1 x^2 - x + 1 and x4+x x^4 + x

Answer
b.

4x + 16 and 5x + 20

Answer
c.

3x + 27 and 8x3+72x2 8x^3 + 72x^2

Answer
d.

(x−y)3 (x - y)^3 and x3−y3 x^3 - y^3

Answer
e.

(a+b)3 (a + b)^3 and a3+b3 a^3 + b^3

Answer
f.

x4+4 x^4 + 4 and 2x3−4x2+4x 2x^3 - 4x^2 + 4x

Answer
g.

a4+a2+1 a^4 + a^2 + 1 and a2−a+1 a^2 - a + 1

Answer
h.

x4+x2y2+y4 x^4 + x^2y^2 + y^4 and x3−y3 x^3 - y^3

Answer
i.

1+4p+4p2−16p4 1 + 4p + 4p^2 - 16p^4 and 1+2p−8p3−16p4 1 + 2p - 8p^3 - 16p^4

Answer
j.

x3+x2+x+1 x^3 + x^2 + x + 1 and x3−x2+x−1 x^3 - x^2 + x - 1

Answer
k.

y4+(2b2−a2)y2+b4 y^4 + (2b^2 - a^2)y^2 + b^4 and y3−ay2+b2y y^3 - ay^2 + b^2y

Answer
l.

x4y4+y4x4+1 \dfrac{x^4}{y^4} + \dfrac{y^4}{x^4} + 1 and x3y3+y3x3 \dfrac{x^3}{y^3} + \dfrac{y^3}{x^3}

Hint
Answer

Question 6

Find the LCM.

a.

x3+1 x^3 + 1 , x4−x3+x2 x^4 - x^3 + x^2 and x3−x2+x x^3 - x^2 + x

Answer
b.

a3+1 a^3 + 1 , a4+a2+1 a^4 + a^2 + 1 and a2+a+1 a^2 + a + 1

Answer
c.

x2−3x+2 x^2 - 3x + 2 , x2−5x+6 x^2 - 5x + 6 and x2−8x+12 x^2 - 8x + 12

Answer
d.

2x3+16 2x^3 + 16 , x2+4x+4 x^2 + 4x + 4 and x2+3x+2 x^2 + 3x + 2

Answer
e.

x6−1 x^6 - 1 , x3−1 x^3 - 1 and x4+x2+1 x^4 + x^2 + 1

Answer
f.

x6−16x4 x^6 - 16x^4 , x5+6x4+8x3 x^5 + 6x^4 + 8x^3 and x4+8x3+16x2 x^4 + 8x^3 + 16x^2

Answer
g.

x4+8x2+144 x^4 + 8x^2 + 144 , x3+x(x+12)+3x2 x^3 + x(x + 12) + 3x^2 and x3+12x+4x2 x^3 + 12x + 4x^2

Answer
h.

x4−8x2+196 x^4 - 8x^2 + 196 , x3+x(x+14)+5x2 x^3 + x(x + 14) + 5x^2 and 2x2+12x+28 2x^2 + 12x + 28

Answer
i.

x4+10x2+169 x^4 + 10x^2 + 169 , x3+4x2+13x x^3 + 4x^2 + 13x and x3+x(x+13)+3x2 x^3 + x(x + 13) + 3x^2

Answer
j.

(y+3)2−9y−27 (y + 3)^2 - 9y - 27 , y3−2y2−15y y^3 - 2y^2 - 15y and y5−13y3+36y y^5 - 13y^3 + 36y

Answer

Question 7

Find the LCM.

a.

m2−10m+24+6n−9n2 m^2 - 10m + 24 + 6n - 9n^2 , m2+6mn+9n2−36 m^2 + 6mn + 9n^2 - 36 and m2+3mn−6m m^2 + 3mn - 6m

Answer
b.

x4−8x2−33−14y−y2 x^4 - 8x^2 - 33 - 14y - y^2 , x4+2x2y−9+y2 x^4 + 2x^2y - 9 + y^2 and x3+xy+3x x^3 + xy + 3x

Answer
c.

a4+b2(2a2−1)+b4 a^4 + b^2(2a^2 - 1) + b^4 , a3−b(a+1)(a−b)−b3 a^3 - b(a + 1)(a - b) - b^3 and a3−b(a−1)(a−b)−b3 a^3 - b(a - 1)(a - b) - b^3

Hint
Answer
Where these facts come from
  • The cicadas (the opening, Back to the cicadas, the photo’s caption): Wikipedia, “Periodical cicadas” (13- and 17-year cycles; Broods XIII and XIX expected to emerge together in 2024, the first time since 1803, overlapping in central Illinois; the next such emergence in 2245; the hypotheses that prime cycles help avoid predators or keep broods from mixing; the nymphs’ years underground), read November 2026.
  • The photo of the cicada: Wikimedia Commons (CC BY-SA 3.0), credited under the picture.
  • How a computer finds an HCF (10.1, the fact): Wikipedia, “Polynomial greatest common divisor” (computed like the integer HCF by Euclid’s algorithm; factorizing is usually harder; computer algebra systems use HCFs to simplify fractions), read November 2026.
  • The 2,520 fact, the predator cycles and every answer: worked out here; every HCF and LCM checked with a computer algebra program (SymPy).
  • The exam’s question (For the exam, How the exam asks it): CDC, Specification Grid, Compulsory Mathematics, Grades 9–10 (Algebra 15 marks in three questions), and its Grade 9 model question 9a (the HCF of x3+27 x^3 + 27 and x4+9x2+81 x^4 + 9x^2 + 81 , 3 marks, understanding); our question is our own.

A companion to your textbook, not a replacement for it: study from the book your school uses, and where the two differ, follow your teacher. Found a mistake? Please tell us.