Class 8 › Mathematics › Chapter 1

A Square and a Cube

Square numbers and cube numbers, their patterns and properties, square roots and cube roots, using prime factorisation and estimation, and the links with odd numbers and triangular numbers.

1. The Locker Puzzle and Factors

100 lockers, 100 people. Person $k$ toggles every $k$-th locker (opens it if closed, closes it if open). Which lockers stay open at the end?

  • Times toggled = number of factors: locker $n$ is toggled by Person $k$ exactly when $k$ is a factor of $n$. Locker 6 is toggled by persons 1, 2, 3, 6 (four times, so it ends closed).
  • Odd number of toggles ⇒ open; even ⇒ closed.
  • Partner factors: factors come in pairs whose product is the number (for 6: $1 \times 6$ and $2 \times 3$), so the count is usually even.
  • The count is odd only when one pair has both numbers equal (such as $6 \times 6$ for 36). Such numbers are squares.
6

4 factors (even)

$1 \times 6$, $2 \times 3$. Factors: 1, 2, 3, 6. Locker ends closed.

4

3 factors (odd)

$1 \times 4$, $2 \times 2$. Factors: 1, 2, 4. Locker ends open.

36

9 factors (odd)

Pairs: $1\times36$, $2\times18$, $3\times12$, $4\times9$, $6\times6$. Locker ends open.

Result: only squares have an odd number of factors. Open lockers: $1, 4, 9, 16, 25, 36, 49, 64, 81, 100$.
Primes have exactly two factors (1 and itself), so they are toggled exactly twice. The first five primes give the code $2\text{-}3\text{-}5\text{-}7\text{-}11$.
2. Square Numbers
Square number: a number that is the product of a number with itself, $n \times n = n^2$ (read "$n$ squared"). Squares of natural numbers are called perfect squares: $1, 4, 9, 16, 25, \dots$
  • Why "square"? The area of a square of side $n$ is $n \times n = n^2$. Side 5 gives area 25; side 10 gives area 100.
  • Not only whole numbers: sides can be fractions or decimals. $\left(\tfrac{3}{5}\right)^2 = \tfrac{9}{25}$ and $(2.5)^2 = 6.25$.
  • The square of a negative number is positive: $(-8)^2 = 64$.
3. Patterns and Properties of Perfect Squares
Number ends in01 or 92 or 83 or 74 or 65
Its square ends in014965
  • Units digit of a square is always $0, 1, 4, 5, 6$ or $9$.
  • Test for NON-squares: if a number ends in $2, 3, 7$ or $8$, it is definitely not a square.
  • Warning: ending in $0, 1, 4, 5, 6, 9$ does not guarantee a square. $16$ and $36$ are squares but $26$ is not.
  • Trailing zeros: a number ending in $k$ zeros has a square ending in $2k$ zeros (e.g. $700^2 = 490000$). So a square can only have an even number of zeros at the end.
  • Parity: square of an even number is even; square of an odd number is odd.
  • Quick check: $34^2, 46^2, 56^2, 74^2$ all end in 6 (units digit of the number is 4 or 6).
4. Perfect Squares and Odd Numbers
Sum of odd numbers $$1 + 3 + 5 + \dots + (2n-1) = n^2$$
1 + 3 + 5 + 7 = 16 = 4²
Each inverted "L" adds the next odd number to the square.
  • Differences of consecutive squares: $4-1=3$, $9-4=5$, $16-9=7$, … and in general $(n+1)^2 - n^2 = 2n+1$.
  • $n$th odd number $= 2n - 1$. So the 36th odd number is $71$.
  • Using it: given $35^2 = 1225$, then $36^2 = 1225 + 71 = 1296$. Similarly $126^2 = 125^2 + 251$.
  • Test for a perfect square: subtract $1, 3, 5, \dots$ in turn from the number. If you reach exactly $0$, it is a perfect square, and the number of subtractions is its root. $25 \to 24 \to 21 \to 16 \to 9 \to 0$ (5 steps), so $25 = 5^2$. For $38$ you go past $0$ (to $-11$), so it is not a square.
  • Numbers between consecutive squares: between $n^2$ and $(n+1)^2$ there are $2n$ numbers (if $p, q$ are consecutive squares, $q - p - 1$). E.g. between $16^2$ and $17^2$ there are $32$; between $99^2$ and $100^2$ there are $198$.
5. Perfect Squares and Triangular Numbers

Triangular numbers: $1, 3, 6, 10, 15, \dots$ (dots arranged in a triangle).

Relation The sum of two consecutive triangular numbers is a perfect square. $$1+3=2^2,\quad 3+6=3^2,\quad 6+10=4^2,\quad 10+15=5^2$$
6 (triangle) + 3 (triangle) = 9 = 3²
A $3 \times 3$ square splits into two triangles of 6 and 3 dots.
6. Square Roots
Square root: if $y = x^2$, then $x$ is a square root of $y$. Square root is the inverse of squaring. The area of a square is 49 sq. cm, so its side is $7$ cm: $\sqrt{49} = 7$.
  • Two roots: every perfect square has two integer square roots, one positive and one negative. $8^2 = 64$ and $(-8)^2 = 64$, so the roots of $64$ are $+8$ and $-8$.
  • Symbol: in this chapter $\sqrt{\ }$ denotes the positive square root. $\sqrt{64} = 8$, $\sqrt{9} = 3$, $\sqrt{n^2} = n$ for positive $n$.
7. Is It a Perfect Square? Finding the Root

Units-digit rules can rule a number out (327 is not a square) but cannot confirm one (576?). Four methods:

Method 1

Listing squares

Square $21, 22, 23, \dots$ until you reach or pass the number. $20^2 = 400, \dots, 24^2 = 576$. Slow for big numbers.

Method 2

Repeated subtraction

Subtract $1, 3, 5, \dots$ until you hit $0$. For $81$ it takes 9 steps, so $\sqrt{81}=9$. Time-consuming for large numbers like $729$.

Method 3

Prime factorisation

Split the prime factors into two identical groups (pairs). One group multiplies to the root.

Method 4

Estimation

Trap the root between known squares, use the units digit to shortlist, then test the midpoint.

Prime factorisation method (worked)
$324$: $2 \times 2 \times 3 \times 3 \times 3 \times 3 = (2 \times 2)(3 \times 3)(3 \times 3)$. All primes pair up, so it is a perfect square and $\sqrt{324} = 2 \times 3 \times 3 = 18$.
$156$: $2 \times 2 \times 3 \times 13$. The $3$ and $13$ are unpaired, so $156$ is not a perfect square.
$1156 = 2^2 \times 17^2$ is a perfect square ($\sqrt{1156} = 34$). $2800 = 2^4 \times 5^2 \times 7$ is not (the $7$ is unpaired).
Estimation method (worked): $\sqrt{1936}$
1. $1600 = 40^2 < 1936 < 50^2 = 2500$, so $40 < \sqrt{1936} < 50$.
2. Units digit is $6$, so the root ends in $4$ or $6$: it is $44$ or $46$.
3. $45^2 = 2025 > 1936$, so the root is below $45$. Hence $\sqrt{1936} = 44$.
  • Make it a square (multiply): multiply by the unpaired primes. $9408 = 2^6 \times 3 \times 7^2$, the $3$ is unpaired, so multiply by $3$ to get $2^6 \times 3^2 \times 7^2$, with root $8 \times 3 \times 7 = 168$.
  • Smallest square divisible by given numbers: take the LCM, then pair up leftover primes. For $4, 9, 10$: LCM $= 180 = 2^2 \times 3^2 \times 5$, multiply by $5$ to get $900$.
8. Estimating Square Roots of Non-Squares
  • Bracket it between consecutive perfect squares, then see which one is closer.
  • $\sqrt{250}$: $15^2 = 225 < 250 < 256 = 16^2$, so $15 < \sqrt{250} < 16$. Since $256$ is much closer to $250$, $\sqrt{250}$ is a little less than 16 (approximately $16$).
  • Real use: a square cloth of area $125$ cm² lies between $11^2 = 121$ and $12^2 = 144$, so the largest square handkerchief with an integer side is $11$ cm.
9. Cubic Numbers
Cube number (perfect cube): a number obtained by multiplying a number by itself three times: $n \times n \times n = n^3$ (read "$n$ cubed"). $1 = 1^3$, $8 = 2^3$, $27 = 3^3$.
$n$12345678910
$n^3$1827641252163435127291000
  • Why "cube": a cube of edge $n$ is made of $n \times n \times n$ unit cubes. A $4$-unit cube has $4$ layers of $4 \times 4 = 16$, so $64$ unit cubes.
  • Units digit: a cube can end in any digit. $\;1\to1,\ 2\to8,\ 3\to7,\ 4\to4,\ 5\to5,\ 6\to6,\ 7\to3,\ 8\to2,\ 9\to9,\ 0\to0$. Cubes ending in 8 exist ($2^3 = 8$).
  • Trailing zeros: a number ending in $k$ zeros has a cube ending in $3k$ zeros, so a cube can never end with exactly two zeros.
  • Parity: the cube of an odd number is odd; of an even number is even.
  • Digits: there are $2$ one-digit cubes ($1, 8$), $2$ two-digit cubes ($27, 64$) and $5$ three-digit cubes ($125, 216, 343, 512, 729$).
  • Other numbers: fractions, decimals and negatives can be cubed. $\left(\tfrac{4}{6}\right)^3 = \tfrac{64}{216}$, $(-6)^3 = -216$ (a negative number has a negative cube).
  • Factors: cubes do not always have an odd number of factors ($8$ has $1, 2, 4, 8$). That property belongs to squares.
Taxicab (Hardy–Ramanujan) numbers: numbers that are the sum of two positive cubes in two different ways.
$1729 = 1^3 + 12^3 = 9^3 + 10^3$ (the smallest). Next: $4104 = 2^3 + 16^3 = 9^3 + 15^3$ and $13832 = 2^3 + 24^3 = 18^3 + 20^3$.
10. Perfect Cubes and Consecutive Odd Numbers
Pattern $$1 = 1^3,\quad 3+5 = 2^3,\quad 7+9+11 = 3^3,\quad 13+15+17+19 = 4^3,\quad 21+23+25+27+29 = 5^3$$
  • $n^3$ is the sum of $n$ consecutive odd numbers, taken in order from the start of the odd numbers (1 term, then 2, then 3, …).
  • The group of $10$ odd numbers $91 + 93 + \dots + 109$ is the $10$th group, so its sum is $10^3 = 1000$ (no addition needed).
11. Cube Roots
Cube root: if $y = x^3$, then $x = \sqrt[3]{y}$. So $\sqrt[3]{8} = 2$, $\sqrt[3]{27} = 3$, $\sqrt[3]{1000} = 10$, and $\sqrt[3]{n^3} = n$.
Prime factorisation method
Rule: each prime factor of a number appears three times in its cube. So a number is a perfect cube if its prime factors split into three identical groups (triplets).
$3375$: $3^3 \times 5^3 = (3 \times 5)^3 = 15^3$, so $\sqrt[3]{3375} = 15$.
$500$: $2 \times 2 \times 5 \times 5 \times 5$. The $2$s do not form a triplet, so $500$ is not a perfect cube.
$10648$: $2^3 \times 11^3$, so $\sqrt[3]{10648} = 22$.
  • Make it a cube: multiply by what completes each incomplete triplet. $1323 = 3^3 \times 7^2$, so multiply by $7$ to get $3^3 \times 7^3$.
  • Guessing a cube root (for a number you know is a cube):
    1. The units digit of the cube fixes the units digit of the root (use the table in Section 9).
    2. Bracket the cube between cubes of tens ($10^3 = 1000$, $20^3 = 8000$, $30^3 = 27000$, …) to get the tens digit.
    Example: $1331$ ends in $1$ and lies between $1000$ and $8000$, so the root is $11$. Similarly $\sqrt[3]{4913} = 17$, $\sqrt[3]{12167} = 23$, $\sqrt[3]{32768} = 32$.
12. Successive Differences
Sequence and its differencesConstant at
Squares149162536
Level 1357911
Level 222222 levels (value 2)
Cubes182764125216
Level 1719376191
Level 212182430
Level 36663 levels (value 6)
  • Squares need two levels of differences to become constant; cubes need three.
13. A Pinch of History
  • Babylonians (about 1700 BCE) made the first known lists of squares and cubes on clay tablets, to find roots quickly in land measurement and building.
  • Sanskrit terms: varga = square (figure, area and power); ghana = cube (solid and power); varga-varga = fourth power. In use at least from the 3rd century BCE. Aryabhata (499 CE) defines varga as a four-sided equal figure and its area.
  • Why "root"? Sanskrit mula (root of a plant, origin) gave varga-mula (square root) and ghana-mula (cube root). Arabic jidhr and Latin radix followed. Brahmagupta (628 CE) also used pada for root.
14. Summary and Quick Revision
SquaresCubes
Definition$n \times n = n^2$$n \times n \times n = n^3$
Prime factorsSplit into 2 identical groups (pairs)Split into 3 identical groups (triplets)
Units digitOnly $0, 1, 4, 5, 6, 9$Any digit $0$ to $9$
Trailing zerosEven number ($2k$)Multiple of 3 ($3k$)
Odd-number linkSum of first $n$ odd numbers $= n^2$$n^3$ = sum of $n$ consecutive odd numbers (in groups)
FactorsOdd number of factorsNo such rule ($8$ has 4)
Root$\sqrt{n^2} = n$ (positive root)$\sqrt[3]{n^3} = n$
Differences constant atLevel 2 (value 2)Level 3 (value 6)
Is it a square?

Quick checks

Ends in 2, 3, 7, 8 ⇒ no. Odd number of trailing zeros ⇒ no. Otherwise pair the prime factors.

Make it perfect

Unpaired factors

Multiply by the missing primes to complete pairs (square) or triplets (cube). To divide instead, remove the unpaired primes.

Common mistakes:
• Assuming a number ending in $0, 1, 4, 5, 6, 9$ must be a square.
• Saying a cube can only end in the same digits as squares (cubes can end in any digit).
• Mixing up powers with multiples: $n^2$ means $n \times n$, not $2n$; $n^3$ means $n \times n \times n$, not $3n$.
• Forgetting that a negative number has a negative cube but a positive square.
• Counting the number of zeros wrongly: squares double them, cubes triple them.
• Grouping prime factors in pairs when you need triplets (and the other way round).
• Claiming all cubes have an odd number of factors.