Lably
Skip to content

Cube (algebra)

Number raised to the third power

  • 8 min read
  • 4 chapters
  • 6 labs on Lably

Learn it on Lably

The cube is also the number multiplied by its square:

n3 = n × n2 = n × n × n.

The cube function is the function x ↦ x3 (often denoted y = x3) that maps a number to its cube. It is an odd function, as

(−n)3 = −(n3).

The volume of a geometric cube is the cube of its side length, giving rise to the name. The inverse operation that consists of finding a number whose cube is n is called extracting the cube root of n. It determines the side of the cube of a given volume. It is also n raised to the one-third power.

The graph of the cube function is known as the cubic parabola. Because the cube function is an odd function, this curve has a center of symmetry at the origin, but no axis of symmetry.

In integers

A cube number, or a perfect cube, or sometimes just a cube, is a number which is the cube of an integer. The non-negative perfect cubes up to 603 are (sequence A000578 in the OEIS):

Geometrically speaking, a positive integer m is a perfect cube if and only if one can arrange m solid unit cubes into a larger, solid cube. For example, 27 small cubes can be arranged into one larger one with the appearance of a Rubik's Cube, since 3 × 3 × 3 = 27.

The difference between the cubes of consecutive integers can be expressed as follows:

n3 − (n − 1)3 = 3(n − 1)n + 1.

or

(n + 1)3 − n3 = 3(n + 1)n + 1.

There is no minimum perfect cube, since the cube of a negative integer is negative. For example, (−4) × (−4) × (−4) = −64.

Base ten

Unlike perfect squares, perfect cubes do not have a small number of possibilities for the last two digits. Except for cubes divisible by 5, where only 25, 75 and 00 can be the last two digits, any pair of digits with the last digit odd can occur as the last digits of a perfect cube. With even cubes, there is considerable restriction, for only 00, o2, e4, o6 and e8 can be the last two digits of a perfect cube (where o stands for any odd digit and e for any even digit). Some cube numbers are also square numbers; for example, 64 is a square number (8 × 8) and a cube number (4 × 4 × 4). This happens if and only if the number is a perfect sixth power (in this case 26).

The last digits of each 3rd power are:

It is, 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 0, 1, and 8. Moreover, the digital root of any number's cube can be determined by the remainder the number gives when divided by 3:

  • If the number x is divisible by 3, its cube has digital root 9; that is,
    ifx≡0(mod3)thenx3≡0(mod9) (actually0(mod27));
  • If it has a remainder of 1 when divided by 3, its cube has digital root 1; that is,
    ifx≡1(mod3)thenx3≡1(mod9);
  • If it has a remainder of 2 when divided by 3, its cube has digital root 8; that is,
    ifx≡2(mod3)thenx3≡8(mod9).

Sums of two cubes

Sums of three cubes

It is conjectured that every integer (positive or negative) not congruent to ±4 modulo 9 can be written as a sum of three (positive or negative) cubes in infinitely many ways. For example, 6=23+(−1)3+(−1)3. Integers congruent to ±4 modulo 9 are excluded because they cannot be written as the sum of three cubes.

The smallest such integer for which such a sum is not known is 114. In September 2019, the previous smallest such integer with no known 3-cube sum, 42, was found to satisfy this equation:

42=(−80538738812075974)3+804357581458175153+126021232973356313.

One solution to x3+y3+z3=n is given in the table below for n ≤ 78, and n not congruent to 4 or 5 modulo 9. The selected solution is the one that is primitive (gcd(x, y, z) = 1), is not of the form c3+(−c)3+n3=n3 or (n+6nc3)3+(n−6nc3)3+(−6nc2)3=2n3 (since they are infinite families of solutions), satisfies 0 ≤ |x| ≤ |y| ≤ |z|, and has minimal values for |z| and |y| (tested in this order).

Only primitive solutions are selected since the non-primitive ones can be trivially deduced from solutions for a smaller value of n. For example, for n = 24, the solution 23+23+23=24 results from the solution 13+13+13=3 by multiplying everything by 8=23. Therefore, this is another solution that is selected. Similarly, for n = 48, the solution (x, y, z) = (−2, −2, 4) is excluded, and this is the solution (x, y, z) = (−23, −26, 31) that is selected.

Fermat's Last Theorem for cubes

The equation x3 + y3 = z3 has no non-trivial (i.e. xyz ≠ 0) solutions in integers. In fact, it has none in Eisenstein integers.

Both of these statements are also true for the equation x3 + y3 = 3z3.

Sum of first n cubes

The sum of the first n cubes is the nth triangle number squared:

13+23+⋯+n3=(1+2+⋯+n)2=(n(n+1)2)2.

Proofs. Charles Wheatstone (1854) gives a particularly simple derivation, by expanding each cube in the sum into a set of consecutive odd numbers. He begins by giving the identity

n3=(n2−n+1)+(n2−n+1+2)+(n2−n+1+4)+⋯+(n2+n−1)⏟n consecutive odd numbers.

That identity is related to triangular numbers Tn in the following way:

n3=∑k=Tn−1+1Tn(2k−1),

and thus the summands forming n3 start off just after those forming all previous values 13 up to (n−1)3. Applying this property, along with another well-known identity:

n2=∑k=1n(2k−1),

we obtain the following derivation:

∑k=1nk3=1+8+27+64+⋯+n3=1⏟13+3+5⏟23+7+9+11⏟33+13+15+17+19⏟43+⋯+(n2−n+1)+⋯+(n2+n−1)⏟n3=1⏟12+3⏟22+5⏟32+⋯+(n2+n−1)⏟(n2+n2)2=(1+2+⋯+n)2=(∑k=1nk)2.

In the more recent mathematical literature, Stein (1971) uses the rectangle-counting interpretation of these numbers to form a geometric proof of the identity (see also Benjamin, Quinn & Wurtz 2006); he observes that it may also be proved easily (but uninformatively) by induction, and states that Toeplitz (1963) provides "an interesting old Arabic proof". Kanim (2004) provides a purely visual proof, Benjamin & Orrison (2002) provide two additional proofs, and Nelsen (1993) gives seven geometric proofs.

For example, the sum of the first 5 cubes is the square of the 5th triangular number,

13+23+33+43+53=152

A similar result can be given for the sum of the first y odd cubes,

13+33+⋯+(2y−1)3=(xy)2

but x, y must satisfy the negative Pell equation x2 − 2y2 = −1. For example, for y = 5 and 29, then,

13+33+⋯+93=(7⋅5)2
13+33+⋯+573=(41⋅29)2

and so on. Also, every even perfect number, except the lowest, is the sum of the first 2⁠p−1/2⁠
odd cubes (p = 3, 5, 7, ...):

28=22(23−1)=13+33
496=24(25−1)=13+33+53+73
8128=26(27−1)=13+33+53+73+93+113+133+153

Sum of cubes of numbers in arithmetic progression

There are examples of cubes of numbers in arithmetic progression whose sum is a cube:

33+43+53=63
113+123+133+143=203
313+333+353+373+393+413=663

with the first one sometimes identified as the mysterious Plato's number. The formula F for finding the sum of n cubes of numbers in arithmetic progression with common difference d and initial cube a3,

F(d,a,n)=a3+(a+d)3+(a+2d)3+⋯+(a+dn−d)3

is given by

F(d,a,n)=(n/4)(2a−d+dn)(2a2−2ad+2adn−d2n+d2n2)

A parametric solution to

F(d,a,n)=y3

is known for the special case of d = 1, or consecutive cubes, as found by Pagliani in 1829.

Cubes as sums of successive odd integers

In the sequence of odd integers 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, ..., the first one is a cube (1 = 13); the sum of the next two is the next cube (3 + 5 = 23); the sum of the next three is the next cube (7 + 9 + 11 = 33); and so forth.

Waring's problem for cubes

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:

23 = 23 + 23 + 13 + 13 + 13 + 13 + 13 + 13 + 13.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Mathematics