OFFSET
0,10
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
Expansion of eta(q^2)^2 * eta(q^3) * eta(q^9)^2 / (eta(q) * eta(q^6) * eta(q^18)) in powers of q.
Euler transform of period 18 sequence [ 1, -1, 0, -1, 1, -1, 1, -1, -2, -1, 1, -1, 1, -1, 0, -1, 1, -2, ...].
EXAMPLE
G.f. = 1 + q - q^4 - 4*q^9 - 2*q^10 + 2*q^13 - q^16 + 4*q^18 + 3*q^25 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ EllipticTheta[ 2, 0, q^(1/2)] / (2 q^(1/8)) QPochhammer[ q^3, q^6] EllipticTheta[ 4, 0, q^9], {q, 0, n}];
PROG
(PARI) {a(n) = if( n<1, n==0, (-1)^(n\3) * (n%3<2) * sumdiv(n, d, [0, 1, 2, -1][d%4 + 1] * if(d%9, 1, 4) * (-1)^((d%8==6) + n+d)))};
(PARI) {a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x^2 + A)^2 * eta(x^3 + A) * eta(x^9 + A)^2 / (eta(x + A) * eta(x^6 + A) * eta(x^18 + A)), n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Jun 02 2015
STATUS
approved