OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
Expansion of (eta(q)^2 * eta(q^4)^5 / (eta(q^2)^3 * eta(q^8)^2))^2 in powers of q.
Euler transform of period 8 sequence [ -4, 2, -4, -8, -4, 2, -4, -4, ...].
a(n) = -4 * b(n) where b() is multiplicative with b(2) = -2, b(2^e) = -6 if e>1, b(p^e) = (p^(e+1) - 1) / (p - 1) if p>2.
G.f. is a period 1 Fourier series which satisfies f(-1 / (8 t)) = 32 (t/i)^2 g(t) where q = exp(2 Pi i t) and g() is the g.f. for A133657.
G.f.: ( Product_{k>0} (1 - x^k)^2 * (1 + x^(2*k))^3 / (1 + x^(4*k))^2 )^2.
EXAMPLE
G.f. = 1 - 4*q + 8*q^2 - 16*q^3 + 24*q^4 - 24*q^5 + 32*q^6 - 32*q^7 + 24*q^8 - ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ (EllipticTheta[ 4, 0, q] EllipticTheta[ 3, 0, q^2])^2, {q, 0, n}]; (* Michael Somos, Oct 30 2015 *)
a[ n_] := If[ n < 1, Boole[n == 0], -4 Which[ OddQ[n], DivisorSigma[ 1, n], Mod[n, 4] > 0, -2 DivisorSigma[1, n/2], True, -6 DivisorSum[n/4, # Mod[#, 2] &]]]; (* Michael Somos, Oct 30 2015 *)
PROG
(PARI) {a(n) = if( n<1, n==0, -4 * if( n%2, sigma(n), n%4, -2 * sigma(n/2), -6 * sumdiv( n/4, d, (d%2)*d )))};
(PARI) {a(n) = local(A); if ( n<0, 0, A = x * O(x^n); polcoeff( (eta(x + A)^2 * eta(x^4 + A)^5 / (eta(x^2 + A)^3 * eta(x^8 + A)^2))^2, n))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Sep 20 2007
STATUS
approved