login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A298330
Number of ordered ways of writing n^2 as a sum of n squares of positive integers.
14
1, 1, 0, 3, 1, 5, 141, 742, 6120, 43888, 300232, 3074478, 28901797, 290411147, 3175037698, 34951274416, 399750066121, 4814421349467, 59532792202344, 768079420764884, 10247011240209066, 140144002390928732, 1978092111496441512, 28633995987157024399
OFFSET
0,4
FORMULA
a(n) = [x^(n^2)] (Sum_{k>=1} x^(k^2))^n.
EXAMPLE
a(3) = 3 because we have [4, 4, 1], [4, 1, 4] and [1, 4, 4].
MAPLE
G:= (JacobiTheta3(0, x)-1)/2:
f:= proc(n) local S; S:= series(G^n, x, n^2+1); coeff(S, x, n^2) end proc:
map(f, [$0..25]); # Robert Israel, Dec 16 2024
MATHEMATICA
Table[SeriesCoefficient[(-1 + EllipticTheta[3, 0, x])^n/2^n, {x, 0, n^2}], {n, 0, 23}]
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Ilya Gutkovskiy, Jan 17 2018
STATUS
approved