[Math] How to compute the smallest integer which is sum of cubes in 13 ways

elementary-number-theory

I would like to know the smallest integer which is sum of three positive cubes in 13 ways, such that $1^3+2^3+3^3=2^3+1^3+3^3$ are same ways of representation? What kind of theory there is behind that? I saw the question Sum of squares in at least 64 ways? but I don't know if that can be generalized as I'm not sure how to generalize Gaussian integers.

Best Answer

This is not the smallest solution, but it gives you a simple method to find an integer that is the sum of three positive cubes in an arbitrary number of ways. All you have to do is use Lehmer's Identity,

$$(-9 p^3q + q^4)^3 + (-9p^4 + 3p q^3)^3 + (3p^2)^6 = q^{12}$$

If $q = 1$, then you get near-misses to the eqn $a^3+b^3 = c^3$.

However, you can also choose a large enough constant $q$ such that the first two addends are positive for $p = 1,2,3,\dots,n$. For $n=13$, I find $q=28$ is enough, so,

$$\begin{aligned} 614404^3+65847^3+3^6 &= 28^{12}\\ 612640^3+131568^3+12^6 &=28^{12}\\ 607852^3+196839^3+27^6 &=28^{12}\\ 598528^3+261120^3+48^6 &=28^{12}\\ \vdots\end{aligned}$$

and so on for 13 $p$ before the first addend becomes negative. Of course, if you choose larger $q$, then the addends will be positive for an even longer range of $p$.