(PARI) /* By Definition: */
{a(n) = n*polcoeff( -log( sum(m=-sqrtint(n+1), sqrtint(n+1), (-2)^m*(2*x)^(m^2) +x*O(x^n)) ), n)}
for(n=1, 30, print1(a(n), ", "))
(PARI) /* By the Jacobi Triple Product identity: */
{a(n) = n*polcoeff( -log( prod(m=1, n\2+1, (1 - 4^m*x^(2*m)) * (1 - 4^m*x^(2*m-1)) * (1 - 4^(m-1)*x^(2*m-1)) +x*O(x^n))), n)}
for(n=1, 30, print1(a(n), ", "))