OFFSET
1,3
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
Expansion of (1 - eta(q)^2 * eta(q^4)^5 / (eta(q^2)^3 * eta(q^8)^2)) / 2 in powers of q.
Moebius transform is period 16 sequence [ 1, -2, 1, 0, -1, -2, -1, 0, 1, 2, 1, 0, -1, 2, -1, 0, ...].
a(n) is multiplicative with a(2^e) = -1 if e>0, a(p^e) = (1 + (-1)^e) / 2 if p == 5, 7 (mod 8), a(p^e) = e + 1 if p == 1, 3 (mod 8).
EXAMPLE
G.f. = q - q^2 + 2*q^3 - q^4 - 2*q^6 - q^8 + 3*q^9 + 2*q^11 - 2*q^12 - q^16 + ...
MATHEMATICA
a[ n_] := If[ n < 1, 0, -(-1)^n DivisorSum[ n, KroneckerSymbol[ -2, #] &]]; (* Michael Somos, Oct 30 2015 *)
PROG
(PARI) {a(n) = if( n<1, 0, -(-1)^n * sumdiv(n, d, kronecker( -2, d)))};
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Michael Somos, Sep 20 2007
STATUS
approved