OFFSET
0,2
REFERENCES
Srinivasa Ramanujan, The Lost Notebook and Other Unpublished Papers, Narosa Publishing House, New Delhi, 1988, p. 2, 2nd equation.
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..1000 (corrected previous b-file from G. C. Greubel)
FORMULA
EXAMPLE
G.f. = 1 - 2*x + 2*x^2 - 2*x^3 - 2*x^5 + 4*x^6 + 2*x^8 - 2*x^9 + 2*x^10 - 4*x^11 + ...
MATHEMATICA
a[ n_] := If[ n < 0, 0, SeriesCoefficient[ QPochhammer[ x] Sum[ (-1)^k x^k^2 QPochhammer[ x, x^2, k] / QPochhammer[ -x, x, 2*k], {k, 0, Sqrt@n}], {x, 0, n}]];
nmax = 122; CoefficientList[Series[QPochhammer[q]*Sum[(-1)^n*q^n^2*Product[1 - q^k, {k, 1, 2*n - 1, 2}] / Product[1 + q^k, {k, 1, 2*n}], {n, 0, Floor[Sqrt[nmax]]}], {q, 0, nmax}], q] (* G. C. Greubel, Mar 18 2018, fixed by Vaclav Kotesovec, Jun 15 2019 *)
PROG
(PARI) {a(n) = if( n<0, 0, polcoeff( eta(x + x * O(x^n)) * sum(k=0, sqrtint(n), (-1)^k * x^k^2 * prod(i=1, k, 1 - x^(2*i - 1), 1 + x * O(x^(n - k^2))) / prod(i=1, 2*k, 1 + x^i, 1 + x * O(x^(n - k^2))) ), n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Nov 03 2015
STATUS
approved