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
Expansion of eta(q^2)^5 / (eta(q)^2 * eta(q^8)) in powers of q.
Euler transform of period 8 sequence [ 2, -3, 2, -3, 2, -3, 2, -2, ...].
G.f.: Product_{k>0} (1 - x^(2*k))^5 / ((1 - x^k)^2 * (1 - x^(8*k))).
a(n) = (-1)^n * A246950(n). a(8*n + 1) = 2 * A113407(n). a(8*n + 5) = -4 * A053692(n). - Michael Somos, Jun 10 2015
EXAMPLE
G.f. = 1 + 2*q - 4*q^5 - 4*q^8 + 2*q^9 - 4*q^13 + 4*q^16 + 4*q^17 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ EllipticTheta[ 3, 0, q] EllipticTheta[ 4, 0, q^4], {q, 0, n}]; (* Michael Somos, Jun 10 2015 *)
PROG
(PARI) {a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x^2 + A)^5 / (eta(x + A)^2 * eta(x^8 + A)), n))};
(PARI) {a(n) = my(A, p, e); if( n<1, n==0, A = factor(n); 2 * (-1)^(n%8==5) * prod( k=1, matsize(A)[1], [p, e] = A[k, ]; if( p==2, 2 * (e>2) * (-1)^(e<4), p%4==1, e+1, !(e%2))))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Jan 15 2012
STATUS
approved