login
A319221
Number of ordered ways of writing n-th triangular number as a sum of n squares.
0
1, 2, 0, 24, 144, 960, 4608, 74048, 859952, 9568800, 109975680, 1647979872, 23917274304, 358378620704, 5528847787008, 94307761212304, 1632598198916544, 29205907283227776, 538335591996965760, 10388234139989630128, 205386383159397554688, 4173254005731822569088
OFFSET
0,2
FORMULA
a(n) = [x^(n*(n+1)/2)] theta_3(x)^n, where theta_3() is the Jacobi theta function.
a(n) = [x^(n*(n+1)/2)] (Sum_{k=-infinity..infinity} x^(k^2))^n.
MATHEMATICA
Table[SeriesCoefficient[EllipticTheta[3, 0, x]^n, {x, 0, n (n + 1)/2}], {n, 0, 21}]
Join[{1}, Table[SquaresR[n, n (n + 1)/2], {n, 21}]]
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Sep 13 2018
STATUS
approved