Mathematics · Grade 6 · Lesson 5
The greatest common divisor
One measure for two ribbons
Two ribbons are 12 cm and 18 cm long. We want equal pieces and must use both ribbons completely. A 3 cm piece works: the first ribbon makes four pieces and the second makes six. A 5 cm piece leaves short ends. What must be equal is the length of each piece, not necessarily the number of pieces from each ribbon.
Both ribbons use the same centimetre scale. Blue and coral rectangles represent complete pieces; yellow represents a remainder. Change the measure and compare the result. This is an exact cutting model: we ignore the width of a cut and material used in knots. All selected lengths are whole numbers of centimetres.
A divisor sets the size of a part
Three is a divisor of twelve because twelve divides by three exactly. For the ribbon, this means four equal pieces of 3 cm each. Four also divides twelve, producing three pieces of 4 cm each. A divisor may represent a part size or a number of parts; the question decides which meaning applies.
Here we use positive integers: 1, 2, 3 and so on. Zero cannot be a measure length and is not a divisor in this lesson. Units also matter. We can compare 12 centimetres with 18 centimetres directly, but lengths in centimetres and metres must first be converted to a common unit.
List every divisor
We can list the divisors of a small number by testing possibilities. For twelve, factor pairs help: 1 and 12, 2 and 6, 3 and 4. Each pair multiplies to twelve. Write the numbers in increasing order and keep each distinct divisor only once.
A square number can have a pair with equal entries: 36 = 6 × 6. Six still appears only once in the list of distinct divisors. Listing works well for small numbers. For larger numbers we will use prime factorisation, the method introduced in the previous lesson.
Works for both numbers
A common divisor divides both numbers exactly. For twelve and eighteen, the common divisors are 1, 2, 3 and 6. Six works in both equations: 12 = 6 × 2 and 18 = 6 × 3. Four divides twelve but not eighteen, so it is not a common divisor of this pair.
The diagram shows every distinct divisor of each selected number. Reveal the shared values with the button. A number appearing in one row is not enough: it must work for both rows. One divides every positive integer, so any two positive integers always have at least one common divisor.
Every common divisor of two numbers is a divisor of their gcd. Once the gcd is known, its divisors recover the entire shared list. Why? The prime factorisation of any common divisor uses only primes available in both original numbers, with no more copies than either number provides. All those copies are already present in the gcd. Conversely, every divisor of the gcd divides both original numbers. The two lists therefore agree completely, not just at a few selected values.
The greatest common divisor is the largest positive integer dividing both original numbers exactly. We write gcd(12, 18) = 6. Every word matters: divisor means no remainder; common means both numbers; greatest means larger than every other common divisor.
For ribbons, the gcd gives the greatest equal piece length in the chosen unit. The 12 cm and 18 cm ribbons make two and three pieces of 6 cm each. A 3 cm length also works, but it is smaller. A full explanation shows both that six works and that no larger common divisor works.
The answer lies between one and the smaller input, including both endpoints. A gcd cannot exceed the smaller number, because it must divide that number too. Swapping the inputs leaves the answer unchanged: the requirements remain the same. These are useful checks before detailed calculation. An answer larger than either input, or one that changes when the inputs are swapped, signals a mistake. Merely falling inside the possible interval is not enough; the result still needs justification.
Build matching packs
Suppose there are twelve blue items and eighteen coral items. We want matching packs and must use everything. Three packs contain four blue and six coral items each. Six packs contain two blue and three coral items each. Both choices work.
The number of packs must divide both stock counts. The gcd answers the question about the greatest possible number of matching packs. It is not the number of items inside one pack. When a division has a remainder, the diagram reports unused items separately from the contents inside boxes.
Pack count and pack contents
In 12 ÷ 6 = 2, six is the number of packs and two is the blue count per pack. In 18 ÷ 6 = 3, the same six refers to the same set of packs; three is the coral count per pack. Matching contents do not require equal counts of different item types within a pack.
With fixed stocks, making more equal packs means fewer items of each type per pack. This is a useful sense check. After solving, multiply the pack count by each per-pack item count. Those products must recover the original stocks exactly, with nothing missing or left over.
Example: gifts for a celebration
Use all eighteen blue and twenty-four coral items. Their common divisors are 1, 2, 3 and 6. The greatest is six, so at most six matching packs can be made without leftovers. Each receives 18 ÷ 6 = 3 blue items and 24 ÷ 6 = 4 coral items.
Check: six groups of three recover eighteen, and six groups of four recover twenty-four. Each pack contains seven items altogether. Seven does not answer the question about pack count; it describes a different quantity. Four matching packs cannot use everything because eighteen does not divide by four exactly.
Tiles without cutting
A rectangular floor can be covered with equal squares without gaps or cutting if the square side fits a whole number of times along both dimensions. In this model rows run parallel to the floor edges, and both dimensions use the same unit.
The largest suitable whole-number tile side is the gcd of the length and width. Horizontal and vertical scales agree, so a tile remains square for every choice. Yellow strips show floor area that cannot be covered with whole tiles of the selected size. The remaining area has not vanished; it makes the unsuitable choice visible.
A tile size is a length
A square tile with side 6 cm has area 6 × 6 = 36 cm². The gcd of the floor dimensions gives a tile side length, not an area. The answer six therefore needs the unit centimetre. The total tile count is a separate result.
First divide each floor dimension by the tile side. This gives the number of tiles in a row and the number of rows. Multiply those counts to obtain the total number of tiles. This connects drawing and calculation and separates three different quantities: length, area and item count.
Match the prime factors
For large numbers, divisor lists can be long. Factor both numbers into primes. Seventy-two is 2 × 2 × 2 × 3 × 3, while one hundred and twenty is 2 × 2 × 2 × 3 × 5. Match three copies of two and one copy of three, giving 2 × 2 × 2 × 3 = 24.
A matched pair contributes one shared factor, not the product of both displayed copies. The link means they match. Click a pair or drag it into the lower tray. The gcd uses every shared copy. Selecting fewer pairs still gives a common divisor, but usually a smaller one.
Keep repeated factors
Twenty-four contains three copies of two and one of three: 24 = 2 × 2 × 2 × 3. Thirty-six contains two twos and two threes: 36 = 2 × 2 × 3 × 3. Match two twos and one three, so the gcd is 2 × 2 × 3 = 12.
Using only distinct shared primes gives 2 × 3 = 6. Six is a common divisor, but not the greatest. Taking all twos from the first number goes too far: eight does not divide thirty-six. Every chosen copy needs its own matching copy in the second row.
With powers, use the smaller exponent
Powers abbreviate repeated multiplication. For a prime occurring in both factorisations, use as many copies as the shorter group provides. Both numbers contain three twos, so include 2³. They contain two threes and one three respectively, so include only 3¹.
A prime missing from either factorisation does not enter the gcd. Five occurs in one hundred and twenty but not in seventy-two. The gcd is therefore 2³ × 3 = 24. The smaller-exponent rule compares powers with the same prime base; it does not compare unrelated bases such as two and three.
Example: an 18 × 24 cm floor
The model floor measures eighteen by twenty-four centimetres. Use equal square tiles with a whole-number side in centimetres, no gaps or cutting, and rows along the edges. Since gcd(18, 24) = 6, the largest tile side is 6 cm. The two directions hold 18 ÷ 6 = 3 and 24 ÷ 6 = 4 tiles.
The total is 3 × 4 = 12 tiles. An area check gives 18 × 24 = 432 cm² for the floor and 6 × 6 = 36 cm² per tile; twelve tiles also have area 432 cm². Equal total area alone does not prove a tiling works: a whole number of tiles must fit along each edge.
When one is the only common divisor
Eight and fifteen have only one common divisor: one. Their gcd is one, so the numbers are called coprime. This describes a relationship between two numbers. It says something about their shared divisors, not whether each number is prime.
Choose an answer in the diagram and compare it with the explanation. A wrong answer can be changed immediately. Here the gcd cannot be zero, because the original numbers are positive integers and both are always divisible by one. Coprimality does not depend on the order in which the two numbers are written.
Coprime does not mean individually prime
Eight has divisors 1, 2, 4 and 8; fifteen has 1, 3, 5 and 15. Each is composite because it has more than two distinct divisors. Nevertheless their only shared divisor is one. A prime number and a pair of coprime numbers are different ideas.
Two distinct primes are always coprime. Apart from one, each has only itself as a divisor, and those primes are different. The word distinct matters: gcd(7, 7) is seven, not one. Consecutive positive integers are always coprime too: a common divisor must divide their difference, which is one.
When one number divides the other
If the smaller number divides the larger one exactly, the answer is immediate. The smaller number is already a common divisor. No common divisor can be larger, because a positive divisor never exceeds the number it divides. For example, gcd(8, 24) = 8.
Two identical numbers have that same number as their gcd: gcd(9, 9) = 9. One and any positive integer have gcd one, because one has just one positive divisor. In particular, gcd(1, 1) = 1. These special cases help both understanding and quick checks of a calculation.
One divisor for three numbers
We can find a gcd for three positive integers too. The chosen divisor must work for every original number. The common divisors of twelve, eighteen and thirty are 1, 2, 3 and 6, so their gcd is six. It may describe the greatest number of matching packs made from three item types.
First find the gcd of two numbers, then find the gcd of that result and the third number. Thus gcd(12, 18, 30) = gcd(6, 30) = 6. In prime factorisation, keep only copies present in all three factorisations, using the smallest number of repetitions.
Remove whole squares and inspect the remainder
Another method finds a gcd without prime factorisation. Divide the larger number by the smaller with a remainder. Replace the original pair with the smaller number and that remainder. Continue until the remainder is zero. The last divisor used in an exact division is the gcd. This is Euclid’s algorithm.
Each step in the drawing removes whole squares. Square sides differ between steps: this is not the equal-tile covering from the earlier model. Click the yellow remainder or the step button. Every removed square retains its length and area, and the original rectangle keeps its dimensions throughout.
Why the remainder preserves the gcd
For example, 24 = 18 × 1 + 6. Any number dividing both twenty-four and eighteen also divides their difference six. Conversely, a number dividing eighteen and six divides their sum twenty-four. The two pairs therefore have exactly the same common divisors.
The next step is 18 = 6 × 3 + 0. Six divides eighteen exactly, so the gcd is six. Zero marks the end of the algorithm; it does not become a divisor. With positive integer inputs, the positive remainders strictly decrease, so the process must eventually stop.
Agree on units first
For ribbons of 1.2 m and 180 cm, do not apply the positive-integer gcd rule directly to 1.2 and 180. Convert both lengths to centimetres: 120 cm and 180 cm. Their gcd is sixty, so the greatest equal piece length is 60 cm, or 0.6 m.
In millimetres the inputs become 1200 and 1800, with gcd 600 mm. The numerical value changes, but the physical length stays the same. For packs, the unit is a count rather than a length. Always state what the calculated gcd represents in the situation.
Multiplying both positive-integer inputs by the same positive integer multiplies their gcd by that integer too. Prime factorisation explains why: the entire extra factor is added to both factorisations. For lengths, this can represent a unit conversion or scaling both ribbons. Changing only one input is different. It creates a new pair, whose gcd may change in another way. Check that a shared conversion or scale change has really been applied to both original values.
Working does not mean greatest
A common mistake is to find any shared divisor and stop. A gcd answer must establish that there is no larger shared divisor. Another mistake is to choose the largest divisor of only one number. Eighteen does not divide twelve, so it cannot be the gcd of twelve and eighteen.
For three numbers, check all three. For example, gcd(6, 10, 15) = 1, although each pair has a shared divisor greater than one: respectively two, three and five. A triple with overall gcd one does not imply that every pair in the triple is coprime.
Explore the idea in space
One mathematical idea can have several physical models. Ribbons show a shared length measure. Matching packs show a common divisor as a group count. Square tiles connect a common divisor to both dimensions of a rectangle.
Keep their meanings separate. For ribbons, the gcd is a piece length; for packs, a number of packs; for tiles, a square side. Separate places are reserved for future 3D scenes.
Watch the packing process step by step
Follow three things: the number of boxes, the contents of each, and any leftovers. If the box count is a common divisor of both stocks, all items are distributed equally without a remainder.
Until the video is connected, explore the same reasoning in the packing model. Choose three and then six packs for stocks of twelve and eighteen. Compare their contents and recover the original stocks by multiplication. The definition remains available throughout; media is not required for understanding.
Where the gcd helps
Find a gcd by listing divisors and choosing the greatest shared one, or by prime factorisation and taking every shared copy. Euclid’s remainder method offers another route. These methods seek the same greatest common divisor, so they lead to the same answer.
Before calculating, identify what the situation asks you to do. Afterwards, explain the result and check it against the original numbers. The next lesson introduces the least common multiple. It answers a different question: the first common quantity or a shared point of repetition.
Notes for the teacher
The central goal is to connect the gcd definition to a meaningful operation with objects. Do not begin with mechanical exponent selection. Compare several measure lengths for two ribbons, then find all common divisors of a small pair. Ask the learner to explain each word: greatest, common and divisor.
Changing models checks understanding. Ribbons and tiles ask for a greatest length, while packs ask for a greatest group count. Explain the difference in words rather than adding a long worksheet of repetitive calculations. The two worked examples provide the main route. Euclid’s algorithm is an optional extension.
Discuss one, equal inputs, one number dividing the other, and composite coprime numbers. Two primes must be distinct to guarantee coprimality. In the triple 6, 10, 15, the overall gcd is one but the pairs are not coprime. Ribbon and tile diagrams use exact scales; artistic illustrations do not replace numerical diagrams.