OFFSET
1,3
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
EXAMPLE
G.f. = q + 5*q^3 - 2*q^4 + 6*q^5 + 4*q^6 + 8*q^7 - 6*q^8 + 17*q^9 + ...
MATHEMATICA
a[ n_] := If[ n < 1, 0, Sum[ d ( 2 Mod[ d, 2] Boole[Mod[ n/d, 3] > 0] - Mod[ n/d, 2] Boole[ Mod[d, 3] > 0]), {d, Divisors @n}]];
a[ n_] := SeriesCoefficient[ 2 q (QPochhammer[ q^3] QPochhammer[ q^6])^3 / (QPochhammer[ q] QPochhammer[ q^2]) - q (QPochhammer[ q^2] QPochhammer[ q^6])^4 / (QPochhammer[ q] QPochhammer[ q^3])^2, {q, 0, n}];
PROG
(PARI) {a(n) = local(A); if( n<1, 0, n--; A=x*O(x^n); polcoeff( 2 * (eta(x^3 + A) * eta(x^6 + A))^3 / (eta(x + A) * eta(x^2 + A)) - (eta(x^2 + A) * eta(x^6 + A))^4 / (eta(x + A) * eta(x^3 + A))^2, n))};
(Sage) ModularForms( Gamma0(6), 2, prec=70).1;
(Magma) Basis( ModularForms( Gamma0(6), 2), 70) [2];
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Nov 22 2013
STATUS
approved