Can any integer can be written as the sum of 8 integer cubes?

Allowing negative cubes, five suffice. It is suspected that four suffice but this is an open problem. I will see if I can find the argument for five, it is just one or two explicit formulas. By the way, these are called the "Easier" Waring problems.

Can't find them at this point, so here is section D5 form Richard K. Guy, Unsolved Problems in Number Theory. Note that he is allowing cubes to be positive, negative, or zero:

Is every number the sum of four cubes? This has been proved for all numbers except possibly those of the form $9n \pm 4$

Part 1: $$ 6n = (n+1)^3 + (n-1)^3 - n^3 - n^3 $$

Part 2: $$ 6n - 2 = n^3 +(n+2)^3 - (n+1)^3 - (n+1)^3 - 2^3 $$ $$ 6n-1 = (n+1)^3 + (n-1)^3 - n^3 - n^3 - 1^3 $$ $$ 6n = (n+1)^3 + (n-1)^3 - n^3 - n^3 $$ $$ 6n+1 = (n+1)^3 + (n-1)^3 - n^3 - n^3 + 1^3 $$ $$ 6n + 2 = n^3 +(n-2)^3 - (n-1)^3 - (n-1)^3 + 2^3 $$ $$ 6n + 3 = (n-3)^3 +(n-5)^3 - (n-4)^3 - (n-4)^3 + 3^3 $$


  1. Since $n - n^3 = n(1-n)(1+n)$ then $6 \mid (n - n^3)$ and we can write $n - n^3 = 6k$.

  2. $6k = (k+1)^3 + (k-1)^3 - k^3 - k^3$.

  3. From 1 and 2 we derive that $n = n^3 + (k+1)^3 + (k-1)^3 - k^3 - k^3$ for $k=(n-n^3)/6$.


Numbers not of the form $9k \pm 4$ and $108k \pm 38$ can be written as the sum of 4 cubes (Demjanenko 1966, translated version Cohen 2004) using the following identities and complementary identities ($x \to -x$):

\begin{align} 6x &= (x − 1 )^3 + (−x )^3 + (−x )^3 + (x + 1 )^3 \\ 6x + 3 &= x^3 + (−x + 4 )^3 + (2x − 5 )^3 + (−2x + 4 )^3 \\ 18x + 1 &= (2x + 14 )^3 + (−2x − 23 )^3 + (−3x − 26 )^3 + (3x + 30 )^3 \\ 18x + 7 &= (x + 2 )^3 + (6x − 1 )^3 + (8x − 2 )^3 + (−9x + 2 )^3 \\ 18x + 8 &= (x − 5 )^3 + (−x + 14 )^3 + (−3x + 29 )^3 + (3x − 30 )^3 \\ 54x + 2 &= (29484x^2 + 2211x + 43)^3 + (-29484x^2 - 2157x-41)^3 + (9828x^2+485x+4)^3 + (-9828x^2 -971x - 22)^3\\ 54x + 20 &= (3x − 11 )^3 + (−3x + 10 )^3 + (x + 2 )^3 + (−x + 7 )^3 \\ 216x-16 &= (14742x^2 - 2157x + 82)^3 + (-14742x^2 + 2211x - 86)^3 + (4914x^2-971x+44)^3 + (-4914x^2+485x-8)^3 \\ 216x+92 &= (3x-164)^3 + (-3x+160)^3+(x-35)^3 + (-x+71)^3 \end{align}

More identities are listed here https://www.alpertron.com.ar/FCUBES.HTM