OFFSET
0,22
LINKS
FORMULA
a(n) = [x^n y^6] Product_{k>=1} 1/(1 - y*x^(k^2)). - Ilya Gutkovskiy, Apr 19 2019
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, `if`(t=0, 1, 0),
`if`(i<1 or t<1, 0, b(n, i-1, t)+
`if`(i^2>n, 0, b(n-i^2, i, t-1))))
end:
a:= n-> b(n, isqrt(n), 6):
seq(a(n), n=0..120); # Alois P. Heinz, May 30 2014
MATHEMATICA
a[n_] := Count[PowersRepresentations[n, 6, 2], r_ /; FreeQ[r, 0]]; Array[a, 120, 0] (* Jean-François Alcover, Feb 19 2016 *)
b[n_, i_, t_] := b[n, i, t] = If[n == 0, If[t == 0, 1, 0], If[i < 1 || t < 1, 0, b[n, i - 1, t] + If[i^2 > n, 0, b[n - i^2, i, t - 1]]]];
a[n_] := b[n, Sqrt[n] // Floor, 6];
a /@ Range[0, 120] (* Jean-François Alcover, Nov 06 2020, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved