OFFSET
0,3
COMMENTS
REFERENCES
Srinivasa Ramanujan, The Lost Notebook and Other Unpublished Papers, Narosa Publishing House, New Delhi, 1988, p. 4, 5th equation.
LINKS
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
EXAMPLE
G.f. = 1 + 2*x^2 + 2*x^4 - 2*x^5 + 2*x^8 + 2*x^10 - 4*x^13 + 2*x^14 + ...
MATHEMATICA
a[ n_] := If[ n < 0, 0, SeriesCoefficient[ 1 + 2 Sum[ x^(k (3 k + 1)/2) (1 + x^(2 k)) / (1 + x^(3 k)), {k, (Sqrt[ 24 n + 1] - 1) / 6}], {x, 0, n}]];
a[ n_] := If[ n < 0, 0, SeriesCoefficient[ EllipticTheta[ 4, 0, x^3] QPochhammer[ -x, x] Sum[ (-1)^k x^k^2 QPochhammer[ x, x^2, k] / QPochhammer[ -x, x, 2 k], {k, 0, Sqrt @ n}], {x, 0, n}]];
PROG
(PARI) {a(n) = if( n<0, 0, polcoeff( sum(k=1, (sqrtint(24*n + 1)-1)\6, 2 * x^(k*(3*k + 1)/2) * (1 + x^(2*k)) / (1 + x^(3*k)), 1 + x * O(x^n)), n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Nov 08 2015
STATUS
approved