OFFSET
0,7
FORMULA
a(n) = [x^1] Product_{k=1..n} (x^(k^2) + 1/x^(k^2)).
MAPLE
b:= proc(n, i) option remember; `if`(n>i*(i+1)*(2*i+1)/6, 0,
`if`(i=0, 1, b(n+i^2, i-1)+b(abs(n-i^2), i-1)))
end:
a:=n-> b(1, n):
seq(a(n), n=0..50); # Alois P. Heinz, Jan 30 2024
MATHEMATICA
Table[Coefficient[Product[(x^(k^2) + 1/x^(k^2)), {k, 1, n}], x, 1], {n, 0, 48}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jan 30 2024
STATUS
approved