Cube numbers and their properties
Stack unit cubes into a bigger cube — along each edge and you have used small cubes; along each edge and you have used . Multiply any whole number by itself three times and you land on one of these special numbers, a perfect cube, the three-dimensional cousin of the square numbers you already know. Cubes turn out to have their own fingerprint: a prime-factorisation test built from triples instead of pairs, a last-digit pattern that (unlike squares) allows every digit from to , and a trailing-zero rule tied to multiples of . This article — continuing the Class 8 chapter "A Square and A Cube" — collects those patterns, works through checking and fixing near-cubes by prime factorisation, and meets the famous taxicab number along the way.
A whole number is a perfect cube exactly when every prime in its factorisation occurs a multiple of three times, which is why grouping factors into triples (rather than the pairs used for squares) is the master test for recognising, building and repairing cubes.
The core idea
A perfect cube is a number of the form for a whole number . The first ten are:
Prime-factorisation test. Break a number into primes and look at each prime's exponent. The number is a perfect cube exactly when every exponent is a multiple of :
where: is the number being tested, are its distinct prime factors, and are their exponents. For example, — both and are multiples of , so is a perfect cube (and ).
Unit-digit pattern. Squares skip the digits at the end, but cubes do not skip anything — every digit – can be the last digit of a perfect cube. The pairing is still fixed and useful for later estimating cube roots: map to themselves, while and swap (so a number ending in cubes to something ending in , and vice versa).
Trailing zeros. A perfect cube that ends in zeros must end in a number of zeros that is a multiple of , because each trailing zero comes from one factor of , and both the s and the s must occur in complete triples. The picture below is why the rule uses triples: a cube number literally measures a three-dimensional stack, so three matching factors — length, breadth and height — must all be present.
Common trap avoided by the picture
A student who has only met squares expects cubes to grow at roughly the same rate — the bar chart shows how quickly a cube outpaces the matching square, which is worth keeping in mind when estimating whether a large number could plausibly be a cube.
The goal is to show, using nothing beyond prime factorisation and the divisibility facts a Class 8 student already has, exactly how to decide whether a given whole number is a perfect cube and, if it falls short, how to find the smallest number that must multiply it to make it one — the same reasoning that also tells you the smallest number to divide by instead.
Step 1. Write as a product of primes, collecting equal factors as powers: . This is ordinary prime factorisation, exactly as used for squares, except now the exponents will be sorted into groups of three instead of two.
Step 2. Check every exponent against the nearest multiple of above it. If is already a multiple of , that prime needs nothing. If not, the "shortfall" is — the number of extra copies of needed to complete the next triple.
Step 3. Multiply by , one shortfall factor for every prime that was not already a multiple of . The product now has every exponent a multiple of , so it is a perfect cube by the test in the core idea section above.
Step 4. To divide down instead of multiplying up, remove complete "extra" triples where possible, or drop an entire prime whose exponent is not a multiple of if dividing it out entirely still leaves the rest of the exponents as multiples of . Both routes are legitimate; which one a question wants depends on whether it asks for a multiplier or a divisor.
Worked example
Check whether is a perfect cube using prime factorisation, and if not a cube already, find the smallest number to multiply by to make it one.
Step 1. Factorise : , , , , , . So .
Step 2. Both exponents are , already multiples of , so is a perfect cube. Taking one factor from each triple, . Check: . ✓
Step 3. Now factorise : . The exponent of is already — fine. The exponent of is , one short of the next multiple of , which is .
Step 4. Multiply by the single missing factor of : . Check: . The smallest multiplier is , giving the perfect cube .
Competitive stretch
The same can instead be reduced to a cube: since is already a complete triple, dividing out the whole factor (that is, dividing by ) leaves , also a perfect cube. So a single starting number can have more than one nearby cube depending on whether the question asks you to multiply or divide.
Common traps
- Using the square rule (pairs) when the question asks about cubes (triples). is a perfect square but not a perfect cube — check which grouping the question actually needs.
- Assuming cubes skip last digits the way squares skip . Cubes can end in any digit, so the last-digit test alone can never rule a number out as a cube (it only helps predict what the last digit would be).
- Miscounting the trailing-zero rule. A cube can end in , or zeros; only a zero-count that is not a multiple of (like , or zeros) proves a number cannot be a perfect cube.
- Forgetting that each prime needs its own top-up. When finding the smallest multiplier, every prime whose exponent is not already a multiple of needs its own separate correction — do not fix only one prime and assume the job is done.
Ask the tutor: Want more practice spotting perfect cubes by prime factorisation, or a few more special numbers like to explore?
Why does squaring use pairs of factors but cubing use triples of factors?
A square number is built from two equal factors, , so in its prime factorisation every prime must appear an even number of times — grouped in pairs. A cube number is built from three equal factors, , so every prime must appear a multiple of three times — grouped in triples. The grouping size simply matches how many times is repeated in the product.
Can a perfect cube end in 0, and does that mean anything special?
Yes — for example ends in three zeros. But not every number ending in zeros is a cube: the zero-count itself must be a multiple of . This is because each trailing zero comes from a factor of , and the cube test demands that both the s and the s in the factorisation occur in complete triples, which forces the zero-count to be .
What makes 1729 so special, and is it a perfect cube itself?
is not a perfect cube on its own, but it is famous as the smallest number that can be written as the sum of two cubes in two genuinely different ways: . It is called the taxicab number after a story about the mathematician Srinivasa Ramanujan, who instantly recognised this property when told the number of a taxicab was "rather dull." It is a good reminder that cube arithmetic hides patterns well beyond the basic perfect-cube test.