Knaph

The course as a book

Number Theory Level 1: Factors and Primes

Multiples, factors, quick tests, prime numbers, numbers that make shapes - and your first proofs, with dots instead of letters.

Multiplying, Looked at Again

Breaking Numbers Apart

A baker in Lagos takes a tray out of the oven. The buns sit in 7 rows, with 12 buns in each row. How many buns are there? That is 7 × 12, and most people don't know it by heart. Can we work it out from sums that are easy?

In this course "number" means a whole number: 0, 1, 2, 3 and so on. In Numbers Level 1 we saw that things in equal rows make a rectangle called an array, and that multiplying counts it: 4 rows of 6 is 4 × 6 = 24. This lesson looks at that rectangle again.

Cut the rectangle in two

Take the tray of 7 rows of 12, and draw a line down it after the tenth column. Now there are two smaller rectangles:

  • on one side, 7 rows of 10, which is 7 × 10 = 70;
  • on the other side, 7 rows of 2, which is 7 × 2 = 14.

No bun was lost and none was added. So the whole tray is the two parts put together:

  • 7 × 12 = 7 × 10 + 7 × 2 = 70 + 14 = 84.

A tray of buns in 7 rows of 12, with a line drawn after the tenth column. One part is 7 rows of 10, which is 70; the other part is 7 rows of 2, which is 14. Together, 7 × 12 = 70 + 14 = 84

This is breaking a number apart: we broke 12 into 10 and 2, multiplied each part by 7, and added the answers. Mathematicians call this rule the distributive law, but the rectangle is all you need to remember it.

Any cut works

The line could go anywhere. Cut the 12 columns into 6 and 6, and you get 7 × 6 + 7 × 6 = 42 + 42 = 84. The same answer, because it is the same tray.

So we choose the cut that makes the sums easy. Tens are usually easiest, because multiplying by ten only moves each digit one place to the left:

  • 6 × 13 = 6 × 10 + 6 × 3 = 60 + 18 = 78.

Three numbers at once

The baker has 2 trays, and each tray holds 3 rows of 4 cakes. How many cakes? That is 2 × 3 × 4. You can group it two ways:

  • first one tray, 3 × 4 = 12, then two trays: 2 × 12 = 24;
  • or first the rows, 2 × 3 = 6 rows of 4 in all: 6 × 4 = 24.

Two trays, each with 3 rows of 4 cakes. Counted as 2 trays of 12 it is 24; counted as 6 rows of 4 it is also 24

Counting a different way doesn't change the cakes. So when you multiply three numbers, you can multiply any two of them first: 5 × 7 × 2 is easier as 5 × 2 = 10, then 10 × 7 = 70.

Try it at home

  1. Lay out 3 rows of 14 buttons. Put a pencil after the tenth column. Count each part, then add.
  2. Work out 2 × 9 × 5 the easy way.

Answers: 1. 3 × 10 + 3 × 4 = 30 + 12 = 42. 2. 2 × 5 = 10 first, then 10 × 9 = 90.

Words to know

  • array - things laid out in equal rows and columns, making a rectangle
  • breaking a number apart - splitting a number into parts, multiplying each part, and adding the answers: 7 × 12 = 7 × 10 + 7 × 2
  • distributive law - the name mathematicians give to breaking apart

Big idea

A multiplication is a rectangle, and a rectangle can be cut into smaller ones without losing anything. So 7 × 12 is 7 × 10 + 7 × 2. And three numbers can be multiplied in any grouping: 2 × 3 × 4 is 24 whichever two you do first.

Lesson page →

Multiples: Counting in Jumps

A market stall in Lima sells eggs only in boxes of 6. You can buy one box, or two, or three - but you can't open a box. Can you buy exactly 20 eggs?

Counting in jumps

Count the eggs box by box:

  • 1 box: 6 eggs;
  • 2 boxes: 12 eggs;
  • 3 boxes: 18 eggs;
  • 4 boxes: 24 eggs.

The number of eggs goes up by 6 each time: 6, 12, 18, 24, ... So 20 is never reached. After 18 the next number is 24, and 20 is jumped over.

The numbers we land on are called the multiples of 6. A multiple of 6 is 6 times some number: 6 × 1 = 6, 6 × 2 = 12, 6 × 3 = 18, and so on.

You can see the same idea on a number line. A frog starts at 0 and jumps 3 each time. It lands on 3, 6, 9, 12, 15, ... These are the multiples of 3. Every number it jumps over, like 7 or 11, is not a multiple of 3.

A frog jumping along a number line from 0, 3 steps at a time. It lands on 3, 6, 9, 12, 15 and 18, which are circled. The numbers in between are jumped over

Two more things about multiples:

  • They never end. The frog can always make one more jump. There is no biggest multiple of 3.
  • 0 is a multiple of every number, because 6 × 0 = 0: zero boxes, zero eggs. The frog starts there before its first jump.

Is it a multiple?

To check whether 20 is a multiple of 6, you don't have to count all the way up. Divide: 20 ÷ 6 is 3 remainder 2 (remainders were in Numbers Level 1). There is something left over, so 20 is not a multiple of 6. But 24 ÷ 6 = 4 with nothing left over, so 24 is a multiple of 6.

Patterns in the multiples

Write the numbers from 1 to 50 in rows of ten, and colour the multiples. The multiples of 5 make two straight columns: every one ends in 5 or 0. The multiples of 9 make a slanting line, because each one is 10 more and 1 less than the one before.

Two grids of the numbers 1 to 50 in rows of ten. In the first, the multiples of 5 are coloured and make two straight columns. In the second, the multiples of 9 are coloured and make a slanting line

Patterns like these are a first hint that multiples follow rules. In the next module we turn them into quick tests.

Try it at home

  1. Write the first ten multiples of 4. Which of them are also multiples of 8?
  2. Buttons come in packs of 5. Can you buy exactly 35? Exactly 42?

Answers: 1. 4, 8, 12, 16, 20, 24, 28, 32, 36, 40; every second one (8, 16, 24, 32, 40) is a multiple of 8. 2. 35 yes (7 packs); 42 no, it is between 40 and 45.

Words to know

  • multiple - what you get by multiplying a number by 0, 1, 2, 3, and so on: the multiples of 6 are 0, 6, 12, 18, 24, ...

Big idea

The multiples of a number are where you land counting in jumps of that number. They never end, 0 is always one of them, and a number is a multiple when dividing it leaves nothing over.

Lesson page →

Factors: Making Rectangles

A teacher in Hanoi has 12 chairs for a reading circle. She wants them in equal rows, with no chair left over and no gap. How many ways can she set them out?

Every rectangle of 12

Try each row length and see whether the chairs fill the rows exactly:

  • 1 row of 12, or 12 rows of 1;
  • 2 rows of 6, or 6 rows of 2;
  • 3 rows of 4, or 4 rows of 3.

Rows of 5 don't work: two rows of 5 use 10 chairs and 2 are left over. Rows of 7, 8, 9, 10 or 11 don't work either.

The three rectangles 12 chairs can make: 1 row of 12, 2 rows of 6, and 3 rows of 4. Under each one is its multiplication: 1 × 12, 2 × 6 and 3 × 4

The numbers that make a rectangle of 12 are called the factors of 12:

  • 1, 2, 3, 4, 6 and 12.

A factor of 12 is a number you can multiply by another number to get 12. Each rectangle gives two factors at once: 3 rows of 4 shows that 3 and 4 are factors. So factors come in factor pairs: 1 and 12, 2 and 6, 3 and 4.

Factors and multiples are two sides of one fact. 3 × 4 = 12 says that 3 is a factor of 12, and also that 12 is a multiple of 3 (it is where the jumps of 3 land after four jumps).

Finding all the factors

To find every factor of 36 without missing one, go up from 1 and write each pair:

  • 1 × 36
  • 2 × 18
  • 3 × 12
  • 4 × 9
  • 5 doesn't work (36 ÷ 5 leaves 1 over)
  • 6 × 6

Now stop. The next pair would be 9 × 4, and that is 4 × 9 again, turned round. The pairs meet in the middle, at 6 × 6. So the factors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36.

The factors of 36 written in a row, from 1 to 36, with arcs joining each factor pair: 1 with 36, 2 with 18, 3 with 12, 4 with 9, and 6 joined to itself in the middle

Many factors, or few

Every number has at least two factors: 1 and the number itself (one long row). Some have many more: 12 has six factors, 36 has nine. But try 7 chairs: rows of 2, 3, 4, 5 or 6 all leave chairs over. Seven chairs only make one long line. Numbers like that are special, and a whole module of this course is about them.

Try it at home

  1. Take 18 buttons and find every rectangle you can make. Write the factors of 18.
  2. Find the factors of 20 by going up from 1. Where do the pairs meet?

Answers: 1. 1 × 18, 2 × 9, 3 × 6, so the factors are 1, 2, 3, 6, 9, 18. 2. 1 × 20, 2 × 10, 4 × 5 (3 doesn't work); after 4 × 5 comes 5 × 4, so the factors are 1, 2, 4, 5, 10, 20.

Words to know

  • factor - a number that multiplies with another number to make a given number: 3 is a factor of 12, because 3 × 4 = 12
  • factor pair - two factors that multiply to make the number, like 3 and 4 for 12

Big idea

The factors of a number are the row lengths that make a rectangle of it. They come in pairs, and the pairs meet in the middle, so you can find them all by going up from 1 until the pairs turn round.

Lesson page →

Dividing Exactly

Ama has a bag of 24 sweets to share at her birthday in Accra. If 4 friends come, each gets 6. If 6 friends come, each gets 4. But if 5 friends come, something goes wrong. Why do some numbers of friends work and others don't?

Nothing left over

Share 24 sweets between 5 friends, one round at a time. After 4 rounds each friend has 4 sweets, and 20 sweets are given out. 4 sweets are left, not enough for another round. So 24 ÷ 5 is 4 remainder 4.

With 4 friends, the sweets run out exactly: 24 ÷ 4 = 6, remainder 0.

24 sweets shared two ways. Between 4 friends, each gets 6 and none are left. Between 5 friends, each gets 4 and 4 sweets are left over

When dividing leaves remainder 0, we say that 4 divides 24, or that 24 is divisible by 4. 5 does not divide 24: 24 is not divisible by 5.

One fact, three ways of saying it

Look at 3 × 8 = 24 as an array: 3 rows of 8. This one picture says three things:

  • 3 is a factor of 24 (24 makes a rectangle with rows of 3);
  • 24 is a multiple of 3 (eight jumps of 3 land on 24);
  • 3 divides 24 (24 shared into 3 rows gives 8 each, none left over).

An array of 24 dots in 3 rows of 8, with the multiplication 3 × 8 = 24. Around it, three sentences about the same picture: 3 is a factor of 24; 24 is a multiple of 3; 3 divides 24

These are three ways of saying the same thing. A factor is also called a divisor - the number that divides. So the factors of 24 are exactly the numbers that divide 24: 1, 2, 3, 4, 6, 8, 12 and 24.

A few that always work

  • 1 divides every number: sharing between one person leaves nothing over.
  • Every number divides itself: 7 sweets between 7 friends is 1 each.
  • Every number divides 0: 0 sweets between 5 friends is 0 each, with nothing left over. (But nothing can be divided by 0, as we saw in Numbers Level 1.)

To check whether one number divides another, you can always divide and look at the remainder. For some numbers there is a much faster way, and that is the next module, starting with Tests for 2, 5 and 10.

Try it at home

  1. Take 30 buttons. Which numbers of piles from 2 to 10 share them with none left over?
  2. Which of these does 4 divide: 16, 18, 28, 30?

Answers: 1. 2, 3, 5, 6 and 10 piles. 2. 16 and 28.

Words to know

  • divides - one number divides another when sharing leaves remainder 0: 4 divides 24
  • divisible - 24 is divisible by 4 because 4 divides it
  • divisor - another word for a factor: the number that divides

Big idea

"3 is a factor of 24", "24 is a multiple of 3" and "3 divides 24" are one fact, seen from three sides. You can always check it by dividing: if nothing is left over, it divides.

Lesson page →

Quick Tests

Tests for 2, 5 and 10

A market seller has 1,235 marbles and wants to put them in bags of 5. Will any marbles be left over? She could fill bag after bag and see - that would take a long time. Or she could divide 1,235 by 5, which takes a while too. Is there a quicker way to know whether a number divides by 5?

There is, and it takes one glance. Such a quick way of checking is called a test.

Every ten splits

Look at one ten: ten dots in a row.

  • Ten splits into twos: 5 pairs, none left over.
  • Ten splits into fives: 2 fives, none left over.
  • Ten splits into tens: 1 ten, of course.

One row of ten dots shown three times: split into five pairs, split into two groups of five, and as one group of ten. Nothing is left over each time

Now think of 1,235 the way the place value columns write it: 123 tens and 5 ones. Every one of those tens splits into fives with nothing left over, so the 123 tens are no trouble at all. Only the 5 ones are left to decide. And 5 ones make exactly one more bag of 5.

So 1,235 marbles fill bags of 5 with none left over. The seller only had to look at the last digit.

The three tests

Because tens never leave anything over, the last digit decides for 2, 5 and 10:

  • Divisible by 10: the last digit is 0. (370 yes, 375 no.)
  • Divisible by 5: the last digit is 0 or 5. (375 yes, 376 no.)
  • Divisible by 2: the last digit is 0, 2, 4, 6 or 8 - the number is even. (376 yes, 377 no.) This is the even-and-odd rule from Numbers Level 1, which works for the same reason.

On a hundred square, the numbers that pass each test make straight columns, because only the last digit matters:

A hundred square with the numbers 1 to 100. The column of numbers ending in 0 is shaded green, and the column ending in 5 is shaded blue. Together they are all the numbers divisible by 5

The last digit even tells you what is left

The tens never leave anything over, so whatever is left over comes from the ones. Take 1,237 marbles in bags of 5. The last digit is 7, and 7 is one bag of 5 with 2 left over. So 1,237 ÷ 5 leaves a remainder of 2.

Be careful: this only works for 2, 5 and 10, because they are the numbers that split ten exactly. It does not work for 3. 13 ends in 3, but 13 doesn't split into threes: 4 threes and 1 left over. A test for 3 needs a different idea, in the next lesson.

Try it at home

  1. Look at prices in a shop or on a receipt. Which ones divide by 5? By 10?
  2. Divisible by 2, 5, 10, or none: 4,560; 785; 2,222; 1,001?
  3. What is left over when 3,148 is split into fives? Answers below.

Answers: 4,560 by all three; 785 by 5; 2,222 by 2; 1,001 by none. 3,148 ends in 8, which is one five and 3 more, so 3 are left over.

Words to know

  • test - a quick way of checking something without doing the whole sum; here, whether one number divides another
  • last digit - the ones digit, at the right end of a number

Big idea

Every ten splits into twos, fives and tens with nothing left over, so only the last digit decides. A number divides by 10 if it ends in 0, by 5 if it ends in 0 or 5, and by 2 if it ends in an even digit.

Lesson page →

Tests for 3 and 9

Three friends win 471 sweets in a competition and want to share them equally. Will it come out fair, with none left over? The last digit is 1, but in the Tests for 2, 5 and 10 lesson we saw that the last digit only works for 2, 5 and 10. For 3 we need a new trick.

Add up the digits

Here is the test. Add up the digits of the number: this is called the digit sum.

  • 471: the digit sum is 4 + 7 + 1 = 12.
  • 12 divides by 3 (12 ÷ 3 = 4).
  • So 471 divides by 3 too. Each friend gets 157 sweets.

The test for 3: a number divides by 3 if its digit sum divides by 3. The test for 9 works the same way: a number divides by 9 if its digit sum divides by 9. For example, 3,456 has digit sum 3 + 4 + 5 + 6 = 18, and 18 divides by 9, so 3,456 does too.

If the digit sum is still big, add up its digits again: 99,999 has digit sum 45, and 45 has digit sum 9. So 99,999 divides by 9.

Why it works: a ten is a nine plus one

This test looks like magic, but it has a reason. Take one ten. Put 9 of its dots aside: 9 splits into threes (three threes) and into nines. One dot is left over. So every ten is a nine plus one left over.

A row of ten dots. Nine are blue and grouped into three threes; the tenth dot is orange and sits apart: every ten is a nine plus one

Now take 42: 4 tens and 2 ones.

  • Each of the 4 tens leaves 1 over after its nine. That is 4 left over.
  • The 2 ones are left over too.
  • So all that is left over is 4 + 2 = 6 - the digit sum!

The nines are no trouble: they always split into threes and nines. Only the leftovers decide, and the leftovers are the digit sum. 6 divides by 3, so 42 divides by 3 (42 ÷ 3 = 14). 6 doesn't divide by 9, so 42 doesn't divide by 9: in fact it leaves exactly 6 over (4 nines are 36, and 36 + 6 = 42).

The number 42 drawn as four rows of ten dots and two loose dots. In each row nine dots are blue and one is orange. The four orange dots and the two loose dots are gathered together: six dots left over

The same is true of hundreds: 100 is 99 + 1, and 99 is eleven nines. So every hundred also leaves exactly 1 over, and every digit counts its own leftovers.

A test that fails

Be careful not to mix the tests up. For 3 and 9 the last digit tells you nothing: 13 ends in 3 but doesn't divide by 3, and 12 ends in 2 but does. For 2, 5 and 10 the digit sum tells you nothing: 14 and 41 have the same digit sum, but only 14 is even. Each test works only for the reason behind it.

Try it at home

  1. Pick any number on a receipt or a car number plate. Find its digit sum. Does the number divide by 3? By 9?
  2. Divisible by 3, by 9, or neither: 111; 2,025; 1,000?
  3. A number divides by 9. Must it divide by 3? Answers below.

Answers: 111 by 3 only (digit sum 3); 2,025 by both (digit sum 9); 1,000 by neither (digit sum 1). Yes: a nine is three threes, so anything that splits into nines also splits into threes.

Words to know

  • digit sum - what you get by adding up the digits of a number: the digit sum of 471 is 4 + 7 + 1 = 12
  • test for 3 (or 9) - a number divides by 3 (or 9) if its digit sum does

Big idea

Every ten is a nine plus one, and every hundred is 99 plus one. The nines always split into threes and nines, so only the leftovers decide - one for each ten, one for each hundred, plus the ones - and the leftovers add up to the digit sum.

Lesson page →

Even and Odd, Again

Five friends each bring an odd number of marbles to a game: maybe 3, maybe 7, maybe 101. Could they have 20 marbles altogether? You could try lots of different numbers and see. But however many you try, there are always more you haven't tried. Is there a way to be sure?

A picture of any even number

In Numbers Level 1 we saw that an even number splits into pairs, and an odd number always leaves one over. Let's draw that as a shape:

  • An even number is a rectangle of dots two rows high. It is a multiple of 2.
  • An odd number is the same rectangle with one extra dot sticking out at the end.

Two shapes made of dots. The even one is two equal rows of dots with a gap in the middle, meaning the rows can be as long as you like. The odd one is the same two rows with one extra orange dot sticking out at the end

The gap in the middle of each row means "as long as you like". So this one picture is not 8, or 12, or 1,000. It is every even number at once, and every odd number at once.

Adding, for every number

Now put two odd numbers together. Each one is a two-row rectangle with one dot sticking out. Push the two shapes together, and the two extra dots fit into a pair of their own.

Two odd shapes, each two rows of dots with one orange dot sticking out, pushed together. The two orange dots meet and make one more pair, so the whole shape is two full rows: even

The result is two full rows: an even number. This is true however long the rows are, so odd + odd is even for every pair of odd numbers - including ones nobody has ever written down. We didn't check examples; we saw why.

With the same picture: even + even is two rectangles, still two rows high (even). Even + odd keeps its one extra dot (odd).

Multiplying

What about times? 3 × 5 is 3 rows of 5 dots.

  • Each row of 5 makes 2 pairs and has 1 dot over.
  • There are 3 rows, so 3 dots are over. Two of them pair up, and 1 is still alone.

A rectangle of three rows of five dots. In each row, four blue dots make two pairs and the last dot is orange. Of the three orange dots, two make a pair and one is left alone: 3 × 5 = 15 is odd

An odd number of rows, each with one dot over, always leaves one dot over in the end. So odd × odd is odd. And if either number is even, every row (or the number of rows) pairs up, so even × anything is even.

Back to the marbles

Each friend's odd number has one marble sticking out. Five friends means five extra marbles. Four of them pair up, and one is left alone. So the total is always odd, and it can never be 20. We know this without trying a single number.

Try it at home

  1. Without working them out: even or odd? 17 + 26; 15 + 33; 7 × 9; 7 × 10.
  2. Can three odd numbers add up to 30?
  3. Arrange buttons in two rows to show 9 + 7. Where do the extra buttons go? Answers below.

Answers: odd, even, odd, even. No: three extra dots leave one alone, so the total is odd. The two extra buttons make one more pair.

Words to know

  • for every number - true of all numbers, not only the ones we tried; a picture with "as long as you like" rows can show it

Big idea

An even number is two rows of dots; an odd number has one dot sticking out. Putting the shapes together shows why odd + odd is even and odd × odd is odd - for every number at once, not just the ones we checked.

Lesson page →

Clock Arithmetic

It is 9 o'clock in the morning. A bus journey takes 5 hours. What time will the clock show when you arrive? Not 14 o'clock - an ordinary clock face only goes up to 12. It will show 2 o'clock. So on a clock, 9 + 5 = 2. Is that a mistake, or a different kind of adding?

Going round

On a number line, adding 5 means 5 hops to the right, and the line goes on forever. A clock is like a number line bent into a circle. After 12 it comes back to 1, and counting goes round again.

A clock face with the hour hand at 9. Five curved arrows hop from 9 to 10, 11, 12, 1 and 2, going round past the top of the clock

From 9, five hops go 10, 11, 12, 1, 2. Adding on a circle like this is called clock arithmetic. Mathematicians call it modular arithmetic.

Full turns don't count

What time is it 25 hours after 9 o'clock? You don't need to make 25 hops. 24 hours is two full turns of the clock, and a full turn brings the hand back to exactly where it started. So only the 1 hour left over matters: the clock shows 10.

That is a remainder, as in the When It Doesn't Share Evenly lesson of Numbers Level 1: 25 ÷ 12 = 2 remainder 1. The full turns are thrown away, and the remainder is all that counts.

The days of the week

A week is a circle too: Monday, Tuesday, ... Sunday, and then Monday again. It has 7 days, so here the turns are weeks of 7.

Today is Monday. What day is it in 10 days? 10 is one full week and 3 days more (10 ÷ 7 = 1 remainder 3). The full week brings you back to Monday, and 3 more days bring you to Thursday.

The seven days of the week drawn as a wheel starting at Monday. An arrow goes once all the way round, back to Monday, and then three more steps to Thursday

Now a big one: what day is it 100 days after a Monday? 14 weeks are 98 days (14 × 7 = 98), and 100 is 2 more than 98. The 14 full weeks change nothing, so 100 days from Monday is the same as 2 days from Monday: Wednesday.

Circles everywhere

Even and odd is clock arithmetic too, on the smallest circle there is: a clock with only two places, "even" and "odd". Each step of one moves you to the other place, and two steps bring you back. Lights that blink red, green, blue, red, green, blue are a circle of 3. A seat at a round table of 8, the months of the year (a circle of 12): whenever things come round again, only the remainder matters.

Try it at home

  1. It is 8 o'clock. What time will it be in 7 hours? In 30 hours?
  2. What day of the week will it be 50 days from today?
  3. Your birthday is on a Tuesday this year. A year has 365 days. What day will it be next year (if there is no 29 February in between)? Answers below.

Answers: 3 o'clock; 2 o'clock (24 hours is two full turns, then 6 more). 50 days is 7 weeks and 1 day: tomorrow's weekday. 365 is 52 weeks and 1 day, so Wednesday - your birthday moves on one day each year.

Words to know

  • clock arithmetic (also modular arithmetic) - counting that goes round in a circle, like the hours on a clock or the days of a week; only the remainder after the full turns matters

Big idea

On a circle of numbers, like a clock or a week, full turns bring you back to where you started. So to add on a circle, divide by the size of the circle and keep only the remainder: 100 days from Monday is Wednesday.

Lesson page →

Prime Numbers

Numbers That Won't Split

A baker puts cookies on a tray in neat rows, with the same number in every row. Twelve cookies are easy: 2 rows of 6, 3 rows of 4, or 1 long row of 12. The next day the baker has 13 cookies. 2 rows? One cookie is left over. 3 rows? One left over again. 4, 5, 6 rows? Always something left over. Why does 13 refuse to make a neat rectangle?

Only one rectangle

In the Factors lesson we saw that the factors of a number are the rectangles its dots can make. 12 dots make three rectangles: 1 × 12, 2 × 6 and 3 × 4. So 12 has six factors: 1, 2, 3, 4, 6 and 12.

13 dots make only one rectangle: a single line, 1 × 13. Its only factors are 1 and 13 itself.

Twelve blue dots laid out as three different rectangles: 1 row of 12, 2 rows of 6 and 3 rows of 4. Beside them, thirteen dots: they make only one rectangle, a single line of 13

A number bigger than 1 whose only factors are 1 and itself is called a prime number, or a prime. 13 is a prime. A number bigger than 1 that has more factors, like 12, is called a composite number: it can be built from smaller numbers multiplied together (12 = 3 × 4).

The first primes

Let's check the numbers one by one, looking for a neat rectangle with more than one row:

  • 2: only 1 × 2. Prime.
  • 3: only 1 × 3. Prime.
  • 4: 2 × 2. Composite.
  • 5: prime. 6 = 2 × 3: composite. 7: prime.
  • 8 = 2 × 4, 9 = 3 × 3, 10 = 2 × 5: all composite.
  • 11: prime. 12: composite. 13: prime.

The primes up to 30 are 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. Notice that 2 is the only even prime. Every other even number is 2 rows of something, so it has 2 as a factor.

The numbers from 1 to 30 in tiles. The primes, 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29, are blue; the composite numbers are grey; 1 is white, on its own

What about 1?

1 dot makes only one rectangle too. But 1 has only one factor, itself, not two. Mathematicians agreed long ago that 1 is not a prime, and not composite either. It sits on its own. This is not just a rule to remember: in the Only One Way to Build It lesson we will see why it matters.

Try it at home

  1. Take 7 buttons. Try to lay them out in 2 rows, 3 rows, and so on. Is 7 prime?
  2. Do the same with 15 buttons.
  3. Is 21 prime? Is 23?

Answers: 1. no rectangle except a line, so 7 is prime; 2. 3 rows of 5, so 15 is composite; 3. 21 = 3 × 7 is composite, 23 is prime.

Words to know

  • prime number (prime) - a number bigger than 1 whose only factors are 1 and itself, like 2, 3, 5, 7 and 13
  • composite number - a number bigger than 1 with more than two factors, like 4, 12 and 15

Big idea

A prime number makes only one rectangle of dots, a single line: its only factors are 1 and itself. A composite number can be split into smaller factors. 1 is neither.

Lesson page →

The Sieve of Eratosthenes

Is 91 prime? It is odd, so 2 is not a factor. Its digits add up to 10, so 3 is not a factor either. It looks prime. But 91 = 7 × 13, so it is composite. Testing numbers one at a time is slow, and easy to get wrong. Is there a better way to find all the primes up to 100?

A man who measured the Earth

About 2,200 years ago a Greek scholar called Eratosthenes lived in Alexandria, in Egypt. He was born in Cyrene, in what is now Libya, around 276 BC, and ran the great library of Alexandria. He is famous for measuring the size of the Earth with shadows. He is also remembered for a way of finding primes. It is called the sieve of Eratosthenes. A sieve is a kitchen tool full of small holes: you pour flour through it, and the lumps stay behind. His sieve lets the composite numbers fall through, and the primes stay behind.

How the sieve works

Write the numbers from 1 to 100 in a square, ten in each row. Then:

  1. Cross out 1. It is not a prime.
  2. Circle 2, the first prime. Cross out all the other multiples of 2: 4, 6, 8, 10 and so on. They all have 2 as a factor, so none of them is prime.
  3. The next number not crossed out is 3. Circle it, and cross out the multiples of 3: 6, 9, 12, ... (some are crossed out already).
  4. 4 is crossed out. The next one left is 5: circle it, cross out its multiples.
  5. Then 7: circle it, cross out 14, 21, 28, ... 91, 98.

The first thirty numbers, in two steps. First 2 is circled and every multiple of 2 is crossed out. Then 3 is circled and its multiples are crossed out too

Each number you cross out is a multiple of a smaller number, so it has a factor that is not 1 or itself. Each number that is never crossed out has no smaller factor except 1, so it is prime.

When can we stop?

The next prime is 11. Its multiples are 22, 33, 44 and so on up to 99. But each of those is 11 times a number smaller than 11 - 22 is 11 × 2, 33 is 11 × 3 - so it was already crossed out when we sieved with 2, 3, 5 or 7. The first multiple of 11 that is new is 11 × 11 = 121, which is past 100.

So after 7 the work is done. Every number still standing is a prime. Circle them all: there are 25 primes up to 100.

The numbers 1 to 100 in a square of ten rows. The 25 primes are circled in blue: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97. All the other numbers are crossed out

Look at the circled numbers. Except for 2 and 5, they all end in 1, 3, 7 or 9. They come in no simple pattern, and that is one of the great puzzles of mathematics.

Try it at home

  1. Draw the numbers 1 to 50 in five rows of ten. Sieve them with 2, 3, 5 and 7. How many primes are left?
  2. Why don't you need to sieve with 7 for the numbers up to 48?

Answers: 1. 15 primes (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47); 2. the first new multiple of 7 is 7 × 7 = 49.

Words to know

  • sieve - a tool with holes that lets small things through and keeps the rest; in maths, a way of crossing out numbers to leave the ones you want
  • sieve of Eratosthenes - finding the primes by crossing out the multiples of each prime in turn

Big idea

Cross out the multiples of 2, 3, 5 and 7, and the numbers left standing up to 100 are exactly the primes - 25 of them. You can stop once a prime times itself is past the end.

Lesson page →

Factor Trees

Everything around you, water, air, your own hand, is made of a small number of kinds of tiny pieces called atoms. Whole numbers have atoms too, when you build them by multiplying: the primes. Every composite number can be broken down into primes multiplied together. How do you find which primes a number is made of?

Split, and split again

Take 60. It is composite, so it splits into a factor pair, two factors that multiply to make it. Any pair will do, say 6 × 10. Write 60 at the top and draw two branches down to 6 and 10.

Now look at each branch. 6 is composite: it splits into 2 × 3. 10 is composite too: it splits into 2 × 5. Draw their branches.

Now the ends of the branches are 2, 3, 2 and 5. They are all primes, so they can't split any more. Circle them. The drawing is called a factor tree, and the circled numbers at its ends are the prime factors of 60:

  • 60 = 2 × 2 × 3 × 5.

A factor tree for 60. At the top, 60 splits into 6 and 10. Then 6 splits into 2 and 3, and 10 splits into 2 and 5. The four ends, 2, 3, 2 and 5, are circled: they are prime

Check it by multiplying back: 2 × 2 = 4, 4 × 3 = 12, 12 × 5 = 60. Every factor tree can be checked like this.

When to stop

The rule for growing the tree is simple:

  • if a number on a branch is composite, split it into a factor pair;
  • if it is prime, circle it and stop.

The tree is finished when every branch ends in a circle. Here is 36. It splits into 4 × 9, then 4 into 2 × 2 and 9 into 3 × 3:

  • 36 = 2 × 2 × 3 × 3.

A prime is the shortest tree of all: 13 can't split, so its tree is just 13, circled.

Two more factor trees. 36 splits into 4 and 9, then 4 into 2 and 2 and 9 into 3 and 3. 13 doesn't split at all: its tree is only the number 13, circled

Primes are the building blocks

Every number bigger than 1 is either a prime or can be split until only primes are left. Because each split makes smaller numbers, the splitting can't go on forever: it always ends in primes. This is what we meant by primes being the atoms of multiplying.

Putting the prime factors in order, from small to big, makes them easy to read: 60 = 2 × 2 × 3 × 5 tells you at a glance that 60 is made of two 2s, one 3 and one 5.

Try it at home

  1. Draw a factor tree for 24. Start with 4 × 6.
  2. Draw a factor tree for 45.
  3. Draw a factor tree for 100.

Answers: 1. 24 = 2 × 2 × 2 × 3; 2. 45 = 3 × 3 × 5; 3. 100 = 2 × 2 × 5 × 5.

Words to know

  • factor pair - two factors that multiply to make a number, like 6 and 10 for 60
  • factor tree - a drawing that splits a number into factor pairs again and again, until every branch ends in a prime
  • prime factors - the primes at the ends of a factor tree: the primes that multiply to make the number

Big idea

Split a composite number into a factor pair, and keep splitting until only primes are left. Every number bigger than 1 is a prime or a product of primes: 60 = 2 × 2 × 3 × 5.

Lesson page →

Only One Way to Build It

Sara, Tomás and Mei each draw a factor tree for 60. Sara starts with 6 × 10. Tomás starts with 4 × 15. Mei starts with 2 × 30. Their trees look different. Will they find different primes at the ends?

Three trees, the same primes

Let's grow all three trees:

  • Sara: 6 × 10, then 6 = 2 × 3 and 10 = 2 × 5. Primes: 2, 3, 2, 5.
  • Tomás: 4 × 15, then 4 = 2 × 2 and 15 = 3 × 5. Primes: 2, 2, 3, 5.
  • Mei: 2 × 30, then 30 = 5 × 6, then 6 = 2 × 3. Primes: 2, 5, 2, 3.

Put each set in order, from small to big, and all three say the same thing:

  • 60 = 2 × 2 × 3 × 5.

Three different factor trees for 60. One starts with 6 and 10, one with 4 and 15, one with 2 and 30. All three end with the same four primes: two 2s, one 3 and one 5

Always the same

This is not luck. Whichever factor pair you start with, the tree of a number always ends with the same primes, only perhaps in a different order. In other words, every whole number bigger than 1 is built from primes in exactly one way. Mathematicians call this the fundamental theorem of arithmetic, "fundamental" meaning that a great deal is built on it.

Proving that it is always true takes more than this course. Euclid, a Greek mathematician, had the key step about 2,300 years ago. The first complete proof was published by the German mathematician Carl Friedrich Gauss in 1801.

A number's own recipe

Because the prime factors never change, they are like a recipe that belongs to that number and no other. The recipe answers questions without any dividing:

  • Is 3 a factor of 140 = 2 × 2 × 5 × 7? There is no 3 in the recipe, so no.
  • Is 6 a factor of 42 = 2 × 3 × 7? 6 is 2 × 3, and both are in the recipe, so yes: 42 = 6 × 7.

Two numbers drawn as mixing bowls of prime beads. The bowl for 140 holds the beads 2, 2, 5 and 7, with no 3 among them. The bowl for 42 holds 2, 3 and 7, and the beads 2 and 3 together make 6

Why 1 is not a prime

Now we can see why mathematicians keep 1 out of the primes. If 1 were a prime, it could go into any recipe as often as you like, and nothing would change:

  • 60 = 2 × 2 × 3 × 5 = 1 × 2 × 2 × 3 × 5 = 1 × 1 × 2 × 2 × 3 × 5 ...

Then every number would be built from "primes" in endless ways, and the rule "exactly one way" would break. Leaving 1 out keeps the rule true.

Try it at home

  1. Draw two different factor trees for 72: one starting with 8 × 9, one starting with 2 × 36. Do they end with the same primes?
  2. 90 = 2 × 3 × 3 × 5. Without dividing, is 7 a factor of 90? Is 15?

Answers: 1. yes, both give 72 = 2 × 2 × 2 × 3 × 3; 2. 7 is not (there is no 7 in the recipe); 15 is, because 15 = 3 × 5 and both are there.

Words to know

  • fundamental theorem of arithmetic - the fact that every whole number bigger than 1 is built from primes in exactly one way, apart from the order

Big idea

Every factor tree of a number ends with the same primes. Each number bigger than 1 has exactly one prime recipe, and that recipe tells you its factors. Keeping 1 out of the primes is what keeps the recipe unique.

Lesson page →

Sharing Factors and Multiples

The Greatest Common Factor

Leila is making party bags for her little brother's birthday. She has 12 biscuits and 18 sweets. Every bag must be the same: the same number of biscuits and the same number of sweets, with nothing left over. She wants as many bags as possible. How many bags can she make?

Bags must share both numbers

Say Leila makes 4 bags. The 12 biscuits share fairly: 3 in each bag. But 18 sweets don't share into 4 bags: 18 ÷ 4 is 4 remainder 2, so 2 sweets are left over. 4 bags won't work.

The number of bags must divide 12 exactly, so it is a factor of 12 (as in the Factors lesson). It must also divide 18 exactly, so it is a factor of 18 too. Let's list both:

  • the factors of 12 are 1, 2, 3, 4, 6 and 12;
  • the factors of 18 are 1, 2, 3, 6, 9 and 18.

The numbers in both lists are 1, 2, 3 and 6. These are the common factors of 12 and 18: "common" means shared. Leila could make 1, 2, 3 or 6 bags. The biggest of them is 6.

The factors of 12 in one row and the factors of 18 in another. The numbers in both rows, 1, 2, 3 and 6, are circled in green; 6 is the biggest of them

So Leila makes 6 bags, each with 2 biscuits (12 ÷ 6 = 2) and 3 sweets (18 ÷ 6 = 3).

Six party bags in a row. Each bag holds 2 biscuits and 3 sweets: 12 biscuits and 18 sweets shared with nothing left over

The greatest common factor

The biggest number that divides two numbers exactly is called their greatest common factor. Some books call it the highest common factor: it is the same thing. The greatest common factor of 12 and 18 is 6.

It answers more questions than party bags. A garden path is 12 steps long and 18 steps wide (one step is a small square). You want to cover it with square tiles, all the same size, as big as possible, and none cut. A tile's side must fit along 12 exactly and along 18 exactly: it is a common factor again. The biggest tile is 6 steps by 6 steps, and 6 of them cover the path.

A rectangle 12 squares long and 18 squares wide, covered by six big square tiles, each 6 squares by 6 squares, with nothing cut

A shortcut with prime factors

Lists work for small numbers. For bigger ones, use the prime factors from the Factor Trees lesson:

  • 12 = 2 × 2 × 3;
  • 18 = 2 × 3 × 3.

Both have one 2 and one 3. Multiply the ones they share: 2 × 3 = 6. That is the greatest common factor.

Sometimes two numbers share nothing but 1. The factors of 8 are 1, 2, 4, 8; the factors of 15 are 1, 3, 5, 15. Their greatest common factor is 1: with 8 biscuits and 15 sweets, the only fair way is one big bag.

Try it at home

  1. Take 8 buttons and 12 coins. Make as many equal piles as you can, each pile with the same number of buttons and the same number of coins.
  2. What is the greatest common factor of 10 and 15? Of 9 and 16?

Answers: 1. 4 piles, each with 2 buttons and 3 coins. 2. 5; 1.

Words to know

  • common factor - a number that is a factor of two numbers at once, like 3 for 12 and 18
  • greatest common factor (or highest common factor) - the biggest common factor of two numbers

Big idea

A number that divides two numbers exactly is a common factor of both. The biggest one, the greatest common factor, answers "how many equal groups at most?" For 12 and 18 it is 6, and their shared prime factors, 2 × 3, give it straight away.

Lesson page →

Simplest Form

A chocolate bar has 24 small squares: 4 rows of 6. After the film, Tomás counts what his family ate: 18 squares, so 18/24 of the bar. "Is that a lot?" his sister asks. It is hard to tell from 18/24. Is there a simpler name for the same amount?

Dividing the top and the bottom

In Numbers Level 1 we saw that multiplying the top and the bottom of a fraction by the same number gives an equivalent fraction: the same amount with a different name (1/2 = 2/4). It also works the other way: dividing the top and the bottom by the same number gives an equivalent fraction.

Look at the bar again, but see each row of 6 squares as one big piece. Then the bar is 4 big pieces, and the 18 eaten squares fill 3 of them (3 rows of 6 is 18).

  • 18 ÷ 6 = 3 and 24 ÷ 6 = 4, so 18/24 = 3/4.

Three quarters of the bar is gone. That is easy to picture.

A chocolate bar of 4 rows of 6 squares, with 18 squares coloured as eaten. A second picture of the same bar shows each row of 6 as one piece: 3 of the 4 rows are coloured, so 18/24 is the same amount as 3/4

Which number to divide by?

You can only divide by a number that goes exactly into the top and the bottom: a common factor. Tomás could go in small steps:

  • divide both by 2: 18/24 = 9/12;
  • divide both by 3: 9/12 = 3/4.

Or he could use the biggest common factor at once. In The Greatest Common Factor lesson we saw how to find it: the greatest common factor of 18 and 24 is 6. Dividing by 6 gets there in one step: 18/24 = 3/4.

Two ways from 18/24 to 3/4. One way goes in two steps, dividing the top and bottom by 2 and then by 3. The other goes in one step, dividing both by 6, the greatest common factor

Both ways end at the same place. Small steps are fine; the greatest common factor is just quicker.

When to stop

Can 3/4 be made simpler? The factors of 3 are 1 and 3; the factors of 4 are 1, 2 and 4. The only common factor is 1, and dividing by 1 changes nothing. So we stop. A fraction whose top and bottom have no common factor except 1 is in its simplest form.

  • 8/15 is already in simplest form: 8 and 15 share only 1.
  • 10/15 is not: both divide by 5, so 10/15 = 2/3.

Every fraction has exactly one simplest form. That gives a quick check for whether two fractions are the same amount: simplify both. 10/15 and 14/21 look different, but 10/15 = 2/3 and 14/21 = 2/3 (dividing by 7). So they are equal.

Try it at home

  1. Draw a bar of 3 rows of 4 squares and colour 8. What fraction is coloured? Group the squares to find its simplest form.
  2. Put 6/9, 12/16 and 20/30 in simplest form.
  3. Are 6/8 and 9/12 the same amount?

Answers: 1. 8/12 = 2/3. 2. 2/3, 3/4, 2/3. 3. Yes, both are 3/4.

Words to know

  • simplest form - the name of a fraction whose top and bottom have no common factor except 1, like 3/4

Big idea

Dividing the top and bottom of a fraction by the same number keeps the amount the same. Dividing by their greatest common factor gives the simplest form in one step: 18/24 = 3/4. Two fractions are the same amount exactly when their simplest forms are the same.

Lesson page →

When Do They Meet Again?

At a bus station in Nairobi, two buses leave together at 8:00. The blue bus leaves every 4 minutes, and the green bus every 6 minutes. When do they next leave at the same time?

Two lists of jumps

The blue bus leaves at 8:00, then 4 minutes later, then 4 more... Its times after 8:00 are the multiples of 4, as in the Multiples lesson:

  • blue bus: 4, 8, 12, 16, 20, 24 minutes after 8:00, ...
  • green bus: 6, 12, 18, 24 minutes after 8:00, ...

The numbers in both lists are 12, 24, and so on. They are the common multiples of 4 and 6. The first one, the smallest, is 12. So the buses next leave together at 8:12, and again at 8:24.

A number line from 0 to 24. Blue jumps of 4 go above it and green jumps of 6 go below it. They land on the same number at 12 and at 24

The least common multiple

The smallest number that is a multiple of two numbers is called their least common multiple. Some books call it the lowest common multiple: it is the same thing. The least common multiple of 4 and 6 is 12.

It answers "when do they meet again?" and also "how many do I need so it comes out even?" Sausages come in packs of 6, and bread rolls in packs of 8. You want one sausage in each roll, with none of either left over. How few can you buy?

  • packs of sausages give 6, 12, 18, 24, 30, ...
  • packs of rolls give 8, 16, 24, 32, ...

The least common multiple of 6 and 8 is 24: buy 4 packs of sausages (4 × 6 = 24) and 3 packs of rolls (3 × 8 = 24).

Four packs of 6 sausages next to three packs of 8 bread rolls: 24 sausages and 24 rolls, one sausage for each roll

A quicker way to find it

You don't have to write two long lists. Take the multiples of the bigger number, one by one, and stop at the first one the smaller number divides exactly:

  • for 6 and 8: 8? 6 doesn't divide it. 16? No. 24? Yes: 24 ÷ 6 = 4. So the answer is 24.

Multiplying the two numbers always gives a common multiple: 6 × 8 = 48. But it is not always the least one. It is the least only when the two numbers have no common factor except 1, like 3 and 5: their least common multiple is 3 × 5 = 15. When they share a factor, as 6 and 8 share 2, they meet sooner.

Try it at home

  1. Clap every 2 counts and stamp every 3 counts while you count to 12. On which counts do you clap and stamp together?
  2. What is the least common multiple of 3 and 4? Of 4 and 10?
  3. One light flashes every 5 seconds and another every 2. If they flash together now, when do they next flash together?

Answers: 1. 6 and 12. 2. 12; 20. 3. After 10 seconds.

Words to know

  • common multiple - a number that is a multiple of two numbers at once, like 24 for 4 and 6
  • least common multiple (or lowest common multiple) - the smallest common multiple of two numbers

Big idea

Things that repeat every 4 and every 6 meet again at the common multiples of 4 and 6. The first meeting is the least common multiple, 12. It is the product of the two numbers only when they share no factor but 1.

Lesson page →

Adding Fractions with Different Bottoms

Mina and Kai have two pizzas of the same size. Mina eats 1/2 of hers, and Kai eats 1/3 of his. How much pizza did they eat together? Kai says, "1 + 1 is 2, and 2 + 3 is 5, so we ate 2/5 of a pizza." Is Kai right?

Same bottom: just count

When two fractions have the same bottom number, their pieces are the same size, so you can count them together:

  • 1/5 + 2/5 = 3/5: one fifth and two fifths make three fifths.

The bottom number stays 5. It tells the size of the pieces, and adding doesn't change the size of a piece.

Different bottoms: pieces of different sizes

Mina's piece is a half and Kai's is a third. They are different sizes, so we can't count "1 piece + 1 piece" and call it 2 of anything.

Kai's answer can't be right anyway. 2/5 is less than 1/2: it is less than what Mina ate on her own.

The way out is to cut both pizzas into pieces of the same size. Cut each half into 3, and each third into 2: then both pizzas are in sixths.

  • Mina's 1/2 is 3/6 (multiply the top and bottom by 3).
  • Kai's 1/3 is 2/6 (multiply the top and bottom by 2).
  • Now count: 3/6 + 2/6 = 5/6.

Together they ate five sixths of a pizza.

Two pizzas of the same size. On one, half is coloured; on the other, a third. Below, both pizzas are cut into six equal slices: the half is now 3 slices and the third 2 slices, which make 5 sixths together

Which size of piece?

Why sixths? The new bottom number must be one that both 2 and 3 go into exactly, so a common multiple of 2 and 3. The smallest is easiest, the least common multiple from the When Do They Meet Again? lesson. Here it is 6. This shared bottom number is called a common bottom number (mathematicians say "common denominator").

One more: 1/4 + 1/6. The least common multiple of 4 and 6 is 12, so cut both into twelfths:

  • 1/4 = 3/12 and 1/6 = 2/12;
  • 3/12 + 2/12 = 5/12.

Three strips of the same length. The first shows 1/4 coloured, the second 1/6 coloured, and the third is cut into 12 equal parts with 5 coloured: 3 parts from the quarter and 2 from the sixth

Taking away works the same way: 1/2 - 1/3 = 3/6 - 2/6 = 1/6. And if an answer can be simplified, simplify it, as in the Simplest Form lesson: 1/6 + 1/3 = 1/6 + 2/6 = 3/6 = 1/2.

Try it at home

  1. Fold one strip of paper in half and another into quarters. Colour 1/2 of the first and 1/4 of the second. Fold the first strip into quarters too. How many quarters are coloured in all?
  2. Work out 1/2 + 1/4, 1/3 + 1/4 and 1/2 - 1/5.

Answers: 1. 3 quarters, 3/4. 2. 3/4; 7/12; 3/10.

Words to know

  • common bottom number (or common denominator) - one bottom number that two fractions are both written with, so their pieces are the same size

Big idea

You can only count pieces of the same size. To add fractions with different bottoms, first write them with a common bottom number - the least common multiple of the bottoms is easiest - and then add the tops: 1/2 + 1/3 = 3/6 + 2/6 = 5/6.

Lesson page →

Numbers with Shapes

Square Numbers

A chessboard has 8 rows of squares, with 8 squares in each row. A tiled floor in a square room, a box of chocolates 4 across and 4 down, the windows on the front of a tower block: the same shape keeps coming back. Which numbers can be laid out like that, as a perfect square?

Dots in a square

In the Factors lesson we laid out dots as rectangles. A square is a special rectangle: it has as many rows as there are dots in each row.

  • 1 dot is a square: 1 row of 1.
  • 4 dots make 2 rows of 2: 2 × 2 = 4.
  • 9 dots make 3 rows of 3: 3 × 3 = 9.
  • 16 dots make 4 rows of 4: 4 × 4 = 16.
  • 25 dots make 5 rows of 5: 5 × 5 = 25.

A number you get by multiplying a whole number by itself is called a square number. The chessboard has 8 × 8 = 64 squares, so 64 is a square number too.

The first five square numbers as dots: 1 dot; 4 dots in 2 rows of 2; 9 dots in 3 rows of 3; 16 dots in 4 rows of 4; 25 dots in 5 rows of 5

Most numbers are not square

Try 12 dots. You can make 3 rows of 4, or 2 rows of 6, or 1 row of 12. Each of those is a rectangle, but none is a square: the number of rows never matches the number of dots in a row. So 12 is not a square number.

From 1 to 100 there are only ten square numbers: 1, 4, 9, 16, 25, 36, 49, 64, 81 and 100. They get further and further apart as they grow.

Growing a square

Look at how one square becomes the next. To turn the 3 by 3 square into the 4 by 4 square, you add a new row along the bottom and a new column down the side. The new strip is shaped like a corner, an L:

  • 3 dots along the bottom, 3 dots up the side, and 1 dot in the corner: 3 + 3 + 1 = 7.

So 9 + 7 = 16. Do the same at every step, and the corner strips have 1, 3, 5, 7, 9 ... dots. These are the odd numbers, one after another:

  • 1 = 1
  • 1 + 3 = 4
  • 1 + 3 + 5 = 9
  • 1 + 3 + 5 + 7 = 16
  • 1 + 3 + 5 + 7 + 9 = 25

A square of 5 rows of 5 dots built from corner-shaped strips in different colours: 1 dot in the corner, then strips of 3, 5, 7 and 9 dots wrapped around it

Adding the odd numbers in order always gives a square number. The picture shows why, and not just for these five: any square grows into the next one by one more corner strip, and each strip has 2 more dots than the one before.

Try it at home

  1. Lay out 36 buttons or coins as a square. How many rows does it have?
  2. Can 20 buttons make a square? Try it.
  3. Add 1 + 3 + 5 + 7 + 9 + 11. Is the answer a square number?

Answers: 1. 6 rows of 6. 2. No: 4 rows of 4 is 16, and 5 rows of 5 is 25. 3. 36 = 6 × 6, so yes.

Words to know

  • square number - a number of dots that can be laid out as a square; a whole number times itself, like 16 = 4 × 4

Big idea

Square numbers are the numbers of dots that make a perfect square: 1, 4, 9, 16, 25 ... Each one is a whole number times itself, and each is the one before plus the next odd number.

Lesson page →

Triangular Numbers

At a bowling alley, the 10 pins stand in a triangle: 1 at the front, then 2, then 3, then 4. On a snooker table, the 15 red balls are packed into a triangle of 5 rows. Why 10, and why 15? Which numbers can make a triangle like that?

Stairs of dots

Start with 1 dot. Put a row of 2 under it, then a row of 3, then a row of 4. Each row has one more dot than the row above it. The totals are:

  • 1
  • 1 + 2 = 3
  • 1 + 2 + 3 = 6
  • 1 + 2 + 3 + 4 = 10
  • 1 + 2 + 3 + 4 + 5 = 15

These are the triangular numbers: 1, 3, 6, 10, 15, 21, 28 ... To get the next one, add the next counting number: 15 + 6 = 21, then 21 + 7 = 28.

The first five triangular numbers as triangles of dots: 1; 3 in rows of 1 and 2; 6 in rows of 1, 2 and 3; 10 in rows of 1 to 4; 15 in rows of 1 to 5

Two triangles make a rectangle

Take the triangle of 10 dots, with rows of 1, 2, 3 and 4. Make a copy, turn it upside down, and push it against the first one. The two fit together into a rectangle: 4 rows of 5 dots, so 4 × 5 = 20 dots. One triangle is half of that: 20 ÷ 2 = 10.

A triangle of 10 blue dots and the same triangle turned upside down in amber fit together into a rectangle of 4 rows of 5 dots

This works for every triangle. The rectangle always has as many rows as the triangle, and one dot more in each row. That gives a shortcut. To add 1 + 2 + 3 and so on up to 10, picture the triangle with 10 rows. Two of them make a rectangle of 10 × 11 = 110 dots, so one triangle has 110 ÷ 2 = 55.

A famous story says that the German mathematician Carl Friedrich Gauss, as a schoolboy in the 1780s, was told to add up all the numbers from 1 to 100. He had the answer in moments: 100 × 101 = 10,100, and half of that is 5,050. Nobody knows if the story really happened that way, but the shortcut works.

Two neighbours make a square

Now add two triangular numbers that sit next to each other: 6 + 10 = 16, which is 4 × 4, a square number. Try 10 + 15 = 25 = 5 × 5. A square again!

The picture shows why. Cut a square of dots along a slanting line, just beside the corner-to-corner diagonal. You get two stairs: one with 4 rows, and one with 3 rows.

A square of 4 rows of 4 dots split into a triangle of 10 blue dots and a triangle of 6 amber dots

Try it at home

  1. Make the triangle of 21 with coins. How many rows does it have?
  2. Use the shortcut to add 1 + 2 + 3 and so on up to 20.
  3. What is 21 + 28? Is it a square number?

Answers: 1. 6 rows. 2. 20 × 21 = 420, and 420 ÷ 2 = 210. 3. 49 = 7 × 7, so yes.

Words to know

  • triangular number - a number of dots that can be laid out as a triangle with rows of 1, 2, 3 and so on: 1, 3, 6, 10, 15 ...

Big idea

Triangular numbers are 1, 1 + 2, 1 + 2 + 3 and so on. Two copies of a triangle make a rectangle, so adding 1 to 100 is just 100 × 101 ÷ 2. Two triangular numbers next to each other make a square.

Lesson page →

Multiplying Again and Again

Take a sheet of paper and fold it in half. Now it is 2 layers thick. Fold it again: 4 layers. Again: 8 layers. After only a few folds the paper is too thick to fold any more. How fast does the number of layers grow, and is there a short way to write it?

Doubling again and again

Each fold doubles the layers, and doubling means multiplying by 2:

  • 1 fold: 2 layers.
  • 2 folds: 2 × 2 = 4 layers.
  • 3 folds: 2 × 2 × 2 = 8 layers.
  • 4 folds: 2 × 2 × 2 × 2 = 16 layers.
  • 5 folds: 32 layers. 6 folds: 64 layers. 7 folds: 128 layers.

A sheet of paper folded again and again: 1 fold makes 2 layers, 2 folds make 4, 3 folds make 8 and 4 folds make 16

A sheet of everyday paper is hard to fold more than about 7 times. By then it is 128 layers thick, and it gets smaller with every fold. Doubling grows fast.

A short way to write it

Writing 2 × 2 × 2 × 2 × 2 × 2 × 2 takes time, and it is easy to lose count of the 2s. So we write the number once, with a small raised number after it. The small number says how many copies to multiply:

  • 2 × 2 × 2 = 2³. We say "2 to the power 3".
  • 2 × 2 × 2 × 2 × 2 × 2 × 2 = 2⁷ = 128.

The small number counts copies. It is not a number to multiply by: 2³ is 2 × 2 × 2 = 8, not 2 × 3 = 6.

Two powers have names of their own, taken from shapes:

  • 5² = 5 × 5 = 25 is said "5 squared", because 5 rows of 5 dots make a square. Every one of the square numbers is a number squared.
  • 3³ = 3 × 3 × 3 = 27 is said "3 cubed", because 27 small blocks, 3 long, 3 wide and 3 tall, make a cube.

On one side, 5 rows of 5 dots: 5 squared is 25. On the other, a cube made of small blocks, 3 long, 3 wide and 3 tall: 3 cubed is 27

Powers of ten

Multiply 10 by itself, and something neat happens:

  • 10² = 10 × 10 = 100.
  • 10³ = 10 × 10 × 10 = 1,000.
  • 10⁶ = 1,000,000, a million.

The power says how many zeros come after the 1. That is no accident. In Numbers Level 1 we saw that multiplying by ten moves every digit one place to the left. Each 10 in the power moves the 1 one more place. So the places in our numbers - tens, hundreds, thousands and on - are the powers of ten.

A place value chart with four places: thousands, hundreds, tens and ones. Each place is worth ten times the place on its right. Under them: 1,000 is 10 to the power 3, 100 is 10 to the power 2, 10 is 10, and 1

Try it at home

  1. Fold a sheet of paper in half as many times as you can. How many layers did you reach?
  2. Work out 3⁴.
  3. Write 100,000 as a power of ten.

Answers: 2. 3 × 3 × 3 × 3 = 81. 3. 10⁵, because it has 5 zeros.

Words to know

  • power - a number multiplied by itself again and again, written with a small raised number that counts the copies: 2³ = 2 × 2 × 2
  • squared - to the power 2: 5² = 5 × 5
  • cubed - to the power 3: 3³ = 3 × 3 × 3

Big idea

A power is a short way to write multiplying the same number again and again: 2⁴ = 2 × 2 × 2 × 2 = 16. Powers grow very fast, and the powers of ten are the places of our numbers.

Lesson page →

Going Back from a Square

Amira wants to tile a square patio. She has bought exactly 49 square tiles, and the patio must use all of them. How many tiles long should each side be? She knows how to answer "7 × 7 = ?". Now she has the opposite question: which number, times itself, makes 49?

Undoing a square

Squaring starts from the side and gives the whole square: 7² = 7 × 7 = 49. Going back, from the whole square to its side, is called taking the square root. We write it with the sign √:

  • √49 = 7, because 7 × 7 = 49.
  • √9 = 3, because 3 × 3 = 9.
  • √100 = 10, because 10 × 10 = 100.

A square patio of 49 tiles, 7 tiles along each side. Squaring goes from the side, 7, to the whole patio, 49; the square root goes back from 49 to 7

So the square root of a number is the number that, multiplied by itself, makes it. Amira's patio is 7 tiles long on each side.

Finding one by trying

To find √64, try numbers one by one, and multiply each by itself until you get 64:

  • 6 × 6 = 36. Too small.
  • 7 × 7 = 49. Still too small.
  • 8 × 8 = 64. So √64 = 8.

Knowing the square numbers makes this quick. Their square roots are just 1, 2, 3 and so on:

  • √1 = 1, √4 = 2, √9 = 3, √16 = 4, √25 = 5, √36 = 6, √49 = 7, √64 = 8, √81 = 9, √100 = 10.

When it isn't a square number

Amira's neighbour Tomás has 30 tiles. Can he make a square patio with all of them? 5 × 5 = 25 is too few, and 6 × 6 = 36 is too many. No whole number times itself makes 30. So √30 is not a whole number. It lies between 5 and 6, because 30 lies between 25 and 36.

A number line from 20 to 40 with the square numbers 25 and 36 marked. 30 sits between them, so the square root of 30 sits between 5 and 6

This works for any number: find the two square numbers it lies between, and its square root lies between their square roots. Even √2 is not a whole number: it is somewhere between 1 and 2.

Try it at home

  1. What is √36? And √81?
  2. Between which two whole numbers is √50?
  3. You have 20 coins. What is the biggest square you can make with them, and how many coins are left over?

Answers: 1. 6 and 9. 2. Between 7 and 8, because 50 is between 49 and 64. 3. 4 rows of 4, with 4 coins left over.

Words to know

  • square root - the number that, multiplied by itself, makes a given number: √49 = 7 because 7 × 7 = 49
  • √ - the sign for a square root

Big idea

A square root goes back from a square to its side: √49 = 7, because 7 × 7 = 49. Only square numbers have whole square roots. The square root of any other number lies between two whole numbers.

Lesson page →

Proof and Mystery

Checking Is Not Proving

Draw a circle and put two points on it. Join them with a straight line: the circle is cut into 2 parts. With 3 points, joined every way, you get 4 parts. With 4 points, 8 parts. With 5 points, 16. The number of parts doubles each time: 1, 2, 4, 8, 16. So 6 points must give 32 parts. Must it?

A pattern that breaks

Draw it and count. Put 6 points on the circle, not evenly spaced, so that no three lines cross at the same point inside. Join every point to every other one, and count the parts. You get 31, not 32.

Six circles in a row. The first has 1 point and 1 part, the second 2 points and 2 parts, then 3 points and 4 parts, 4 points and 8 parts, 5 points and 16 parts. The last circle has 6 points joined every way and 31 parts, where the doubling pattern said 32

The pattern held five times, and then it broke. Nobody made a mistake in the first five circles: doubling was never the real rule, it only looked like it for small numbers.

This is why mathematicians don't stop at checking. One case that breaks an "every" claim is enough to show it is false. That case is called a counterexample (Logic Level 1 has a lesson on it, "Can You Imagine It Wrong?"). Six points on a circle are a counterexample to "the parts always double".

Why checking is never enough

Suppose you check that odd + odd is even for a hundred pairs of odd numbers: 3 + 5 = 8, 7 + 9 = 16, 21 + 13 = 34, and so on. Every one comes out even. Have you shown it for every odd number?

No. The odd numbers never run out, so however many you try, there are always more you haven't tried. And the circles show that a pattern can break late.

A proof covers every number at once

In Even and Odd, Again we did something better than checking. We drew any odd number as pairs of dots with one dot left over. We didn't say how many pairs: the picture works for 3, for 21 or for a million and one.

Now put two odd numbers together. Each one has a lonely dot. The two lonely dots make a new pair. So every dot has a partner, and the sum is even.

Two odd numbers, each drawn as a row of pairs of dots that could go on for any length, with one orange dot left over. Put together, the two orange dots make a new pair, so no dot is left alone

That is a proof: an argument that shows why something is true, so that it must be true in every case, including the ones nobody will ever check. A proof doesn't get weaker as the numbers get bigger. Once a statement is proved, no counterexample can ever turn up.

Try it at home

  1. Draw the circles with 1 to 5 points yourself and count the parts. Then try 6 points (it takes care: use a big circle and a ruler).
  2. Someone says: "Add 1 to a number and you always get an even number. Look: 1 + 1 = 2, 3 + 1 = 4, 5 + 1 = 6." Find a counterexample.
  3. Explain with pairs of dots why even + even is always even.

Answers: 2. Any even number will do: 2 + 1 = 3 is odd. 3. Pairs added to pairs are still all pairs, with nothing left over.

Words to know

  • counterexample - one case that shows an "every" claim is false
  • proof - an argument that shows why something is true in every case, not just the ones checked
  • prove - to show something is true with a proof

Big idea

Checking examples, however many, can't show something is true for every number: a pattern can hold five times and break on the sixth. A proof shows why it is true, so it covers every number at once, and one counterexample is enough to break a claim that has no proof.

Lesson page →

Primes Never Run Out

In The Sieve of Eratosthenes we found the primes up to 100: there are 25 of them. Between 1 and 10 there are 4 primes, but between 91 and 100 there is only one, 97. The primes get rarer as the numbers grow. So perhaps, somewhere far along, they stop. Is there a last prime?

Checking can't answer this, since the numbers go on forever. It needs a proof.

Make a number from the list

About 2,300 years ago, the Greek mathematician Euclid wrote a book of mathematics called the Elements. This argument is in it. Let's follow it with small numbers first.

Suppose someone says: "The only primes are 2, 3 and 5." Multiply them all together, then add 1:

  • 2 × 3 × 5 = 30
  • 30 + 1 = 31

Now try dividing 31 by each prime on the list:

  • 31 ÷ 2 = 15 remainder 1
  • 31 ÷ 3 = 10 remainder 1
  • 31 ÷ 5 = 6 remainder 1

The list 2, 3, 5 multiplied together to make 30, then 1 added to make 31. Below, 31 divided by 2, by 3 and by 5 each leaves a remainder of 1

Why is the remainder always 1? Because 30 is a multiple of 2, of 3 and of 5. So 31 is one more than a multiple of each of them, and that 1 is left over every time. None of the primes on the list divides 31.

Either way, a new prime

In Factor Trees we saw that every number bigger than 1 is either a prime or can be split into primes. So 31 is either a prime itself, or it is built from primes. But none of those primes can be on the list, because no prime on the list divides it.

Here 31 is a prime, and it is not on the list. Sometimes the new number is not a prime. Take the list 2, 3, 5, 7, 11, 13:

  • 2 × 3 × 5 × 7 × 11 × 13 = 30,030, and 30,030 + 1 = 30,031
  • 30,031 = 59 × 509, and both 59 and 509 are primes

A factor tree for 30,031, which splits into 59 and 509. Beside it, the list 2, 3, 5, 7, 11, 13, with neither 59 nor 509 on it

59 and 509 are not on the list either. Either way, the list was missing a prime.

No list is ever complete

Now the proof. Pretend there is a last prime, so that all the primes fit on one list. Multiply everything on the list and add 1. As we just saw, that number brings a prime that is not on the list. But the list had every prime. That is impossible, so the pretending was wrong: there is no last prime.

This way of proving something - pretend the opposite, and follow it to something impossible - is called proof by impossibility (or proof by contradiction). Logic Level 2 has a lesson on it, "Proof by Impossibility", which uses it to show there is no biggest number.

Euclid didn't find all the primes or check forever. His argument works for any list, however long, so it covers them all at once.

Try it at home

  1. Start with the list 2 and 3. Multiply and add 1. Is the new number a prime?
  2. Do the same with 2, 3, 5 and 7. Check that the new number leaves remainder 1 when divided by each of them.

Answers: 1. 2 × 3 + 1 = 7, a prime. 2. 2 × 3 × 5 × 7 + 1 = 211, which is a prime too; 211 ÷ 7 = 30 remainder 1.

Words to know

  • proof by impossibility (also proof by contradiction) - showing something is true by pretending the opposite and reaching something impossible

Big idea

Multiply every prime on a list and add 1: the new number leaves remainder 1 when divided by each of them, so it brings a prime the list doesn't have. No list can hold all the primes, so they never run out.

Lesson page →

Primes Keep Secrets

When you send a message or pay for something on the internet, what you send crosses many computers on its way. Anyone along the way could read it. Yet it arrives safely locked, and only the right person can open it. Part of the lock is made of prime numbers. How can numbers keep a secret?

Easy one way, hard the other

Here are two primes: 211 and 241. Multiplying them takes a minute with pencil and paper:

  • 211 × 241 = 50,851

Now go the other way. Someone gives you 50,851 and says: "This is two primes multiplied together. Which two?" There is no quick way back. You can only try dividing by the primes in order: 2, 3, 5, 7, 11, 13 and on, until one divides exactly. The smaller prime here is 211, which is the 47th prime. So it takes 47 tries.

On top, a short green arrow: 211 times 241 gives 50,851 in one step. Below, a long amber path going back from 50,851: try 2, try 3, try 5, try 7 and on and on, 47 tries, before 211 is found

In Only One Way to Build It we saw that every number is built from primes in only one way. So 50,851 has exactly one answer, 211 × 241. It is there to be found. Finding it is the hard part.

Make the primes bigger

With primes of 3 digits, 47 tries is a long afternoon, not a secret. But the gap grows fast. A computer multiplies two primes of 300 digits each in a blink. Going back from their product, a number about 600 digits long, is another matter: with every method known today, it would take far longer than anyone could wait - by most estimates, millions of years or more, even with many computers working together.

People have tried. In 2020 a team of mathematicians split a number of 250 digits into its two primes. The work would have taken one computer about 2,700 years; it was shared among thousands of them. The numbers used to lock messages are much longer than that.

A padlock anyone can close

This one-way street is how a lock can be given away in public. Think of a padlock that clicks shut without a key.

  • You make two big primes and keep them secret. You multiply them and tell the world the answer.
  • Anyone can use your big number to lock a message for you. That is like clicking the open padlock shut.
  • Opening it needs the two primes. Only you have them.

An open padlock with a big number on it, which anyone can click shut on a box. Beside it, a key made of two prime numbers, which only its owner has

The first lock of this kind was published in 1977 by three mathematicians, Ron Rivest, Adi Shamir and Leonard Adleman. It is called RSA, from their names, and is still used today. (Clifford Cocks in Britain had found the same idea in 1973, but it was kept a government secret until 1997.)

How the message is actually locked needs more maths than this course. The key idea is the one you can see: multiplying primes is easy, and undoing it is hard.

Try it at home

  1. Multiply 13 × 17. Then give the answer to someone at home and ask them to find the two primes. Who was quicker?
  2. 91 is two primes multiplied together. Which two?

Answers: 1. 221. 2. 7 × 13 (try 2, 3 and 5 first: none of them divides 91).

Words to know

  • RSA - a way of locking messages, from 1977, that works because multiplying two big primes is easy but finding them again is very hard

Big idea

Multiplying two primes is quick, but getting them back from the answer means trying prime after prime. With primes hundreds of digits long that would take far longer than anyone could wait, and that is what keeps messages locked on the internet.

Lesson page →

Questions Nobody Can Answer Yet

Mathematicians notice a pattern, check it, then try to prove it. Sometimes the proof never comes. Some questions about whole numbers are easy to say and a 10-year-old can check them, yet the best mathematicians in the world have failed to answer them for hundreds of years. This last lesson takes you to the edge of what anyone knows.

Two primes for every even number

In 1742 a German mathematician, Christian Goldbach, wrote a letter to his friend Leonhard Euler, one of the greatest mathematicians who ever lived. Goldbach had noticed something about primes. In the form we use today, it says:

  • Every even number bigger than 2 is two primes added together.

Check the first few:

  • 4 = 2 + 2, 6 = 3 + 3, 8 = 3 + 5, 10 = 3 + 7
  • 12 = 5 + 7, 14 = 7 + 7, 16 = 3 + 13, 18 = 5 + 13, 20 = 7 + 13

The even numbers from 4 to 20, each written as two primes added together: 4 = 2 + 2, 6 = 3 + 3, 8 = 3 + 5, and so on up to 20 = 7 + 13

It keeps working. Computers have checked every even number up to 4,000,000,000,000,000,000 (four billion billions), and every one is two primes added together. Euler wrote back that he was sure it was true, but he could not prove it. Nobody has since.

As Checking Is Not Proving showed, all that checking is not a proof: there could be a counterexample further on. Most mathematicians think there isn't one. But thinking is not knowing.

A statement that mathematicians believe and have checked, but cannot prove, is called a conjecture. This one is Goldbach's conjecture.

Twin primes

Of two numbers next to each other, one is always even, and the only even prime is 2. So two primes are never next to each other, except 2 and 3. The closest they can be is with one number between them, like 11 and 13. Such a pair is called twin primes:

  • 3 and 5, 5 and 7, 11 and 13, 17 and 19, 29 and 31, 41 and 43, ...

A number line from 1 to 50 with the primes marked. Arcs join the twin primes: 3 and 5, 5 and 7, 11 and 13, 17 and 19, 29 and 31, 41 and 43

Twin primes get rarer as the numbers grow, but they keep turning up. Do they go on forever, like the primes themselves in Primes Never Run Out? That is the twin prime conjecture, and nobody knows. In 2013 a mathematician called Yitang Zhang proved something close to it, and the work of others since has brought it closer. But the question itself is still open.

Some guesses do get proved

Conjectures are not hopeless. Around 1637, the French lawyer and mathematician Pierre de Fermat wrote a guess about whole numbers in the margin of a book. It was proved in 1994 by Andrew Wiles, more than 350 years later. Once proved, it can never be broken.

Perhaps one of these will be proved in your lifetime. Perhaps by someone who first met them in a lesson like this one.

Try it at home

  1. Write 22, 24 and 30 as two primes added together. Can you find more than one way for 30?
  2. Find the twin primes between 50 and 75.

Answers: 1. 22 = 3 + 19, 24 = 5 + 19, 30 = 7 + 23 (also 11 + 19 and 13 + 17). 2. 59 and 61, 71 and 73.

Words to know

  • conjecture - a statement that is believed and checked on many examples, but not yet proved
  • twin primes - two primes with just one number between them, like 11 and 13

Big idea

A conjecture is a statement checked on many examples but not proved. Goldbach's conjecture (every even number bigger than 2 is two primes added together) and the twin prime conjecture are simple to say, and nobody has proved them yet.

Lesson page →