Sup­pose you have 2424 pen­cils and 3636 erasers and want to make iden­ti­cal gift packs with noth­ing left over. The largest num­ber of packs you can make is the High­est Com­mon Fac­tor of 2424 and 3636. The same idea helps you sim­plify frac­tions, cut rib­bons into equal lengths and tile a floor with the largest square tiles. This les­son shows three ways to find it and explains why each one works.

Fac­tors and com­mon fac­tors

A fac­tor of a num­ber goes into it exactly. It leaves noth­ing over. You have made lists of them already. The fac­tors of 66 are 1,2,31, 2, 3 and 66. The fac­tors of 1212 are 1,2,3,4,61, 2, 3, 4, 6 and 1212.

Put two lists side by side. Some num­bers turn up in both. Those are the com­mon fac­tors. This les­son is about the biggest one. It shows three ways to find it. Two of them skip the lists.

What the H.C.F is

Def­i­n­i­tion. Take two or more num­bers. Find the fac­tors they share. The biggest one is called the High­est Com­mon Fac­tor (H.C.F). It is also called the Great­est Com­mon Divi­sor (G.C.D).

The two names mean the same thing. A fac­tor is also called a divi­sor. So the names are two labels for one idea. You will meet both. Use the one you are asked for.

Two things are true before you work any­thing out. Every num­ber has 11 as a fac­tor. So 11 is a com­mon fac­tor of any set. That means there is always an answer.

No fac­tor of a num­ber is big­ger than the num­ber. So the H.C.F is never big­ger than the small­est num­ber you were given. The answer sits between 11 and that small­est num­ber.

Exam­ple 1: the H.C.F of 6 and 8

1st method (By writ­ing all fac­tors)

Write out every fac­tor of each num­ber.

Num­berAll its fac­tors
661,2,3,61, 2, 3, 6
881,2,4,81, 2, 4, 8

Now read the two lists together. 11 is in both. 22 is in both. 33 is in the first list only. 44 and 88 are in the sec­ond list only. So the com­mon fac­tors are 11 and 22. The big­ger one is 22. The H.C.F of 66 and 88 is 22.

A Venn dia­gram shows the same read­ing at a glance. Each cir­cle holds the fac­tors of one num­ber, and the over­lap holds the fac­tors they share.

Venn diagram with factors of 6 on the left (3, 6), factors of 8 on the right (4, 8) and the common factors 1 and 2 in the overlap; H.C.F equals 2.
The over­lap holds the com­mon fac­tors of 66 and 88; the largest is 22.

This method just does what H.C.F means. You write out the fac­tors. You pick the ones both num­bers share. You take the biggest of those. Noth­ing is hid­den in it. That is why it is worth learn­ing first. Its weak point is the work. A num­ber like 8484 has twelve fac­tors. Writ­ing all twelve with­out miss­ing one takes care. The next two ways need less writ­ing.

2nd method (Prime fac­tor­iza­tion method)

To prime fac­torise a num­ber is to write it as primes mul­ti­plied together. The work­ing below does that for 66 and for 88. Here are the steps the acad­emy gives, said in shorter sen­tences. First prime fac­torise the given num­bers. Then take out the com­mon fac­tors and mul­ti­ply them. That gives you the H.C.F of the given num­bers.

H.C.F of 6 and 8

6=2×38=2×2×2H.C.F=2\begin{aligned}6 &= 2 \times 3 \\ 8 &= 2 \times 2 \times 2 \\ \text{H.C.F} &= 2\end{aligned}

Count what each num­ber can spare. 66 holds one 22 and one 33. 88 holds three 22s and no 33. The 33 can­not be used. 88 has none to give. The 22 can be used once. 66 has only one to give. What is left is a sin­gle 22.

Here is why that count­ing works. A com­pos­ite num­ber is one you can build by mul­ti­ply­ing smaller num­bers. 66 and 88 are both com­pos­ite. Every com­pos­ite num­ber breaks into primes in one way only. So any­thing that divides 66 is built from 66's own primes. That means a 22, or a 33, or both. Any­thing that divides 88 is built from 88's primes. Those are all 22s.

So a num­ber that divides both is built from 22s alone. But 66 has only one 22 to give. So it can use only one 22. Here is the rule that comes out of that. Look at each prime the num­bers share. Count how many of it each num­ber holds. Then take it as many times as the small­est count. Do that, and you have built the biggest com­mon fac­tor there is.

3rd method (Divi­sion method)

Two words come first. The rule below turns on them. You do this method line by line. On each line you divide by some num­ber. That num­ber is the divi­sor of the line. What is left over is the remain­der. In 8÷68 \div 6 the divi­sor is 66 and the remain­der is 22.

In the rule below, a divi­sor does not have to go in exactly. 66 is not a fac­tor of 88. It is still the divi­sor of that line. A divi­sor of this kind is just the num­ber you divided by. That is the sense the rule uses when it talks about a divi­sor.

Here are the steps the acad­emy gives, said in shorter sen­tences. Divide the greater num­ber by the smaller one. Then divide the divi­sor by the remain­der. Go on divid­ing the divi­sor of the line above by the remain­der. Stop when the remain­der is zero. The divi­sor on that last line is the H.C.F of the given num­bers. That is what the rule calls the last divi­sor.

DivideRemain­der
8÷68 \div 622
6÷26 \div 200

Read it down­wards. Eight divided by six leaves 22. So six is divided by 22 next. That leaves noth­ing. You stop there. The last divi­sor was 22. The H.C.F of 66 and 88 is 22. The other two meth­ods gave the same answer.

There is also a pic­ture behind the divi­sion method. Take a rec­tan­gle 88 units wide and 66 units tall. Cut off the largest square you can, a 66 by 66 one. What is left is a strip 22 units wide, and 22 by 22 squares fill it exactly. Squares of side 22 there­fore tile the whole rec­tan­gle, and no larger square can.

An 8 by 6 rectangle split into one 6 by 6 square and three 2 by 2 squares, beside the steps 8 divided by 6 remainder 2, then 6 divided by 2 remainder 0.
Each line of the divi­sion method cuts squares from a rec­tan­gle; the last divi­sor is the side of the tile that fits exactly.

Here is why the shrink­ing is safe. The first line says 8=6+28 = 6 + 2. Take 66 away from both sides. That gives 2=862 = 8 - 6. Now pick any num­ber that divides 88 and also divides 66. It goes into the whole 88. It goes into the 66 inside it. So it must go into the 22 that is left over.

Now go the other way. Take a num­ber that divides 66 and 22. It divides 6+2=86 + 2 = 8 as well. So the pair 88 and 66 has the same com­mon fac­tors as the pair 66 and 22.

Every line swaps the num­bers for smaller ones. The answer stays the same. In the end the remain­der reaches 00. The last divi­sor then goes into the num­ber above it exactly. That divi­sor is the H.C.F.

Remem­ber. The divi­sion method never asks you to list a fac­tor. It only asks you to divide. The num­bers get smaller at every step. Reach for it when the num­bers are large.

Exam­ple 2: the H.C.F of 24, 36 and 84

1st method (By writ­ing all fac­tors)

Three lists this time. Each one is built with the pair­ing method from Mul­ti­ples and fac­tors. They are printed in full here. You read the H.C.F straight off them.

Num­berAll its fac­tors
24241,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24
36361,2,3,4,6,9,12,18,361, 2, 3, 4, 6, 9, 12, 18, 36
84841,2,3,4,6,7,12,14,21,28,42,841, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42, 84

Two of those lists are not the same as the sheet's. That is worth say­ing plainly. The sheet leaves 66 out of the fac­tors of 2424. But 66 belongs there, as 24÷6=424 \div 6 = 4 exactly.

The sheet also prints 2626 among the fac­tors of 8484. The num­ber that belongs there is 2828. 2626 goes three times into 8484 and leaves 66 over. And 84÷28=384 \div 28 = 3 exactly.

Look for the num­bers in all three lists. 1,2,3,4,61, 2, 3, 4, 6 and 1212 are in all three. 88 is in the first list but not the sec­ond. 99 is in the sec­ond but not the first. 77 is in the third alone. So the com­mon fac­tors are 1,2,3,4,6,121, 2, 3, 4, 6, 12. The H.C.F is 1212.

Check it by divid­ing. Every divi­sion must come out exactly.

24÷12=224 \div 12 = 236÷12=336 \div 12 = 384÷12=784 \div 12 = 7

Noth­ing big­ger will do. The only fac­tor of 2424 above 1212 is 2424 itself. And 2424 does not divide 3636. It goes once into 3636 and leaves 1212 over.

2nd method (Prime fac­tor­iza­tion method)

H.C.F of 24, 36 and 84

24=2×2×2×336=2×2×3×384=2×2×3×7H.C.F=2×2×3=12\begin{aligned}24 &= 2 \times 2 \times 2 \times 3 \\ 36 &= 2 \times 2 \times 3 \times 3 \\ 84 &= 2 \times 2 \times 3 \times 7 \\ \text{H.C.F} &= 2 \times 2 \times 3 \\ &= 12\end{aligned}

Count the primes again. Start with the 22s. 2424 has three, 3636 has two and 8484 has two. The small­est count is two. So two 22s may be taken.

Now the 33s. 2424 has one, 3636 has two and 8484 has one. The small­est count is one. So one 33 may be taken. The 77 is in 8484 alone. The spare 22 in 2424 has no part­ner. Nei­ther one can be used. Mul­ti­ply what is left: 2×2×3=122 \times 2 \times 3 = 12.

3rd method (Divi­sion method)

The divi­sion method works on two num­bers at a time. So start with two of them. Take 2424 and 8484. Bring the third one in after that.

DivideRemain­der
84÷2484 \div 241212
24÷1224 \div 1200

The last divi­sor is 1212. Now con­sider 1212 and 3636.

DivideRemain­der
36÷1236 \div 1200

The remain­der is 00 at the first step. So the last divi­sor is 1212. The H.C.F of 2424, 3636 and 8484 is 1212.

Why may you work two at a time? The chain of remain­ders above shows it. Every num­ber that divides 2424 and 8484 divides 1212 as well. And the num­bers that divide 1212 are 1,2,3,4,61, 2, 3, 4, 6 and 1212. There are no oth­ers.

So you do not have to ask what all three num­bers share. You may ask what 1212 and 3636 share instead. The answer comes out the same.

Remem­ber. All three meth­ods must give the same answer. If two of them dis­agree, one of your lists is short. Go back and find what you missed.

Exam­ple 3: the H.C.F of 48 and 180

This extra exam­ple uses larger num­bers, where the divi­sion method really earns its place.

Prime fac­tor­iza­tion method

48=2×2×2×2×3180=2×2×3×3×5H.C.F=2×2×3=12\begin{aligned}48 &= 2 \times 2 \times 2 \times 2 \times 3 \\ 180 &= 2 \times 2 \times 3 \times 3 \times 5 \\ \text{H.C.F} &= 2 \times 2 \times 3 = 12\end{aligned}

4848 has four 22s and 180180 has two, so two are taken. Each has at least one 33, so one is taken. The 55 is in 180180 only.

Divi­sion method

DivideRemain­der
180÷48180 \div 483636
48÷3648 \div 361212
36÷1236 \div 1200

The last divi­sor is 1212, which agrees. Check: 48÷12=448 \div 12 = 4 and 180÷12=15180 \div 12 = 15, and 44 and 1515 share no fac­tor but 11.

Back to the gift packs from the start of the les­son: the H.C.F of 2424 and 3636 is 1212, so you can make 1212 packs, each with 22 pen­cils and 33 erasers.

When the H.C.F is 1

44 and 55 are coprimes. So are 22 and 33. Those two pairs have a sec­ond name as well. You may also call them rel­a­tively prime. Both names are taught in Per­fect num­bers, coprimes and twin primes.

Their H.C.F can only be 11. The fac­tor lists show why.

Num­berAll its fac­tors
441,2,41, 2, 4
551,51, 5

The only num­ber in both lists is 11. The divi­sion method lands in the same place.

DivideRemain­der
5÷45 \div 411
4÷14 \div 100

There is a short way to write an H.C.F. You put the num­bers in brack­ets, like this: H.C.F(4,5)=1\text{H.C.F}(4, 5) = 1. You read it aloud as "the H.C.F of 44 and 55 is 11".

Ques­tionAnswerQues­tionAnswer
H.C.F(4,5)\text{H.C.F}(4, 5)11H.C.F(2,3)\text{H.C.F}(2, 3)11

The acad­emy closes its H.C.F part in let­ters. It says aa and bb are rel­a­tively prime, or coprimes. And it says the G.C.D of (a,b)(a, b) is 11. In the short way above, that is G.C.D(a,b)=1\text{G.C.D}(a, b) = 1.

A let­ter stands for a num­ber you have not been told. Let­ters that stand for num­bers sets that out. So aa and bb are any two num­bers you pick. That one line cov­ers every coprime pair at once. The two lines above cover only 44 and 55 and 22 and 33.

An H.C.F of 11 is not a fail­ure. It is not a sign that you went wrong. It is the answer. And it tells you some­thing worth know­ing. The two num­bers share noth­ing at all.

Remem­ber. Two num­bers that are coprime — rel­a­tively prime — have an H.C.F of 11. In let­ters, G.C.D(a,b)=1\text{G.C.D}(a, b) = 1.

Your turn

Do the first two by all three meth­ods. Watch them agree. For the rest, the divi­sion method is quick­est.

From the sheet

  1. Find the H.C.F of 52 and 48
  2. Find the H.C.F of 15 and 35
  3. Find the H.C.F of 36, 48 and 52
  4. Find the H.C.F of 60, 128 and 180

Extra prac­tice, beyond the sheet

The acad­e­my's sheet does not set these. They are more ques­tions of the same kind. Use them when you want more drill. Find the H.C.F of each pair.

1) 18,2418, 244) 105,154105, 1547) 16,4016, 40
2) 45,6045, 605) 8,158, 158) 27,6327, 63
3) 72,9672, 966) 21,2221, 229) 13,3913, 39

When you have an answer, check it before you move on. Divide each of the given num­bers by it. Every divi­sion must come out exactly. Noth­ing may be left over. And if a big­ger num­ber does the same, your answer was not the high­est.

Com­mon mis­takes

  • Miss­ing a fac­tor when list­ing, as the sheet itself did with 66 for 2424. Pair the fac­tors to make sure none is lost.
  • Tak­ing the largest count of a prime instead of the small­est. That builds the L.C.M, not the H.C.F.
  • Stop­ping the divi­sion method too early, before the remain­der is 00.
  • Giv­ing the last remain­der instead of the last divi­sor. The remain­der at the end is always 00.
  • Giv­ing an answer big­ger than the small­est given num­ber. The H.C.F can never be larger than that.
  • Think­ing an H.C.F of 11 means a mis­take. Coprime num­bers have H.C.F 11.

Key terms

Fac­tor (divi­sor)
A num­ber that goes into another exactly, leav­ing noth­ing over.
Com­mon fac­tor
A fac­tor shared by two or more num­bers.
H.C.F (G.C.D)
The biggest com­mon fac­tor of the given num­bers.
Prime fac­tori­sa­tion
Writ­ing a num­ber as primes mul­ti­plied together.
Remain­der
What is left over after a divi­sion.
Coprimes (rel­a­tively prime)
Num­bers whose H.C.F is 11.

Answers

From the sheet

  1. 44. Fac­tors: 5252 has 1,2,4,13,26,521, 2, 4, 13, 26, 52; 4848 has 1,2,3,4,6,8,12,16,24,481, 2, 3, 4, 6, 8, 12, 16, 24, 48; the com­mon ones are 1,2,41, 2, 4. Primes: 52=2×2×1352 = 2 \times 2 \times 13 and 48=2×2×2×2×348 = 2 \times 2 \times 2 \times 2 \times 3, shar­ing 2×22 \times 2. Divi­sion: 52÷4852 \div 48 leaves 44, and 48÷448 \div 4 leaves 00.
  2. 55. Fac­tors: 1515 has 1,3,5,151, 3, 5, 15; 3535 has 1,5,7,351, 5, 7, 35. Primes: 15=3×515 = 3 \times 5, 35=5×735 = 5 \times 7. Divi­sion: 35÷1535 \div 15 leaves 55, and 15÷515 \div 5 leaves 00.
  3. 44. 48÷3648 \div 36 leaves 1212, 36÷1236 \div 12 leaves 00; then 52÷1252 \div 12 leaves 44, 12÷412 \div 4 leaves 00.
  4. 44. 128÷60128 \div 60 leaves 88, 60÷860 \div 8 leaves 44, 8÷48 \div 4 leaves 00; and 180÷4=45180 \div 4 = 45 exactly.

Extra prac­tice

  1. 66
  2. 1515
  3. 2424
  4. 77 (154÷105154 \div 105 leaves 4949, 105÷49105 \div 49 leaves 77, 49÷749 \div 7 leaves 00)
  5. 11, so 88 and 1515 are coprime
  6. 11, so 2121 and 2222 are coprime
  7. 88
  8. 99
  9. 1313