Back to homeMathematics · Secondary Year 2 · Change subject
Start for free
Secondary 2 · Mathematics
Numbers · Natural numbers

Greatest Common Divisor

Before you start, make sure you know: Prime numbers and prime factorization (Secondary Year 1)
Before you start, make sure you know: Multiples, divisors, and divisibility rules (Secondary Year 1)

At a camp in the mountains there are two climbing ropes: one is $20$ meters long and the other is $28$ meters long. They want to cut them into equal pieces, as long as possible, with nothing left over. How long should each piece be? That question is solved by the greatest common divisor (GCD).

What the GCD is

Venn diagram with the divisors of 24 and 36; the common divisors are in the center and the greatest is 12, the GCD. 8, 24 9, 18, 36 1, 2, 3, 4, 6, 12 GCD = 12 (the greatest common one)
Practice★☆☆Not started
Look at the factors of the numbers $24$ and $36$: $Div(24) = \{1, 2, 3, 4, 6, 8, 12, 24\}$ $Div(36) = \{1, 2, 3, 4, 6, 9, 12, 18, 36\}$ From these lists: a) Write down…

Look at the factors of the numbers $24$ and $36$:

  • $Div(24) = \{1, 2, 3, 4, 6, 8, 12, 24\}$

  • $Div(36) = \{1, 2, 3, 4, 6, 9, 12, 18, 36\}$

From these lists:

  1. a) Write down the common factors of both numbers.
  2. b) Identify the highest of these common factors. What do we call this number?
Solve
Practice★☆☆Not started
Two numbers are called co-prime if their only common factor is $1$. Check whether the following pairs of numbers are co-prime by calculating their highest common factor:…

Two numbers are called co-prime if their only common factor is $1$. Check whether the following pairs of numbers are co-prime by calculating their highest common factor:

  1. a) $8$ and $15$
  2. b) $14$ and $21$
  3. c) $9$ and $20$
Solve
Practice★☆☆Not started
In an 8th grade class, there are $24$ male students and $16$ female students. The PE teacher wants to form equal-sized teams, as large as possible, so that each team…

In an 8th grade class, there are $24$ male students and $16$ female students. The PE teacher wants to form equal-sized teams, as large as possible, so that each team contains only boys or only girls.

  1. a) How many students will there be in each team?
  2. b) How many boys' teams and how many girls' teams will be formed?
Solve

Calculating the GCD by prime factorization

Listing divisors works with small numbers. For large numbers: factor each number into primes and take only the common factors, with the smallest exponent.

Calculation of the GCD of 12 and 18 by taking the common prime factors with the smallest exponent. 12 = 2² · 3 18 = 2 · 3² GCD = 2 · 3 = 6 only factors common to all, with the smallest exponent
Practice★☆☆Not started
Calculate the greatest common divisor (g.c.d.) of the following numbers using the prime factorization method (remember: you take the common factors raised to the lowest…

Calculate the greatest common divisor (g.c.d.) of the following numbers using the prime factorization method (remember: you take the common factors raised to the lowest exponent):

  1. a) $12$ and $18$
  2. b) $20$ and $30$
  3. c) $15$ and $25$
Solve
Practice★★☆Not started
Find the Highest Common Factor of the following groups of numbers using prime factorisation: a) $m.c.d.(120, 150)$ b) $m.c.d.(72, 108, 144)$ c) $m.c.d.(45, 60, 105)$…

Find the Highest Common Factor of the following groups of numbers using prime factorisation:

  1. a) $m.c.d.(120, 150)$
  2. b) $m.c.d.(72, 108, 144)$
  3. c) $m.c.d.(45, 60, 105)$

Remember to first express each number as a product of its prime factors and then select the common factors raised to the lowest power.

Solve

The Euclidean algorithm

Another method, without factoring: successive divisions. Divide the larger number by the smaller; if the remainder is not zero, divide the divisor by the remainder, and so on until the remainder is $0$. The last divisor is the GCD. It works because each step preserves the common divisors of the pair.

Practice★★☆Not started
The Euclidean algorithm is an ancient and effective method for finding the $m.c.d.$ of two numbers using successive division. It consists of dividing the larger number…

The Euclidean algorithm is an ancient and effective method for finding the $m.c.d.$ of two numbers using successive division. It consists of dividing the larger number by the smaller one; if the remainder is not zero, the divisor is divided by the remainder, and so on until the remainder is zero. The last divisor used is the $m.c.d.$

Use this method to find the $m.c.d.(525, 225)$. Check the result by doing the usual prime factorisation afterwards.

Solve
Practice★★★Not started
Use the Euclidean algorithm to find the $m.c.d.(2\,310, 1\,485)$. Once found, state whether the numbers are coprime and justify your answer based on the divisors…

Use the Euclidean algorithm to find the $m.c.d.(2\,310, 1\,485)$. Once found, state whether the numbers are coprime and justify your answer based on the divisors obtained during the algorithm process.

Solve

Relationship between the GCD and the LCM

For two numbers, the GCD and the LCM are connected by a formula.

Check that the product of 12 and 18 equals the product of their GCD and their LCM. 12 · 18 = 216 GCD = 6 LCM = 36 6 · 36 = 216 ✓ = 12 · 18
Practice★★☆Not started
It is known that the product of two natural numbers is $2160$ and that their lowest common multiple ($m.c.m.$) is $180$. Using the relationship between the product of…

It is known that the product of two natural numbers is $2160$ and that their lowest common multiple ($m.c.m.$) is $180$. Using the relationship between the product of two numbers, their $m.c.d.$ and their $m.c.m.$, find out what the Highest Common Factor of those numbers is.

Solve

Two properties for harder problems

There are two ideas that help when the problem gives indirect information about the GCD.

Practice★★★Not started
We have two natural numbers $A$ and $B$ such that their $m.c.d.(A, B) = 15$. If we multiply the number $A$ by $12$ and the number $B$ by $12$, what will be the new…

We have two natural numbers $A$ and $B$ such that their $m.c.d.(A, B) = 15$. If we multiply the number $A$ by $12$ and the number $B$ by $12$, what will be the new highest common factor of the resulting numbers? Justify your answer by applying the properties of factors.

Solve
Practice★★★Not started
Find two natural numbers, which we will call $x$ and $y$, knowing that their product is $x \times y = 11\,250$ and that their lowest common multiple is…

Find two natural numbers, which we will call $x$ and $y$, knowing that their product is $x \times y = 11\,250$ and that their lowest common multiple is $m.c.m.(x, y) = 750$.

Solve
Practice★★★Not started
Determine all pairs of natural numbers whose sum is $168$ and whose highest common factor is $m.c.d.(a, b) = 24$. Help: If the HCF is 24, you can write the numbers as…

Determine all pairs of natural numbers whose sum is $168$ and whose highest common factor is $m.c.d.(a, b) = 24$.

Help: If the HCF is 24, you can write the numbers as $a = 24 \times p$ and $b = 24 \times q$, where $p$ and $q$ must be coprime.

Solve

Problems about sharing, cutting, and coincidences

The GCD appears when you want to share or cut into equal parts, as large as possible, with nothing left over. If the problem asks for the opposite (the smallest value where things coincide), it is the LCM.

Two ropes of 20 m and 28 m cut into equal pieces of 4 m, the GCD of 20 and 28. Rope A: 20 m Rope B: 28 m GCD(20, 28) = 4 m (5 pieces of A and 7 pieces of B)
Practice★☆☆Not started
At an adventure camp in the Sierra Madre, the instructors have two climbing ropes: one measures $20$ meters and the other $28$ meters. They want to cut them into equal…

At an adventure camp in the Sierra Madre, the instructors have two climbing ropes: one measures $20$ meters and the other $28$ meters. They want to cut them into equal pieces of the maximum possible length, with no rope left over. How long should each piece be?

20 m 28 m ? m Max piece
Solve
Practice★☆☆Not started
We want to decorate a wall in the music room measuring $120$ cm high by $180$ cm wide using square pieces of card. If we want the pieces of card to be as large as…

We want to decorate a wall in the music room measuring $120$ cm high by $180$ cm wide using square pieces of card. If we want the pieces of card to be as large as possible and cover the wall exactly without having to cut them:

  1. a) What length should each side of the pieces of card be?
  2. b) How many pieces of card will we need in total?
180 cm 120 cm x x
Solve
Practice★★☆Not started
For the school sports day tournament, $48$ 1st ESO students and $60$ 2nd ESO students have signed up. Teams are to be formed with the same number of people, without…

For the school sports day tournament, $48$ 1st ESO students and $60$ 2nd ESO students have signed up. Teams are to be formed with the same number of people, without mixing students from different year groups, making the teams as large as possible.

  1. a) How many students will there be in each team?
  2. b) How many 1st ESO teams will there be in total? And 2nd ESO?
Solve
Practice★★☆Not started
A food bank has received $210$ tins of tuna, $126$ packets of rice and $84$ jars of pulses. They want to prepare the maximum possible number of identical aid boxes…

A food bank has received $210$ tins of tuna, $126$ packets of rice and $84$ jars of pulses. They want to prepare the maximum possible number of identical aid boxes containing all three types of food, with nothing left over.

  1. a) How many aid boxes will they be able to prepare?
  2. b) How many items of each type will there be in each box?
Solve
Practice★★★Not started
A logistics company wants to transport three types of goods in identical cubic containers, as large as possible, to make the most of the space in a large cargo…

A logistics company wants to transport three types of goods in identical cubic containers, as large as possible, to make the most of the space in a large cargo warehouse. The quantities of goods are measured by volume:

  • Technology boxes: $1\,512$ $m^3$

  • Food boxes: $1\,848$ $m^3$

  • Textile boxes: $1\,260$ $m^3$

If each container must be filled with a single type of good and no space can be left over in any of them, what must the volume of each cubic container be? How many textile containers will there be in the warehouse?

Technology V₁ = 1512 m³ Food V₂ = 1848 m³ Textiles V₃ = 1260 m³ HCF V = l³ l l l
Solve
Practice★★★Not started
A marine wildlife rescue center has received a donation of three heavy-duty hoses to clean the tanks. The lengths of the hoses are $156$ meters, $144$ meters and $108$…

A marine wildlife rescue center has received a donation of three heavy-duty hoses to clean the tanks. The lengths of the hoses are $156$ meters, $144$ meters and $108$ meters.

They want to cut them into pieces of equal length, with nothing left over, to distribute them among different volunteer teams. The head of the center sets the condition that the pieces must be as long as possible, but for safety reasons, no piece can measure more than $15$ meters.

What length should each piece be to meet all conditions? How many volunteers will receive a hose?

Solve

Back to the beginning: $20 = 2^2 \times 5$ and $28 = 2^2 \times 7$; the GCD is $2^2 = 4$ m. Each piece is $4$ m long: $5$ from the first rope and $7$ from the second.

Summary

See all the exercises in this section