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
Euler transform of period 4 sequence [ 2, -5, 2, 1, ...].
EXAMPLE
G.f. = 1 + 2*x - 2*x^2 - 4*x^3 + 5*x^4 + 6*x^5 - 10*x^6 - 12*x^7 + ...
G.f. = 1/q + 2*q - 2*q^3 - 4*q^5 + 5*q^7 + 6*q^9 - 10*q^11 -12*q^13 + ...
MATHEMATICA
a[ n_]:= SeriesCoefficient[4*x^(1/2)*EllipticTheta[3, 0, x]/EllipticTheta[ 2, 0, x]^2, {x, 0, n}];
a[ n_]:= SeriesCoefficient[QPochhammer[x^2]^7/(QPochhammer[x]^2* QPochhammer[x^4]^6), {x, 0, n}];
PROG
(PARI) {a(n) = local(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x^2 + A)^7 / (eta(x + A)^2 * eta(x^4 + A)^6), n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Nov 19 2013
STATUS
approved