OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
Euler transform of period 8 sequence [ -2, 0, 2, 0, 2, 0, -2, 0, ...].
G.f. A(x) satisfies 0 = f(A(x), A(x^2)) where f(u, v) = (v - u^2) * (1 - v) - 4*u*v.
G.f.: x * (Product_{k>=0} (1 - x^(8*k + 1)) * (1 - x^(8*k + 7)) / ((1 - x^(8*k + 3)) * (1 - x^(8*k + 5))))^2.
Convolution square of A092869.
Empirical: Sum_{n>=1} a(n)/exp(Pi*n) = 7 + 4*sqrt(2) - 2*sqrt(20 + 14*sqrt(2)). - Simon Plouffe, Mar 02 2021
EXAMPLE
G.f. = q - 2*q^2 + q^3 + 2*q^4 - 4*q^5 + 4*q^6 - q^7 - 6*q^8 + 11*q^9 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ q Product[ (1 - q^k)^KroneckerSymbol[ 8, k], {k, n}]^2, {q, 0, n}];
a[ n_] := SeriesCoefficient[ (EllipticTheta[ 2, 0, q^2] / (EllipticTheta[ 3, 0, q] + EllipticTheta[ 3, 0, q^2]))^2, {q, 0, n}];
a[ n_] := SeriesCoefficient[ q (QPochhammer[ q, q^8] QPochhammer[ q^7, q^8] / (QPochhammer[ q^3, q^8] QPochhammer[ q^5, q^8]))^2, {q, 0, n}];
PROG
(PARI) {a(n) = local(A, A2); if( n<2, n==1, n--; A = x * O(x^n); A = eta(x + A) * eta(x^4 + A)^2 / eta(x^2 + A)^3; A2 = subst(A, x, x^2); polcoeff( (2 * A^2 * A2^2 / (A^2 + A2))^2, n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Oct 22 2013
STATUS
approved