Class 8 . Mathematics . Ganita Prakash Part I . A Square and a Cube
Chapter 1: A Square And A Cube
Ch 1
Mathematics
Class 8
Introduction
The Locker-Toggling Puzzle
How the lockers change
- Starting state: All lockers are closed.
- Person : Toggles every locker whose number is a multiple of .
- Toggle: A closed locker becomes open; an open locker becomes closed.
- Key idea: Locker is toggled once for each factor of .
An odd number of toggles leaves the locker open; an even number leaves it closed.
Factor Pairs and Square Numbers
Square number — A number that can be written as a whole number multiplied by itself is a square number, or simply a square.
Factors occur in partner pairs whose product is the number. A square has one equal-factor pair, so it has an odd number of factors. Every non-square has only unequal pairs and therefore an even number of factors.
| Number | Factor pairs | Number of factors |
|---|---|---|
| , | Even: | |
| , | Odd: | |
| , , , , | Odd: |
A number is a square when its equal-factor pair is .
Predict whether a locker stays open
- List the factors of the locker number, or pair them by multiplication.
- Check whether one factor pair has equal factors.
- If there is an equal pair, the number is a square and its locker remains open.
- If all pairs are unequal, the locker is toggled an even number of times and closes.
Will locker be open or closed at the end?
- Find how many times locker is toggled by listing its factors.
- The equal-factor pair is multiplied by itself, so is a square.
- It has five factors, so it is toggled an odd number of times.
Find the open lockers from to
- Only square-numbered lockers remain open.
- List the squares of whole numbers from through .
Open lockers
- Open locker numbers: .
- Count: There are open lockers because these are the squares from to .
Lockers Toggled Exactly Twice
Prime number — A prime number has exactly two factors: and itself.
A locker numbered with a prime is toggled exactly twice: by person and by the person whose number matches the locker. The number has only one factor, so its locker is toggled once.
Which first five lockers are toggled exactly twice?
How many times is locker toggled, and does it stay open?
Will locker remain open or closed?
Which lockers from to are toggled exactly twice?
Do not assume every locker is toggled twice because person touches every locker. Count all factors: only prime-numbered lockers have exactly two factors.
Quick recap
- A locker is toggled once for each factor of its number.
- An odd number of toggles leaves a locker open; an even number leaves it closed.
- Factors form pairs; only a square has one equal-factor pair.
- Therefore, exactly the square-numbered lockers remain open.
- From to , the open lockers are .
- Prime-numbered lockers are toggled exactly twice; the first five are .
Square Numbers Part-1
Square Numbers
- Square number: A number formed by multiplying a number by itself; for example, .
- Perfect square: The square of a natural number, such as .
- Notation: , read as “n squared”.
Units Digits of Perfect Squares
- Possible units digits: A perfect square can end in 0, 1, 4, 5, 6, or 9.
- Impossible units digits: A number ending in 2, 3, 7, or 8 is not a perfect square.
- Limitation: A possible units digit does not prove that a number is a square; for example, 26 ends in 6 but is not a square.
Trailing Zeros and Parity
- Trailing zeros: A perfect square has an even number of zeros at the end.
- Parity: The square of an even number is even, and the square of an odd number is odd.
Perfect Squares and Odd Numbers
- Sum of odd numbers: The sum of the first odd numbers is ; for example, .
- Square test: Successively subtract from a natural number. If the result reaches zero, the number is a perfect square.
Gaps Between Consecutive Squares
- Consecutive squares: The difference between and is .
- Numbers between: There are natural numbers between and .
Perfect Squares and Triangular Numbers
Which of and can be ruled out as perfect squares using their units digits?
How many natural numbers lie strictly between and ?
How many trailing zeros does the square of a number ending in four zeros have?
Quick recap
- A square is ; for a square with side , its area is .
- Perfect squares can end only in or ; these endings do not guarantee a number is a square.
- A number with trailing zeros has a square with trailing zeros; a number and its square have the same parity.
- The sum of the first odd numbers is , and the th odd number is .
- The gap between and is , with natural numbers between them.
- Consecutive triangular numbers add to a square: .
- The largest perfect square below is .
Square Numbers Part - 2
Square Roots
- Square root: If , then is a square root of .
- Roots of a perfect square: A positive perfect square has two integer square roots, one positive and one negative; for example, the roots of 64 are 8 and −8.
- Positive root: The symbol denotes the positive square root considered in this chapter.
Recognising Perfect Squares
- Units digit check: A number ending in 2, 3, 7, or 8 cannot be a perfect square.
- Trailing-zero check: A perfect square must have an even number of zeros at the end.
- Important: Passing these checks does not guarantee that a number is a perfect square.
Methods for Checking and Finding Square Roots
A number is a perfect square if and only if every exponent in its prime factorisation is even.
Use prime factorisation to decide whether and are perfect squares.
- Determine whether and are perfect squares using prime factorisation.
- Factor ; both prime exponents are even.
- Factor ; the exponent of is odd, so its factors cannot all be paired.
Estimating Square Roots
- Bracket the root: Find nearby perfect squares and with \(a^2
- Refine the estimate: Compare the number with squares of integers within the interval to identify the closer value.
Applications and Square Patterns
Find the smallest number by which must be multiplied to make a perfect square. Find the square root of the product.
Find the smallest square number divisible by each of and .
How many integers lie strictly between and ?
Do not treat a possible last digit as proof that a number is a perfect square. Also, the integer roots of are , but the radical denotes only the positive root: .
Quick recap
- A positive perfect square has two integer roots, but denotes the positive root.
- Perfect squares can end only in or , and have an even number of trailing zeros.
- Successive odd-number subtraction reaches zero after steps for the square .
- A number is a perfect square exactly when all prime exponents are even.
- Bracket square roots between nearby squares, then narrow and verify the interval.
- There are integers strictly between and .
Cubic Numbers
Cubes and Perfect Cubes
Cube — A cube is a solid whose faces meet at right angles and whose edges are all equal.
Perfect cube — A number obtained by multiplying the same number by itself three times is a perfect cube.
Key properties
- Notation: The cube of is .
- Examples: , , , and .
- Geometry: A cube with edge length units contains unit cubes; an edge of units gives unit cubes.
- Possible last digits: Cubes can end in any digit from to 9; the last digit depends on the number’s last digit.
- Small cubes: Non-negative one-digit cubes are ; two-digit cubes are ; three-digit cubes are .
- Trailing zeroes: A cube cannot end in exactly two zeroes; its number of trailing zeroes is a multiple of .
| Last digit of number | Last digit of cube |
|---|---|
Each trailing zero requires a factor of . In a perfect cube, prime-factor exponents occur in multiples of , so trailing zeroes occur in groups of three.
Use for the cube of a number or the number of unit cubes in a cube with an integer edge length.
Find the number of unit cubes
- Count the unit lengths along one edge.
- Multiply the edge count by itself three times.
How many unit cubes make a cube with edge length units?
- Use the edge length as the number of unit cubes along each dimension.
- Multiply to find the total number of unit cubes.
Cubes of Fractions, Decimals and Negative Numbers
Cubing rational numbers — Cube a fraction, decimal or negative number by multiplying it by itself three times.
Key properties
- Fractions: Cube the numerator and denominator separately.
- Decimals: Multiply the decimal by itself three times; .
- Negative numbers: The cube of a negative number is negative because it has three negative factors; .
Cube both the numerator and denominator.
Cube a fraction
- Cube the numerator and denominator separately.
- Simplify the resulting fraction if possible.
Evaluate .
- Cube the numerator and denominator.
- Reduce the fraction to simplest form.
Do not cube only the numerator of a fraction: cube both numerator and denominator. A negative number cubed stays negative.
Taxicab Numbers
Taxicab number — A taxicab number can be written as the sum of two positive cubes in two different ways.
Key examples
- Hardy–Ramanujan number: is the smallest taxicab number.
- Two representations: .
- Next examples: .
- Another example: .
Use this form to show that a number is a taxicab number.
Verify a taxicab representation
- Find two distinct pairs of positive integers.
- Cube each number and check that the two sums are equal.
Show two ways to express as a sum of two positive cubes.
- Evaluate the first pair of cubes.
- Evaluate the second pair of cubes; both sums match.
Perfect Cubes and Consecutive Odd Numbers
Consecutive odd-number pattern — The consecutive odd numbers from to sum to .
Examples
- First cubes: ; ; .
- Further cubes: ; .
- Sixth cube: .
The list has terms, begins at , and ends at .
Recognise the odd-number sum
- Count the number of consecutive odd terms.
- If the first term is , their sum is the corresponding cube.
Find the sum without adding term by term.
- There are ten terms, and the first matches the pattern for .
- The sum is therefore the cube of ten.
Cube Roots
Cube root — The cube root of is the number whose cube equals .
Key properties
- Notation: If , then .
- Examples: , , and .
- Inverse operations: Taking a cube root reverses cubing: .
- Useful values: , , and .
Cubing and taking the cube root are inverse operations.
Find a cube root
- Identify the number whose cube is the given number.
- Write that number as the cube root.
Find .
- Recognise as the cube of nine.
- Take the cube root.
Testing Perfect Cubes by Prime Factorisation
Prime-factorisation test — A number is a perfect cube exactly when every prime factor in its prime factorisation occurs a multiple of three times.
Key properties
- Grouping rule: Group identical prime factors in triplets; one factor from each triplet contributes to the cube root.
- Perfect cube: , so .
- Not a perfect cube: has a prime exponent that is not a multiple of .
- Prime factors of a cube: Each prime factor of the original number appears three times as often in its cube; for example, .
Every exponent in the prime factorisation must be divisible by .
Find a cube root using prime factors
- Write the number as a product of prime factors.
- Group equal prime factors into triplets.
- Multiply one factor from each triplet; leftover factors mean the number is not a perfect cube.
Find using prime factorisation.
- Factorise into primes and form triplets.
- Take one factor from each triplet to find the cube root.
Successive Differences of Cubes
Successive differences — Successive differences are found by subtracting each term of a sequence from the next term, then repeating the process on the resulting lists.
Cubes and their differences
- Cubes: .
- First differences: .
- Second differences: .
- Third differences: ; the third differences of consecutive cubes are constant.
For the sequence of consecutive integer cubes, the third differences are constant.
Find successive differences
- Subtract each cube from the next to find the first differences.
- Repeat subtraction to get second differences, then third differences.
Find the successive differences of up to the third difference.
- Start with four consecutive cubes.
- Find the first and second differences.
- Subtract once more to find the third difference.
Is a perfect cube?
Evaluate .
Find using the consecutive odd-number pattern.
Quick recap
- A cube is a solid with equal edges and right-angled faces; a perfect cube has the form .
- Cubes can end in any digit, and their trailing zeroes occur in groups of three.
- A taxicab number has two distinct representations as sums of two positive cubes; is the smallest.
- The consecutive odd numbers from through sum to .
- A perfect cube has prime-factor exponents that are all multiples of .
- Cube roots reverse cubing, and consecutive cubes have constant third differences.
A Pinch of History
Early square and cube calculations
- Babylonians: The earliest known lists of perfect squares and cubes date to about 1700 BCE.
- Clay tablets: The lists helped people find square roots and cube roots for land measurement, building design and other geometric calculations.

Ancient Indian terms for powers
| Term | Meaning |
|---|---|
| Varga | A square figure or its area; also the square power, or the product of a number with itself. |
| Ghana | A solid cube; also the cube power, or the product of a number with itself three times. |
| Varga-varga | The fourth power. |
- Usage: These terms were used in India at least from the third century BCE.
- Aryabhata (499 CE): He used *varga* for a square figure and its area, and for the product of two equal quantities.
- Origin: The use of *varga* for a square power is linked to the shape of a square.
The historical meaning of “root”
Mula — The Sanskrit word *mula*, meaning a plant root, basis, cause or origin, was used for mathematical root-taking.
- Varga-mula: The term for square root; *ghana-mula* meant cube root.
- Usage in India: *Mula* was used for the mathematical idea of a root at least from the first century BCE.
- Later terms: The plant-root meaning was carried into Arabic as *jidhr* and Latin as *radix*.
- Pada: Another term for root, meaning foot, basis, cause or origin.
- Brahmagupta (628 CE): He explained that the *pada* (root) of a *krti* (square) is the quantity whose square it is.
Find the cube roots of and . Also identify the cube roots of , , and .
What is the least positive integer to multiply by to make it a perfect cube?
State true or false: (i) the cube of any odd number is even; (ii) no perfect cube ends in ; (iii) a two-digit number may have a three-digit cube; (iv) a two-digit number may have a cube with seven or more digits; (v) cube numbers have an odd number of factors. Also identify the greatest of , , and .
Quick recap
- The Babylonians had the earliest known lists of perfect squares and cubes, dating to about 1700 BCE.
- *Varga* referred to a square, its area and a square power; *ghana* referred to a cube and a cube power.
- Aryabhata discussed *varga* in 499 CE; these Sanskrit power terms were used in India from at least the third century BCE.
- *Mula* meant root and was used in India at least from the first century BCE; *varga-mula* and *ghana-mula* meant square root and cube root.
- Arabic *jidhr* and Latin *radix* also derive from words for a plant root; Brahmagupta discussed *pada* in 628 CE.
Summary
Square Numbers and Their Properties
Use this to find the square of a number.
Square Roots
- Square root: The square root is the inverse operation of squaring.
- Integer roots: Every positive perfect square has two integer square roots, one positive and one negative.
- Positive square root: The symbol denotes the positive square root; for example, .
Cubes and Cube Roots
Use this to find the cube of a number.
Cube root — A cube root is a number which, when cubed, gives the original number; it is written using , so .
Prime Factorisation Tests
In the prime factorisation, each exponent must be a multiple of for a perfect square, or a multiple of for a perfect cube.
Check a Number by Prime Factorisation
- Write the number as a product of prime factors.
- Group identical factors in pairs to test for a perfect square, or in threes to test for a perfect cube.
- If no factors are left over, the number is the corresponding perfect power.
Find the positive square root of by prime factorisation.
- Find the square root of using prime factorisation.
- Factorise into primes.
- Pair the identical prime factors and take one factor from each pair.
- Multiply the selected factors to obtain the positive square root.
Is a perfect square? Find its positive square root using prime factors.
Is a perfect cube? Use prime factorisation.
Find the cube root of .
Quick recap
- A square is a number multiplied by itself; a cube is a number multiplied by itself three times.
- Perfect squares can end only in , , , , , or , and have an even number of trailing zeros.
- Square root reverses squaring; the positive square root is written as .
- Cube root reverses cubing and is written as .
- Prime factors must form pairs for a perfect square and groups of three for a perfect cube.
Formula sheet
Mathematics — ALL CHAPTERS
1
A Square And A Cube
2
Power Play
3
A Story of Numbers
4
Quadrilaterals
5
Number Play
6
We Distribute, Yet Things Multiply
7
Proportional Reasoning-1
1
Fractions in Disguise
2
The Baudhayana-Pythagoras Theorem
3
Proportional Reasoning-2
4
Exploring Some Geometric Themes
5
Tales by Dots and Lines
6
Algebra Play
7
Area