OFFSET
0,7
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
Expansion of q^(-1/3) * eta(q) * eta(q^6)^4 / (eta(q^2) * eta(q^3) * eta(q^12)) in powers of q.
Euler transform of period 12 sequence [ -1, 0, 0, 0, -1, -3, -1, 0, 0, 0, -1, -2, ...].
G.f.: Product_{k>0} (1 + x^(3*k)) * (1 - x^(6*k))^2 / ( (1 + x^k) * (1 + x^(6*k)) ).
EXAMPLE
G.f. = 1 - x - x^5 - 2*x^6 + 2*x^7 + x^8 + 2*x^11 - 2*x^14 + x^16 - x^21 + ...
G.f. = q - q^4 - q^16 - 2*q^19 + 2*q^22 + q^25 + 2*q^34 - 2*q^43 + q^49 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ QPochhammer[ x, x^2] QPochhammer[ -x^3] QPochhammer[ x^6], {x, 0, n}];
a[ n_] := If[ n < 0, 0, (-1)^Quotient[ 3 n, 2] DivisorSum[ 3 n + 1, KroneckerSymbol[-2, #] &]]];
PROG
(PARI) {a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x + A) * eta(x^6 + A)^4 / (eta(x^2 + A) * eta(x^3 + A) * eta(x^12 + A)), n))};
(PARI) {a(n) = if( n<0, 0, (-1)^(3*n\2) * sumdiv(3*n + 1, d, kronecker( -2, d)))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Jun 09 2015
STATUS
approved