Once you can list the fac­tors of a num­ber and tell a prime from a com­pos­ite num­ber, you start to notice pat­terns among num­bers. Some num­bers have fac­tors that add up in a spe­cial way. Some pairs of num­bers have noth­ing in com­mon. Some primes come in close pairs. Math­e­mati­cians gave these pat­terns names, and you will meet the names again when you sim­plify frac­tions (a frac­tion is in its sim­plest form exactly when its top and bot­tom are coprimes) and when you study primes more deeply.

You already know how to list all the fac­tors of a num­ber. You know that a prime num­ber has just two fac­tors, 11 and itself. This les­son needs noth­ing new. It gives names to three things you can now spot. One is a num­ber whose fac­tors add up to twice itself. One is a pair of num­bers with noth­ing in com­mon. One is a pair of primes that stand close together. The acad­e­my's sheet gets two of the names wrong. It has Coprimers and Twin primers. The right words are coprimes and twin primes. That is how they are spelt here.

Per­fect num­bers

Add up all the divi­sors (fac­tors) of a num­ber. If the sum is twice the num­ber, it is a per­fect num­ber.

One word here does all the work: all. Every num­ber is a fac­tor of itself. That is why a fac­tor list ends with the num­ber itself. So the num­ber sits inside the sum. That is why the rule asks for twice the num­ber. It does not ask for the num­ber. Take 66. Its fac­tors are 1,2,3,61, 2, 3, 6. The 66 at the end is 66 itself. Add the rest and you get 66 again. So the sum is two sixes.

The sheet gives two per­fect num­bers, 66 and 2828. Here is the check for each, writ­ten out in full.

6

1+2+3+6=12=2×6\begin{aligned}1 + 2 + 3 + 6 &= 12 \\ &= 2 \times 6\end{aligned}

28

1+2+4+7+14+28=56=2×28\begin{aligned}1 + 2 + 4 + 7 + 14 + 28 &= 56 \\ &= 2 \times 28\end{aligned}

Now take the num­ber itself out of each sum. Look at what is left. For 66 that leaves 1+2+3=61 + 2 + 3 = 6. For 2828 it leaves 1+2+4+7+14=281 + 2 + 4 + 7 + 14 = 28. So a per­fect num­ber is as big as its other fac­tors put together. That says the same thing as the rule. It just says it the other way round.

Most num­bers fail this test. It helps to watch them fail. They miss in both direc­tions.

Num­berAll its fac­torsTheir sumTwice the num­berPer­fect?
441,2,41, 2, 47788no, the sum is too small
661,2,3,61, 2, 3, 612121212yes
881,2,4,81, 2, 4, 815151616no, the sum is too small
12121,2,3,4,6,121, 2, 3, 4, 6, 1228282424no, the sum is too big
28281,2,4,7,14,281, 2, 4, 7, 14, 2856565656yes
Bar diagram: a bar of length 6 matched by bars 1, 2 and 3 laid end to end, and a bar of length 28 matched by bars 1, 2, 4, 7 and 14.
Leave out the num­ber itself and the other fac­tors of 6 and of 28 fill exactly the same length.

Worked exam­ple: is 18 per­fect?

List the fac­tors in pairs so that none is missed: 1×181 \times 18, 2×92 \times 9, 3×63 \times 6. So the fac­tors are 1,2,3,6,9,181, 2, 3, 6, 9, 18.

1+2+3+6+9+18=392×18=36\begin{aligned}1 + 2 + 3 + 6 + 9 + 18 &= 39 \\ 2 \times 18 &= 36\end{aligned}

The sum is 3939, which is more than 3636, so 1818 is not per­fect. Per­fect num­bers are rare: after 66 and 2828 the next one is 496496, and the one after that is 81288128.

Remem­ber. A num­ber is per­fect when all its fac­tors add up to twice the num­ber. Count the num­ber itself as a fac­tor. 66 and 2828 are the two to know.

Coprimes

Two num­bers are coprimes when their only com­mon divi­sor (fac­tor) is 11. The sheet gives them a sec­ond name as well: rel­a­tively prime. It is just another name for the same thing.

So two num­bers are coprimes when only 11 goes into both. Three things are worth fix­ing in your mind. The word turns up else­where too. It is easy to hear it wrong. First, it is about a pair. No sin­gle num­ber is coprime on its own. Sec­ond, it does not say that a num­ber is prime. The table below has coprime pairs with no prime in them. Third, the two fac­tor lists give you the answer. Write out both lists. If 11 is the only num­ber in both, they are coprimes. If any other num­ber is in both, they are not.

Look at any fac­tor list you have ever writ­ten. 11 is at the front of it. Every num­ber can be divided by 11. So any two num­bers at all share 11. Coprime says they share noth­ing else. Write out both lists and hold them side by side. Then 11 is the only num­ber in both.

The sheet's exam­ples are 44 and 55, and 22 and 33. Four more pairs are added here. They let you watch the test pass and fail.

The pairFac­tors of the firstFac­tors of the sec­ondIn both listsCoprimes?
44 and 551,2,41, 2, 41,51, 511yes
22 and 331,21, 21,31, 311yes
99 and 10101,3,91, 3, 91,2,5,101, 2, 5, 1011yes
88 and 15151,2,4,81, 2, 4, 81,3,5,151, 3, 5, 1511yes
66 and 881,2,3,61, 2, 3, 61,2,4,81, 2, 4, 811 and 22no
1414 and 21211,2,7,141, 2, 7, 141,3,7,211, 3, 7, 2111 and 77no

Two rows are worth a sec­ond look. Nei­ther 99 nor 1010 is a prime num­ber. Nor is 88 or 1515. Yet both pairs are coprimes. The word says noth­ing about either num­ber being prime. It says only that the two share no fac­tor. The fail­ing rows show what shar­ing looks like. 66 and 88 are both even, so 22 is in both lists. 1414 and 2121 are both built from 77.

Venn diagram of factors: 2 and 14 only in the circle for 14, 3 and 21 only in the circle for 21, and 1 and 7 in the overlap, so 14 and 21 are not coprimes.
The over­lap holds 7 as well as 1, so 14 and 21 are not coprimes.

Worked exam­ple: are 25 and 36 coprimes?

Fac­tors of 2525: 1,5,251, 5, 25. Fac­tors of 3636: 1,2,3,4,6,9,12,18,361, 2, 3, 4, 6, 9, 12, 18, 36. The only num­ber in both lists is 11, so 2525 and 3636 are coprimes, even though nei­ther is prime.

A quick first check helps. If both num­bers are even, 22 is shared and they can­not be coprimes. If both end in 00 or 55, 55 is shared. Two num­bers next to each other, such as 99 and 1010, are always coprimes, because any num­ber that divides both would also have to divide the gap between them, which is 11.

Remem­ber. Coprime is about a pair, never one num­ber on its own. Write out both fac­tor lists. If 11 is the only num­ber in both, they are coprimes.

Twin primes

Twin primes are two prime num­bers that dif­fer by 22.

The sheet writes its exam­ples as pairs in brack­ets. So (3,5)(3, 5) means the two num­bers 33 and 55 taken together. Its exam­ples are (3,5)(3, 5), (5,7)(5, 7), (11,13)(11, 13) and (41,43)(41, 43). Check the last one. The only fac­tors of 4141 are 11 and 4141. The only fac­tors of 4343 are 11 and 4343. So both are prime. And 4341=243 - 41 = 2, so they are two apart. Both halves of the test have to pass.

Why 22, and not 11? Because 22 is the only even prime. Prime and com­pos­ite num­bers sets that out and explains it. So every prime after 22 is odd. And two odd num­bers are never one apart.

One pair does stand one apart: 22 and 33. Both are prime, because 22 is the even one. They are the only pair like that. They are still not twin primes. Twins must dif­fer by 22. Apart from 22, every prime is odd. So the gap between any two odd primes is 22 or more. No two primes can sit closer than a twin pair does.

The pairs do not stop at (41,43)(41, 43). Here are the prime num­bers up to 5050. The sheet has a full list of the 2525 primes below 100100. You will find it in Prime and com­pos­ite num­bers.

2277171729294141
331111191931314343
551313232337374747

Run down that list. For each prime, look for the next one that is only 22 big­ger. Six pairs turn up below 5050. Carry on as far as 100100 and two more turn up. Those are the last ones below 100100.

(3,5)(3, 5)(11,13)(11, 13)(29,31)(29, 31)(59,61)(59, 61)
(5,7)(5, 7)(17,19)(17, 19)(41,43)(41, 43)(71,73)(71, 73)
A hundred square with primes shaded: 3, 5, 7, 11, 13, 17, 19, 29, 31, 41, 43, 59, 61, 71 and 73 in orange as twin primes, the other primes in blue.
The eight twin prime pairs below 100 are the orange squares.

Some pairs almost work. They teach you as much as the pairs that do. (7,9)(7, 9) is two apart, but it fails. The rea­son is that 99 has a third fac­tor: 9=3×39 = 3 \times 3. Its fac­tors are 1,3,91, 3, 9, so it is not prime. (13,15)(13, 15) fails in the same way. Here 15=3×515 = 3 \times 5, and the fac­tors are 1,3,5,151, 3, 5, 15. (89,91)(89, 91) looks right and still fails. This time 91=7×1391 = 7 \times 13. Being two apart is never enough on its own.

Worked exam­ple: are 101 and 103 twin primes?

First the gap: 103101=2103 - 101 = 2. Now test each num­ber for primes up to its square root. Since 11×11=12111 \times 11 = 121, it is enough to try 2,3,52, 3, 5 and 77. Nei­ther num­ber is even. The digit sums are 22 and 44, so 33 does not divide either. Nei­ther ends in 00 or 55. And 101=7×14+3101 = 7 \times 14 + 3, 103=7×14+5103 = 7 \times 14 + 5. Both are prime, so (101,103)(101, 103) is a twin prime pair.

Remem­ber. Twin primes are two primes with just one num­ber between them. Check that both num­bers are prime before you call them twins.

All twin primes are coprimes

The sheet adds one note to the twin primes. It says that all twin primes are coprimes. You do not have to just believe it. The two rules you have just read prove it.

A prime brings only two num­bers to its fac­tor list: 11 and itself. So the fac­tors of 1111 are 1,111, 11. The fac­tors of 1313 are 1,131, 13. Now put the two lists side by side. 11 is in both. 1111 is not in the sec­ond list. That is because 1313 is prime and 1111 is not 1313. 1313 is not in the first list, for the same rea­son. So only 11 is shared. And that is just what coprime means.

Twin pairFac­tors of the firstFac­tors of the sec­ondIn both lists
(3,5)(3, 5)1,31, 31,51, 511
(11,13)(11, 13)1,111, 111,131, 1311
(41,43)(41, 43)1,411, 411,431, 4311

Notice what the proof never used: the gap of 22. It used only two facts. Both num­bers are prime. And they are two dif­fer­ent num­bers. Twin primes are always two dif­fer­ent primes. So the note holds for every twin pair there will ever be. It is not just about the three pairs above.

Remem­ber. All twin primes are coprimes. Two dif­fer­ent primes have noth­ing to share but 11.

Your turn

Per­fect or not

Write out all the fac­tors of each num­ber. Add them up. Then com­pare the sum with twice the num­ber.

1) 663) 16165) 2828
2) 10104) 20206) 3636

Coprime or not

Write out both fac­tor lists. Say which pairs are coprimes. Where a pair is not, name every fac­tor they share apart from 11.

1) 4,94, 96) 7,137, 13
2) 6,356, 357) 9,169, 16
3) 8,128, 128) 14,1514, 15
4) 10,2110, 219) 18,2418, 24
5) 15,2515, 2510) 5,205, 20

Twin primes or not

Say which of these pairs are twin primes. For a pair that is not, say which half of the test it failed.

1) 5,75, 75) 23,2523, 25
2) 7,97, 96) 29,3129, 31
3) 13,1713, 177) 37,3937, 39
4) 17,1917, 198) 59,6159, 61
  1. Show that 59 and 61 are coprimes by writ­ing out both fac­tor lists
  2. Find a pair of num­bers which are coprimes although nei­ther of them is prime

Com­mon mis­takes

  • Leav­ing the num­ber out of its own fac­tor list. Then you must com­pare the sum with the num­ber, not with twice the num­ber. Mix­ing the two meth­ods gives wrong answers.
  • Call­ing one num­ber coprime. Coprime always describes a pair, such as 88 and 1515.
  • Think­ing coprimes must be prime. 99 and 1616 are coprimes, and nei­ther is prime.
  • Check­ing only the gap for twin primes. (37,39)(37, 39) is two apart, but 39=3×1339 = 3 \times 13, so it is not a twin pair.
  • Call­ing (2, 3) twin primes. They are one apart, not two apart.
  • Miss­ing a fac­tor. List fac­tors in pairs, 1×361 \times 36, 2×182 \times 18 and so on, until the pairs meet.

Key terms

Fac­tor (divi­sor)
A num­ber that divides another exactly. The fac­tors of 66 are 1,2,3,61, 2, 3, 6.
Prime num­ber
A num­ber with exactly two fac­tors, 11 and itself.
Com­pos­ite num­ber
A num­ber with more than two fac­tors, such as 99.
Per­fect num­ber
A num­ber whose fac­tors, itself included, add up to twice the num­ber.
Coprimes (rel­a­tively prime)
Two num­bers whose only com­mon fac­tor is 11.
Twin primes
Two prime num­bers that dif­fer by 22.
Com­mon fac­tor
A num­ber that is a fac­tor of both num­bers in a pair.

Answers

Per­fect or not

  1. 66: 1+2+3+6=12=2×61 + 2 + 3 + 6 = 12 = 2 \times 6. Per­fect.
  2. 1010: 1+2+5+10=181 + 2 + 5 + 10 = 18, but 2×10=202 \times 10 = 20. Not per­fect; the sum is too small.
  3. 1616: 1+2+4+8+16=311 + 2 + 4 + 8 + 16 = 31, but 2×16=322 \times 16 = 32. Not per­fect; the sum is too small.
  4. 2020: 1+2+4+5+10+20=421 + 2 + 4 + 5 + 10 + 20 = 42, but 2×20=402 \times 20 = 40. Not per­fect; the sum is too big.
  5. 2828: 1+2+4+7+14+28=56=2×281 + 2 + 4 + 7 + 14 + 28 = 56 = 2 \times 28. Per­fect.
  6. 3636: 1+2+3+4+6+9+12+18+36=911 + 2 + 3 + 4 + 6 + 9 + 12 + 18 + 36 = 91, but 2×36=722 \times 36 = 72. Not per­fect; the sum is too big.

Coprime or not

  1. 4,94, 9: fac­tors 1,2,41, 2, 4 and 1,3,91, 3, 9. Coprimes.
  2. 6,356, 35: fac­tors 1,2,3,61, 2, 3, 6 and 1,5,7,351, 5, 7, 35. Coprimes.
  3. 8,128, 12: fac­tors 1,2,4,81, 2, 4, 8 and 1,2,3,4,6,121, 2, 3, 4, 6, 12. Not coprimes; they share 22 and 44.
  4. 10,2110, 21: fac­tors 1,2,5,101, 2, 5, 10 and 1,3,7,211, 3, 7, 21. Coprimes.
  5. 15,2515, 25: fac­tors 1,3,5,151, 3, 5, 15 and 1,5,251, 5, 25. Not coprimes; they share 55.
  6. 7,137, 13: fac­tors 1,71, 7 and 1,131, 13. Coprimes.
  7. 9,169, 16: fac­tors 1,3,91, 3, 9 and 1,2,4,8,161, 2, 4, 8, 16. Coprimes.
  8. 14,1514, 15: fac­tors 1,2,7,141, 2, 7, 14 and 1,3,5,151, 3, 5, 15. Coprimes.
  9. 18,2418, 24: fac­tors 1,2,3,6,9,181, 2, 3, 6, 9, 18 and 1,2,3,4,6,8,12,241, 2, 3, 4, 6, 8, 12, 24. Not coprimes; they share 22, 33 and 66.
  10. 5,205, 20: fac­tors 1,51, 5 and 1,2,4,5,10,201, 2, 4, 5, 10, 20. Not coprimes; they share 55.

Twin primes or not

  1. 5,75, 7: twin primes.
  2. 7,97, 9: not twin primes; 9=3×39 = 3 \times 3 is not prime.
  3. 13,1713, 17: not twin primes; both are prime but they dif­fer by 44.
  4. 17,1917, 19: twin primes.
  5. 23,2523, 25: not twin primes; 25=5×525 = 5 \times 5 is not prime.
  6. 29,3129, 31: twin primes.
  7. 37,3937, 39: not twin primes; 39=3×1339 = 3 \times 13 is not prime.
  8. 59,6159, 61: twin primes.

The last two ques­tions

  1. The fac­tors of 5959 are 1,591, 59 and the fac­tors of 6161 are 1,611, 61. The only num­ber in both lists is 11, so 5959 and 6161 are coprimes.
  2. A model answer: 88 and 99. The fac­tors of 88 are 1,2,4,81, 2, 4, 8 and the fac­tors of 99 are 1,3,91, 3, 9; only 11 is shared, and nei­ther num­ber is prime. Other cor­rect pairs include 99 and 1010, 88 and 1515, or 44 and 99.