- Foundation
- About 15 min
- 5 practice questions
Patterns in perfect squares
Use units digits, trailing zeros and sums of odd numbers to spot perfect squares, find the next square quickly, and count the numbers between two squares.
If something looks wrong, please tell us.
By the end of this lesson you can
- Use the units digit and the number of zeros at the end to rule out numbers that cannot be squares.
- Show that the sum of the first n odd numbers is n², and use it to find (n + 1)² from n².
- Count the numbers between consecutive squares and link squares with triangular numbers.
Perfect squares follow beautiful patterns. Knowing them lets you reject a number as "not a square" at a glance, and work out a new square from one you already know. In this lesson you will meet the most useful of these patterns and see why they work.
The units digit of a square
The units digit of a square depends only on the units digit of the number being squared. For example, 23² ends in the same digit as 3² = 9, so 23² ends in 9 (indeed 23² = 529).
| Number ends in | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Its square ends in | 0 | 1 | 4 | 9 | 6 | 5 | 6 | 9 | 4 | 1 |
So a perfect square can only end in 0, 1, 4, 5, 6 or 9. A number ending in 2, 3, 7 or 8 is never a perfect square. Be careful: the rule only works one way. 26 ends in 6 but is not a square. A suitable last digit tells you a number might be a square, never that it is one.
Zeros at the end, and odd or even
If a number ends in k zeros, its square ends in 2k zeros: 30² = 900 (one zero becomes two), 400² = 160000 (two become four). So a perfect square always ends in an even number of zeros. A number such as 16,000, with three zeros, cannot be a perfect square. Also, the square of an even number is even and the square of an odd number is odd: squaring keeps the parity.
Worked example 1: which could be squares?
- 7,283 ends in 3, so it is not a perfect square.
- 16,000 ends in three zeros, an odd number of zeros, so it is not a perfect square.
- 4,900 ends in two zeros and 49 = 7², so 4,900 = 70² is a perfect square.
- 2,116 ends in 6, so it might be a square; checking, 46 × 46 = 2,116, so it is.
Squares are sums of odd numbers
Look at the differences between consecutive squares: 4 − 1 = 3, 9 − 4 = 5, 16 − 9 = 7, 25 − 16 = 9. They are the odd numbers in order. Turning this round, 1 = 1², 1 + 3 = 2², 1 + 3 + 5 = 3², 1 + 3 + 5 + 7 = 4². A picture explains why: to grow a 3 × 3 square of dots into a 4 × 4 square you add an L-shaped border of 3 + 3 + 1 = 7 dots.
Growing squares with L-shaped borders
- 1 dot 1 = 1²
- Add an L of 3 1 + 3 = 4 = 2²
- Add an L of 5 4 + 5 = 9 = 3²
- Add an L of 7 9 + 7 = 16 = 4²
- Add an L of 9 16 + 9 = 25 = 5²
The n-th odd number is 2n − 1 (the 1st is 1, the 10th is 19). So the sum of the first n odd numbers is n², and to go from n² to (n + 1)² you add the (n + 1)-th odd number, which is 2n + 1.
1 + 3 + 5 + … + (2n − 1) = n², and (n + 1)² = n² + (2n + 1).
Worked example 2: the next square from a known one
Given 40² = 1600, find 41². The 41st odd number is 2 × 41 − 1 = 81. So 41² = 1600 + 81 = 1681. Check: 41 × 41 = 41 × 40 + 41 = 1640 + 41 = 1681. In the same way, from 27² = 729: the 28th odd number is 55, so 28² = 729 + 55 = 784.
Worked example 3: testing by subtracting odd numbers
Is 60 a perfect square? Subtract 1, 3, 5, ... in turn: 60 − 1 = 59, 59 − 3 = 56, 56 − 5 = 51, 51 − 7 = 44, 44 − 9 = 35, 35 − 11 = 24, 24 − 13 = 11, 11 − 15 is below zero. We never land exactly on 0, so 60 is not a perfect square. For 49 the subtraction reaches exactly 0 after 7 odd numbers (1 to 13), so 49 = 7².
Numbers between squares, and triangular numbers
Between n² and (n + 1)² the gap is 2n + 1, so there are 2n whole numbers strictly between them, none of them squares. Between 12² = 144 and 13² = 169 there are 169 − 144 − 1 = 24 = 2 × 12 numbers. Squares also hide in the triangular numbers 1, 3, 6, 10, 15, 21, ...: any two neighbours add up to a square, for example 10 + 15 = 25 = 5² and 15 + 21 = 36 = 6².
Key takeaways: squares end only in 0, 1, 4, 5, 6 or 9, and only in an even number of zeros. Squaring keeps a number odd or even. The sum of the first n odd numbers is n², so (n + 1)² = n² + 2n + 1, and there are 2n numbers between n² and (n + 1)². A number is a square exactly when subtracting 1, 3, 5, ... lands on 0.
Check your understanding
-
1. Which of these can be ruled out as a perfect square just by looking at its last digit?
- 1,296
- 3,025
- 5,478
- 7,921
Show answer
Answer: C. Perfect squares never end in 2, 3, 7 or 8. 5,478 ends in 8, so it cannot be a square. The others end in 6, 5 and 1, which squares can end in (in fact 1,296 = 36², 3,025 = 55² and 7,921 = 89²).
-
2. What is the sum of the first 15 odd numbers?
- 225
- 210
- 240
- 256
Show answer
Answer: A. The sum of the first n odd numbers is n². With n = 15 the sum is 15² = 225. (The 15th odd number is 2 × 15 − 1 = 29, so this is 1 + 3 + ... + 29.)
-
3. Given 50² = 2500, what is 51²?
- 2551
- 2601
- 2650
- 2701
Show answer
Answer: B. To go from 50² to 51², add the 51st odd number, 2 × 51 − 1 = 101. So 51² = 2500 + 101 = 2601. Check: 51 × 51 = 2550 + 51 = 2601.
-
4. How many whole numbers lie strictly between 25² and 26²?
- 25
- 49
- 51
- 50
Show answer
Answer: D. Between n² and (n + 1)² there are 2n numbers. With n = 25 that is 2 × 25 = 50. Check: 26² − 25² = 676 − 625 = 51, and the numbers strictly between are 626 to 675, which is 51 − 1 = 50 numbers.
-
5. A whole number ends in exactly five zeros. What can you say about it?
- It must be a perfect square
- Its square ends in five zeros
- It cannot be a perfect square
- It must be odd
Show answer
Answer: C. A perfect square always ends in an even number of zeros, because each zero of the number becomes two zeros in its square. Five is odd, so the number cannot be a perfect square. Its square would end in ten zeros, and a number ending in 0 is even, not odd.
Sign in to keep track of the lessons you finish.