OFFSET
1,4
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 7 sequence [ 0, -1, 2, 2, -1, 0, -2, ...].
EXAMPLE
G.f. = q - q^3 + 2*q^4 + 2*q^5 - 3*q^6 + q^7 + 3*q^8 - 2*q^9 - q^10 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ q Product[ (1 - q^k)^{0, 1, -2, -2, 1, 0, 2, 2}[[Mod[k, 7, 1]]], {k, n}], {q, 0, n}]
PROG
(PARI) {a(n) = local(A); if( n<1, 0, n--; A = x * O(x^n); polcoeff( prod( k=1, n, (1 - x^k + A)^[ 2, 0, 1, -2, -2, 1, 0, 2][k%7 + 1]), n))}
(Sage) ModularForms( Gamma1(7), 1, prec=70).1
(Magma) Basis( ModularForms( Gamma1(7), 1), 70) [2]
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Dec 09 2013
STATUS
approved