Cube (algebra) the last two digits, "any" pair of digits with the last digit odd can be a perfect cube. With even cubes, there is considerable restriction, for only 00, 2, 4, 6 and 8 can be the last two digits of a perfect cube (where stands for any odd digit and for any even digit). Some cube numbers are also square numbers; for example, 64 is a square number and a cube number . This happens if and only if the number is a perfect sixth power (in this case 2). The last digits of each 3rd power are: It is,
Cube (algebra) however, easy to show that most numbers are not perfect cubes because "all" perfect cubes must have digital root 1, 8 or 9. That is their values modulo 9 may be only −1, 1 and 0. Moreover, the digital root of any number's cube can be determined by the remainder the number gives when divided by 3: Every positive integer can be written as the sum of nine (or fewer) positive cubes. This upper limit of nine cubes cannot be reduced because, for example, 23 cannot be written as the sum of fewer than nine positive cubes: The equation has