OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
EXAMPLE
1 + 3*q + 6*q^2 + 11*q^3 + 20*q^4 + 34*q^5 + 56*q^6 + 91*q^7 + 143*q^8 + ...
a(2) = 6 since 2*2 + 1 = 5 = 3 + 2 = 3 + 1 + 1 = 2 + 2 + 1 = 2 + 1 + 1 + 1 = 1 + 1 + 1 + 1 + 1 in 6 ways.
MATHEMATICA
a[n_]:= SeriesCoefficient[(EllipticTheta[3, 0, q^2]/EllipticTheta[3, 0, -q] - 1)/(2*q), {q, 0, n}]; Table[a[n], {n, 0, 50}] (* G. C. Greubel, Mar 05 2018 *)
PROG
(PARI) {a(n) = local(A); if( n<0, 0, n = 2*n + 2; A = x * O(x^n); polcoeff( (eta(x^2 + A)^3 / (eta(x + A)^2 * eta(x^4 + A)) - 1) / 2, n))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, Mar 02 2012
STATUS
approved