OFFSET
0,2
COMMENTS
This counts ordered sums of squares of nonnegative integers, whereas A000118 counts ordered sums of squares of integers of any sign. - R. J. Mathar, May 16 2023
LINKS
FORMULA
Coefficient of q^n in (1/16)*(1 + theta_3(0, q))^4; or coeff. of q^n in (Sum q^(i^2), i=0..inf)^4.
EXAMPLE
a(1)=4 counts 0^2+0^2+0^2+1^2 = 0^2+0^2+1^2+0^2 = 0^2+1^2+0^2+0^2 = 1^2+0^2+0^2+0^2. a(2)=6 counts 0^2+0^2+1^2+1^2 = 0^2+1^2+0^2+1^2 = 0^2+1^2+1^2+0^2 = 1^2+0^2+0^2+1^2 = 1^2+0^2+1^2+0^2 = 1^2+1^2+0^2+0^2. - R. J. Mathar, May 16 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joe Keane (jgk(AT)jgk.org)
STATUS
approved