OFFSET
0,2
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 (phi(q) * phi(-q^2)^2)^2 in powers of q where phi() is a Ramanujan theta function.
Euler transform of period 4 sequence [ 4, -14, 4, -6, ...].
a(n) = 4 * b(n) where a(0) = 1, b(n) is multiplicative with b(2^e) = -1 if e>0, b(p^e) = ((p^2)^(e+1) - 1) / (p^2 - 1) if p == 1 (mod 4), b(p^e) = ((-p^2)^(e+1) - 1) / ( -p^2 - 1) if p == 3 (mod 4).
G.f. is a period 1 Fourier series which satisfies f(-1 / (4 t)) = 32 (t/i)^3 g(t) where q = exp(2 Pi i t) and g() is the g.f. for A122854.
G.f.: 1 + 4 * Sum_{k>0} -(-1)^k * (2*k-1)^2 * x^(2*k-1) / (1 + x^(2*k-1)).
EXAMPLE
G.f. = 1 + 4*q - 4*q^2 - 32*q^3 - 4*q^4 + 104*q^5 + 32*q^6 - 192*q^7 - 4*q^8 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ (QPochhammer[ q^2]^9 / (QPochhammer[ q]^2 QPochhammer[ q^4]^4))^2, {q, 0, n}]; (* Michael Somos, May 24 2015 *)
a[ n_] := If[ n < 1, Boole[n == 0], -4 DivisorSum[ n, #^2 KroneckerSymbol[ -4, #] (-1)^(n/#) &]]; (* Michael Somos, May 24 2015 *)
PROG
(PARI) {a(n) = if( n<1, n==0, -4 * sumdiv(n, d, d^2 * kronecker(-4, d) * (-1)^(n/d)))};
(PARI) {a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( (eta(x^2 + A)^9 / (eta(x + A)^2 * eta(x^4 + A)^4))^2, n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Mar 21 2008
STATUS
approved