OFFSET
1,1
COMMENTS
Conjecture: a(n) > 0 except for n = 19.
We have verified this for n up to 5*10^6.
As z*(3*z+2) = floor((3*z+1)^2/3) and 19 = 0^3 + 4^2 + floor(3^2/3), the conjecture implies that each n = 0,1,... can be written as x^3 + y^2 + floor(z^2/3) with x,y,z nonnegative integers.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(63) = 1 with 63 = 3^3 + 6^2 + 0*(3*0+2).
a(327) = 1 with 327 = 5^3 + 13^2 + 3*(3*3+2).
a(478) = 1 with 478 = 6^3 + 1^2 + 9*(3*9+2).
a(847) = 1 with 847 = 1^3 + 29^2 + 1*(3*1+2).
a(1043) = 1 with 1043 = 3^3 + 20^2 + 14*(3*14+2).
a(3175) = 1 with 3175 = 5^3 + 35^2 + (-25)*(3*(-25)+2).
MATHEMATICA
OctQ[n_]:=OctQ[n]=IntegerQ[Sqrt[3n+1]];
tab={}; Do[r=0; Do[If[OctQ[n-x^3-y^2], r=r+1], {x, 0, n^(1/3)}, {y, 0, Sqrt[n-x^3]}]; tab=Append[tab, r], {n, 1, 100}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Apr 24 2021
STATUS
approved