Square, cube and triangle numbers
Square numbers, cube numbers, triangle numbers and their cousins, and how to find the 15th one without listing them all.
Some numbers have shapes. More than 2,000 years ago, Greek thinkers are said to have set out pebbles in rows. They noticed that 1, 4, 9 and 16 pebbles make perfect squares, while 1, 3, 6 and 10 pebbles make perfect triangles. You can still see these shapes today. The 10 pins in bowling stand in a triangle of 1, 2, 3 and 4. The 15 red balls in snooker make a triangle of 1, 2, 3, 4 and 5. Once you know these famous number families, many patterns that look hard become easy to spot.
Square numbers
A square number is a number multiplied by itself. We write 4 × 4 as 4², and say "4 squared". It is 16, and 16 dots fit in 4 rows of 4: a square.
The first twelve square numbers are 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121 and 144. They are worth knowing by heart. There is a table of them, next to the cube numbers, further down this page.
Look at the gaps between the square numbers: 3, 5, 7, 9, 11, ... They are the odd numbers, each one 2 bigger than the last. The dots show why. To turn a square of dots into the next square, you add an L-shaped layer along two sides, and each L has 2 more dots than the one before. So if you forget a square, you can build it from the one before.
Example 1
What number comes next? 64, 81, 100, 121, ?
- These are 8², 9², 10² and 11².
- So the next one is 12² = 12 × 12 = 144.
- Check with the gaps: 17, 19, 21. The next gap is 23, and 121 + 23 = 144.
Answer: 144
Square numbers can also go down. In 100, 81, 64, 49 the numbers are 10², 9², 8², 7², so next is 6² = 36.
The 15th square number
To find a square number far along the list, you never need to write the list. The number in place 15 is simply 15 squared.
Example 2
What is the 15th number in 1, 4, 9, 16, ...?
- The 1st number is 1², the 2nd is 2², the 3rd is 3².
- So the 15th is 15² = 15 × 15.
- 15 × 15 = 150 + 75 = 225.
Answer: 225
Squares plus or minus a little
Sometimes a pattern has the same gaps as the squares, 3, 5, 7, 9, but the numbers are not squares. Then each number is a square with a little added or taken away.
Example 3
What number comes next? 2, 5, 10, 17, 26, ?
- The gaps are 3, 5, 7, 9. The next gap is 11.
- 26 + 11 = 37.
- Another way to see it: take 1 from each number and you get 1, 4, 9, 16, 25. So each number is a square plus 1, and next is 36 + 1 = 37.
Answer: 37
In the same way, 0, 3, 8, 15, 24 is each square minus 1, so next is 36 − 1 = 35. And 3, 6, 11, 18, 27 is each square plus 2, so next is 36 + 2 = 38.
Cube numbers
A cube number is a number multiplied by itself three times. We write 3 × 3 × 3 as 3³ and say "3 cubed". It is 27, and 27 small blocks build a cube that is 3 long, 3 wide and 3 high.
| n | Square, n² | Cube, n³ |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 4 | 8 |
| 3 | 9 | 27 |
| 4 | 16 | 64 |
| 5 | 25 | 125 |
| 6 | 36 | 216 |
| 7 | 49 | 343 |
| 8 | 64 | 512 |
| 9 | 81 | 729 |
| 10 | 100 | 1000 |
| 11 | 121 | 1331 |
| 12 | 144 | 1728 |
Example 4
What number comes next? 27, 64, 125, 216, ?
- These are 3³, 4³, 5³ and 6³.
- Next is 7³ = 7 × 7 × 7.
- 7 × 7 = 49, and 49 × 7 = 343.
Answer: 343
Triangle numbers
A triangle number is what you get when you add 1, then 2, then 3, and so on. Picture rows of dots: 1 dot on top, 2 under it, 3 under those. Each new row is one dot longer.
| Place | Sum | Triangle number | Gap |
|---|---|---|---|
| 1st | 1 | 1 | start |
| 2nd | 1 + 2 | 3 | +2 |
| 3rd | 1 + 2 + 3 | 6 | +3 |
| 4th | 1 + 2 + 3 + 4 | 10 | +4 |
| 5th | 1 + ... + 5 | 15 | +5 |
| 6th | 1 + ... + 6 | 21 | +6 |
| 7th | 1 + ... + 7 | 28 | +7 |
| 8th | 1 + ... + 8 | 36 | +8 |
| 9th | 1 + ... + 9 | 45 | +9 |
| 10th | 1 + ... + 10 | 55 | +10 |
Example 5
What number comes next? 21, 28, 36, 45, ?
- The gaps are 7, 8, 9. Each gap is 1 bigger than the last.
- The next gap is 10.
- 45 + 10 = 55.
Answer: 55
To find a triangle number far along the list, there is a rule. The triangle number in place n is 1 + 2 + 3 + ... + n, and that sum is n times the next number, all divided by 2.
Remember
triangle number in place n = (n × (n + 1))/2
The lesson on quick sums shows why this works.
Example 6
What is the 10th number in 1, 3, 6, 10, ...?
- These are triangle numbers, so the 10th is 1 + 2 + 3 + ... + 10.
- Use the rule: (10 × 11)/2 = 110/2 = 55.
Answer: 55
Rectangle numbers
The numbers 2, 6, 12, 20, 30 are 1 × 2, 2 × 3, 3 × 4, 4 × 5, 5 × 6. Each is a number times the next number up. As dots they make rectangles where one side is one dot longer than the other, so here we call them rectangle numbers. Their usual names are oblong numbers or pronic numbers. Each one is exactly double a triangle number: 2 × 15 = 30.
Example 7
What number comes next? 2, 6, 12, 20, 30, ?
- The gaps are 4, 6, 8, 10. The next gap is 12.
- 30 + 12 = 42.
- Check: the pattern is 1 × 2, 2 × 3, ... 5 × 6, so next is 6 × 7 = 42.
Answer: 42
A number to the power of itself
One rare pattern multiplies each number by itself as many times as the number says: 1¹ = 1, 2² = 4, 3³ = 27, 4⁴ = 256. It grows very quickly. Next is 5⁵ = 5 × 5 × 5 × 5 × 5 = 3125.
Try it yourself
1.What number comes next? 36, 49, 64, 81, ?
Show the answer
100
These are 6², 7², 8², 9². Next is 10² = 100.
2.What is the 20th number in 1, 4, 9, 16, ...?
Show the answer
400
They are the square numbers, so the 20th is 20² = 20 × 20 = 400.
3.What number comes next? 125, 216, 343, ?
Show the answer
512
These are 5³, 6³, 7³. Next is 8³ = 64 × 8 = 512.
4.What number comes next? 5, 8, 13, 20, 29, ?
Show the answer
40
The gaps are 3, 5, 7, 9, so the next is 11: 29 + 11 = 40. Each number is a square plus 4.
5.What is the 12th triangle number?
Show the answer
78
(12 × 13)/2 = 156/2 = 78.
6.What number comes next? 56, 72, 90, ?
Show the answer
110
These are 7 × 8, 8 × 9, 9 × 10. Next is 10 × 11 = 110.
Ready to test yourself?
Play Patterns: 20 seconds per question, and it gets harder as you go.