Why Is Every Cube 0, 1, or 8 Modulo 9?
At a glance
- 1. Divide by three
Write any integer n as 3q, 3q + 1, or 3q + 2.
- 2. Cube each form
Expand the three cases and collect the terms divisible by 9.
- 3. Read the remainders
The cube is 9k, 9k + 1, or 9k + 8, with k an integer.
To prove that an integer cube has the form , , or , split the integers into their three possible remainders upon division by 3. Cubing each of those forms shows that the result differs from one of these three numbers by a multiple of 9.
Here must be an integer, and the claim applies to negative integers as well as positive ones.
Proof by cases modulo 3
By the division algorithm, every integer can be written in exactly one of these ways for some integer :
These are the only cases because the possible remainders after division by 3 are 0, 1, and 2.
Case 1:
Cubing gives
Since is an integer, this has the form .
Case 2:
Expand the cube:
The quantity in parentheses is an integer, so this has the form .
Case 3:
Similarly,
Again, the quantity in parentheses is an integer. This has the form .
In all three cases, is an integer. Therefore every integer cube is congruent to , , or modulo 9:
Worked examples
Take . It is divisible by 3, so the first case applies:
For , write . The second case predicts a remainder of 1, and indeed
For , write . The third case predicts a remainder of 8:
The same reasoning handles negative inputs. For example, , so its cube must have remainder 8 modulo 9. In fact,
Why checking remainders modulo 3 is enough
The proof works because the three possible remainders modulo 3 cover every integer, and cubing each representative gives the corresponding remainder modulo 9:
| Remainder of modulo 3 | Remainder of modulo 9 |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 8 |
For the last row, . More generally, replacing by another integer with the same remainder modulo 3 does not change which of the three cube forms applies; the expansions above show the difference is a multiple of 9.
Common mistakes
- Checking only positive numbers: The division algorithm and the proof hold for every integer, including negative values.
- Using as if it had to be positive: The statement only requires to be an integer. For instance, uses negative .
- Writing the last form as without explaining it: This is equivalent to , since . Both notations describe the same remainder class modulo 9.
- Claiming every number of these forms is a cube: The proof shows that cubes must have one of these remainders. It does not say that every integer congruent to 0, 1, or 8 modulo 9 is itself a cube.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.