OFFSET
0,3
COMMENTS
LINKS
Michael Somos, Introduction to Ramanujan theta functions
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
Euler transform of period 32 sequence [ 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, ...].
- a(n) = A029838(4*n + 2).
a(n) ~ sqrt(2*(1+sqrt(2))) * exp(Pi*sqrt(n/2)) / (16*n^(3/4)). - Vaclav Kotesovec, Nov 07 2015
EXAMPLE
G.f. = 1 + x + 2*x^2 + 3*x^3 + 5*x^4 + 6*x^5 + 9*x^6 + 12*x^7 + 17*x^8 + ...
G.f. = q^15 + q^47 + 2*q^79 + 3*q^111 + 5*q^143 + 6*q^175 + 9*q^207 + ...
MATHEMATICA
a[ n_] := SeriesCoefficient[ Product[ (1 - x^k)^-{ 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0}[[Mod[k, 32, 1]]], {k, n}], {x, 0, n}];
PROG
(PARI) {a(n) = if( n<0, 0, polcoeff( prod(k=1, n, (1 - x^k + x * O(x^n))^-[ 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1][k%32 + 1]), n))};
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, Nov 07 2015
STATUS
approved