OFFSET
1,1
COMMENTS
Some results coming from the Alarcon and Duval reference.
For n = 0, there are infinitely many solutions because every triple (k,k,k) with k >= 0 satisfies the equation.
a(n) = 0 iff 3 divides n and 9 doesn't divide n (equivalent to n is in A016051).
1) if (a,a,b) [resp. (a,b,b)] with a < b is a primitive solution, then these triples generate 3 solutions with the permutations (a,a,b), (a,b,a), (b,a,a), [resp. (a,b,b), (b,b,a), (b,a,b)] and,
2) if (a,b,c) with a < b < c is a primitive solution, then this triple generates 6 solutions with the permutations (a,b,c), (b,c,a), (c,a,b), (a,c,b), (c,b,a), (b,a,c).
For prime p <> 3, a(p) = a(2*p) = 3.
An inequality: (n/4)^(1/3) <= max(x, y, z) <= (n+2)/3.
This sequence is unbounded.
A261029 gives the number of triples without counting the permutations and, in link, a list of primitive triples up to n = 2000.
REFERENCES
Guy Alarcon and Yves Duval, TS: Préparation au Concours Général, RMS, Collection Excellence, Paris, 2010, chapitre 9, Problème: étude d'une équation diophantienne cubique, pages 137-138 and 147-152.
LINKS
Vladimir Shevelev, Representation of positive integers by the form x^3+y^3+z^3-3xyz, arXiv:1508.05748 [math.NT], 2015.
FORMULA
If n = 3*k + 1, then (k, k, k+1) is a solution for k >= 0.
If n = 3*k - 1, then (k, k, k-1) is a solution for k >= 1.
If n = 9*k, then (k-1, k, k+1) is a solution for k >= 1.
If n = k^3, then (k, 0, 0) is a solution for k >= 0.
If n = 2*k^3, then (k, k, 0) is a solution for k >= 0.
EXAMPLE
3^3+2^3+2^3-3*2*2*3 = 7 so (3,2,2), (2,2,3) and (2,3,2) are solutions and a(7) = 3.
When n=35, (0,1,3) is a primitive solution that generates 6 solutions and (9,9,10) is another primitive solution that generates 3 solutions, so a(35)=6+3=9 (see comments).
MATHEMATICA
a[n_] := Length@ Solve[x^3 + y^3 + z^3 - 3 x y z == n && x >= 0 && y >= 0 && z >= 0, {x, y, z}, Integers]; Array[a, 85] (* Giovanni Resta, Nov 28 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, Nov 27 2019
EXTENSIONS
More terms from Giovanni Resta, Nov 28 2019
STATUS
approved