Back to ShikshaPal Explainer Class 8 / Math
ShikshaPal
Chapter 1 · Number Theory

A Square and A Cube

Discover why some numbers are special and can be built in perfect geometric shapes.

Everyday Mystery

The Mystery of the 100 Lockers

Queen Ratnamanjuri left her inheritance locked in 100 lockers. 100 people enter a room one by one. Person 1 opens every locker. Person 2 toggles (opens or closes) every 2nd locker. Person 3 toggles every 3rd locker, and so on.

Which lockers will be open at the end?

Here's the twist: Khoisnam figured out the answer instantly without watching all 100 people!

Hint

Think about how many times each locker gets toggled. A locker number tells you who will touch it!

For example, locker #6 gets touched by people 1, 2, 3, and 6 (the factors of 6). That's 4 times—an even number, so it ends up closed.

Feynman Bridge — Think of it this way…

Most numbers can be paired up into factors. For example, 6 pairs like this:

6 = 1 × 6 (person 1 and person 6 toggle it)

6 = 2 × 3 (person 2 and person 3 toggle it)

Total toggles: 4 (even) → Locker stays closed

But some numbers break the pattern! Look at 4:

4 = 1 × 4

4 = 2 × 2 (same number twice!)

Total toggles: 3 (odd) → Locker stays open

The secret: Numbers that are the product of two identical numbers always have an odd number of factors. These are the square numbers, and Khoisnam knew the open lockers would be 1, 4, 9, 16, 25... the perfect squares!

What Are Square Numbers?

Understanding the Name

A square number is what you get when you multiply a number by itself.

3 × 3 = 9 (we write this as 3²)
5 × 5 = 25 (we write this as 5²)
10 × 10 = 100 (we write this as 10²)

Why "Square"?

Imagine arranging dots in a perfect square grid:

• • •
• • •
• • •
3 rows × 3 columns = 9 dots = 3²

The First Few Square Numbers

Build them step by step:

Side Length Calculation Square Number
11 × 11
22 × 24
33 × 39
44 × 416
55 × 525

A Pattern in the Last Digit

Look at what digit squares end in:

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

Squares only end in: 0, 1, 4, 5, 6, or 9

Never in: 2, 3, 7, or 8

Why? Because of the last digit of the base number (1 squared ends in 1, 2 squared ends in 4, etc.)

Sum of Odd Numbers = Squares!

Here's a mind-bending pattern:

1 = 1²
1 + 3 = 4 = 2²
1 + 3 + 5 = 9 = 3²
1 + 3 + 5 + 7 = 16 = 4²
1 + 3 + 5 + 7 + 9 = 25 = 5²

Why? Each new square is one row taller. That row has an odd number of dots (the next odd number in the sequence).

Square Roots (The Reverse Process)

If 7 × 7 = 49, then 7 is the square root of 49. We write it as √49 = 7.

√9 = 3 (because 3 × 3 = 9)

√25 = 5 (because 5 × 5 = 25)

√100 = 10 (because 10 × 10 = 100)

Key fact: Every perfect square has two square roots. For example, both 8 and −8 squared equal 64. But we usually use the positive one.

Deep Dive · Common Error Trap: Confusing Multiplication and Exponents

WRONG: 4 × 4 × 4 = 4² = 16

NO! This is 4³ (four cubed), not 4² (four squared)!

RIGHT: 4 × 4 = 4² = 16

Remember: The small number (exponent) tells you how many times to multiply. 4² means "multiply 4 by itself 2 times." 4³ means "multiply 4 by itself 3 times."

What Are Cubic Numbers?

From 2D to 3D

While squares are 2D grids, cubes are 3D blocks. A cubic number is what you get when you multiply a number by itself three times.

2 × 2 × 2 = 8 (we write this as 2³)
3 × 3 × 3 = 27 (we write this as 3³)
5 × 5 × 5 = 125 (we write this as 5³)

Building a 3D Cube

Imagine stacking unit cubes (1×1×1 blocks) to build a larger cube:

A cube with side length 2: You need 2 layers, each with 2 × 2 = 4 cubes. Total: 2 × 2 × 2 = 8 unit cubes

A cube with side length 3: You need 3 layers, each with 3 × 3 = 9 cubes. Total: 3 × 3 × 3 = 27 unit cubes

The First Few Cubic Numbers

Side Length Calculation Cubic Number
11 × 1 × 11
22 × 2 × 28
33 × 3 × 327
44 × 4 × 464
55 × 5 × 5125

Prime Factorization (Finding if a Number is a Perfect Cube)

A shortcut: Break the number into prime factors. If you can group them into three identical sets, it's a perfect cube.

27 = 3 × 3 × 3 = (3) × (3) × (3) → Perfect cube!
So ∛27 = 3

8 = 2 × 2 × 2 = (2) × (2) × (2) → Perfect cube!
So ∛8 = 2

Cube Roots (The Reverse Process)

Just like square roots "undo" squares, cube roots "undo" cubes. We write it as ∛.

∛8 = 2 (because 2 × 2 × 2 = 8)

∛27 = 3 (because 3 × 3 × 3 = 27)

∛125 = 5 (because 5 × 5 × 5 = 125)

Key fact: Unlike square roots, each perfect cube has only ONE cube root (no ± confusion).

Deep Dive · The Hardy-Ramanujan Number

Mathematician Srinivasa Ramanujan was in a hospital when his friend G.H. Hardy visited in taxicab number 1729. Hardy said it was "a rather dull number." Ramanujan immediately replied: "No, Hardy, it is a very interesting number!"

Why? Because 1729 is the smallest number that can be expressed as the sum of two cubes in TWO different ways:

1729 = 1³ + 12³ = 1 + 1728 = 1729
1729 = 9³ + 10³ = 729 + 1000 = 1729

Numbers like 1729 are called taxicab numbers. Can you find other numbers that are the sum of two cubes in multiple ways?

Deep Dive · Common Error Trap: Negative Bases and Odd/Even Powers

WRONG: (−2)³ = −8, so negative numbers squared are always negative

Actually, it depends on the exponent!

(−2)² = (−2) × (−2) = 4 (POSITIVE, because two negatives multiply to positive)

(−2)³ = (−2) × (−2) × (−2) = −8 (NEGATIVE, because three negatives give negative)

Rule: Negative base with even power = positive. Negative base with odd power = negative.

Socratic Sandbox — Test Your Thinking

Level 1 · Predict

Square Challenge: Which of these is NOT a perfect square? A) 49 B) 81 C) 50 D) 100

Reveal Answer

Answer: C) 50. Why? 50 ends in 0, which looks like it could be a square (like 10² = 100). But remember the rule: squares only end in 0, 1, 4, 5, 6, or 9. 50 ends in 0, so you need to check further. There's no whole number that when squared equals 50. (7² = 49, 8² = 64.)

Level 1 · Predict

Cubic Pattern: If 2³ = 8, what is 4³? A) 12 B) 32 C) 64 D) 128

Reveal Answer

Answer: C) 64. Why? 4³ = 4 × 4 × 4 = 16 × 4 = 64. Notice that when you double the base (from 2 to 4), the cube gets 8 times bigger (from 8 to 64). That's because 2³ is multiplied by 2³ again!

Level 1 · Predict

Odd Sum Pattern: Using the pattern 1 + 3 = 4 = 2², what is 1 + 3 + 5? A) 8 B) 9 C) 10 D) 12

Reveal Answer

Answer: B) 9 = 3². Why? The pattern is that the sum of the first n odd numbers equals n². Here we have three odd numbers (1, 3, 5), so the answer is 3² = 9.

Level 2 · Why

Why Squares End in Only Certain Digits: Explain why squares can only end in 0, 1, 4, 5, 6, or 9. (Hint: Think about what the last digit of n determines.)

Reveal Answer

Explanation: The last digit of n² depends only on the last digit of n. Let's check:

  • If n ends in 0: 0² = 0 (ends in 0)
  • If n ends in 1: 1² = 1 (ends in 1)
  • If n ends in 2: 2² = 4 (ends in 4)
  • If n ends in 3: 3² = 9 (ends in 9)
  • If n ends in 4: 4² = 16 (ends in 6)
  • If n ends in 5: 5² = 25 (ends in 5)
  • If n ends in 6: 6² = 36 (ends in 6)
  • If n ends in 7: 7² = 49 (ends in 9)
  • If n ends in 8: 8² = 64 (ends in 4)
  • If n ends in 9: 9² = 81 (ends in 1)

The only last digits that appear are 0, 1, 4, 5, 6, 9. So any number ending in 2, 3, 7, or 8 cannot be a perfect square!

Level 2 · Why

Why Lockers with Prime Numbers were Touched Twice: In the locker puzzle, why do prime numbers get toggled exactly twice? Explain using factors.

Reveal Answer

Explanation: A prime number has exactly two factors: 1 and itself. For example, locker #7 gets touched by Person 1 (opening it) and Person 7 (closing it). That's 2 toggles—an even number, so it ends up closed. This is true for any prime: 2, 3, 5, 7, 11, etc.

Level 2 · Why

Why the Sum of Odd Numbers Gives Squares: Why does 1 + 3 + 5 + 7 = 16 = 4²? Can you visualize this with a diagram?

Reveal Answer

Explanation: Imagine building a square layer by layer:

Start: A 1×1 square uses 1 dot
Layer 1: • (add 3 dots in an L-shape) = 4 dots = 2×2
Layer 2: •• (add 5 dots in an L-shape) = 9 dots = 3×3
Layer 3: ••• (add 7 dots in an L-shape) = 16 dots = 4×4

Each layer adds the next odd number. That's why the sum of consecutive odd numbers starting from 1 always equals a perfect square!

Level 3 · Apply

Real-World Squares: You want to plant a square garden with area 144 m². How many meters of fence do you need for one side? What's the total perimeter?

Reveal Answer

Solution:

Step 1: Find the side length. If area = 144 m², then side length = √144 = 12 m

Step 2: Find the perimeter. Perimeter = 4 × side = 4 × 12 = 48 m of fence needed.

Level 3 · Apply

Cubes in Storage: A storage container is a perfect cube with side length 5 meters. How many cubic meters can it hold? How many cubic meters more than a 4-meter cube?

Reveal Answer

Solution:

Step 1: Volume of 5-meter cube = 5³ = 125 m³

Step 2: Volume of 4-meter cube = 4³ = 64 m³

Step 3: Difference = 125 − 64 = 61 m³ more

Level 3 · Apply

Finding Taxicab Numbers: We know 1729 = 1³ + 12³ = 9³ + 10³. Can you find another number that is the sum of two cubes in two different ways?

Reveal Answer

Solution: The next taxicab number is 4104. Let's verify:

4104 = 2³ + 16³ = 8 + 4096 = 4104 ✓

4104 = 9³ + 15³ = 729 + 3375 = 4104 ✓

Challenge: Can you find 13832? It's the third taxicab number!

Term / Concept
Square Number
tap to flip
A number that is the product of a number multiplied by itself (e.g., 4 = 2 × 2 = 2²)
Term / Concept
Perfect Square
tap to flip
A whole number that equals n² for some integer n. Examples: 1, 4, 9, 16, 25, 36, 49, 64, 81, 100
Term / Concept
Square Root
tap to flip
The number that, when multiplied by itself, gives the original number. √16 = 4 because 4 × 4 = 16
Term / Concept
Cubic Number
tap to flip
A number obtained by multiplying a number by itself three times (e.g., 8 = 2 × 2 × 2 = 2³)
Term / Concept
Perfect Cube
tap to flip
A whole number that equals n³ for some integer n. Examples: 1, 8, 27, 64, 125, 216
Term / Concept
Cube Root
tap to flip
The number that, when multiplied by itself three times, gives the original number. ∛27 = 3 because 3 × 3 × 3 = 27
Term / Concept
Exponent
tap to flip
The small number written above and to the right of a base number, telling you how many times to multiply. In 5³, the exponent is 3
Term / Concept
Last Digit Pattern
tap to flip
Perfect squares only end in 0, 1, 4, 5, 6, or 9. They never end in 2, 3, 7, or 8
8 cards — click any card to flip
What is 12²?
  • A 24
  • B 120
  • C 144
  • D 48
Which of these is a perfect cube?
  • A 50
  • B 81
  • C 125
  • D 100
What is the cube root of 64?
  • A 4
  • B 8
  • C 6
  • D 16
Which number can be written as both 1³ + 12³ and 9³ + 10³?
  • A 1000
  • B 1729
  • C 2197
  • D 729
If the area of a square is 225 m², what is the perimeter?
  • A 45 m
  • B 60 m
  • C 90 m
  • D 225 m
0 / 5