OFFSET
1,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
Michael Somos, Introduction to Ramanujan theta functions.
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions.
FORMULA
Expansion of (1 - (eta(q)^2 * eta(q^4)^5 / (eta(q^2)^3 * eta(q^8)^2))^2) / 4 in powers of q.
a(n) is multiplicative with a(2) = -2, a(2^e) = -6 if e>1, a(p^e) = (p^(e+1) - 1) / (p - 1) if p>2.
a(n) = -4 * A133690(n) = -(-1)^n * A111973(n). a(2*n) = -2 * A046897(n). a(2*n + 1) = A008438(n). a(4*n) = -6 * A000593(n). a(4*n + 1) = A112610(n). a(4*n + 3) = 4 * A097723(n).
Dirichlet g.f.: zeta(s) * zeta(s-1) * (1 - 5/2^s + 1/2^(2*s-1) + 1/2^(3*s-3)). - Amiram Eldar, Oct 28 2023
EXAMPLE
G.f. = q - 2*q^2 + 4*q^3 - 6*q^4 + 6*q^5 - 8*q^6 + 8*q^7 - 6*q^8 + 13*q^9 - ...
MATHEMATICA
a[ n_] := Which[ n < 1, 0, OddQ[n], DivisorSigma[ 1, n], True, -2 DivisorSum[ n/2, # Boole[Mod[#, 4] > 0] &]]; (* Michael Somos, Oct 30 2015 *)
a[ n_] := SeriesCoefficient[ (1 - (EllipticTheta[ 4, 0, q] EllipticTheta[ 3, 0, q^2])^2) / 4, {q, 0, n}]; (* Michael Somos, Oct 30 2015 *)
PROG
(PARI) {a(n) = if( n<1, 0, n%2, sigma(n), -2 * sumdiv(n/2, d, if(d%4, d)))};
CROSSREFS
KEYWORD
sign,easy,mult
AUTHOR
Michael Somos, Sep 20 2007
STATUS
approved