%I #38 Mar 12 2021 22:24:47
%S 1,-2,0,2,-2,0,4,-4,0,6,-8,0,10,-12,0,16,-18,0,24,-28,0,36,-40,0,52,
%T -58,0,74,-84,0,104,-116,0,144,-160,0,198,-220,0,268,-296,0,360,-396,
%U 0,480,-528,0,634,-694,0,832,-908,0,1084,-1184,0,1404,-1528,0
%N Expansion of phi(-q) / phi(-q^3) in powers of q where phi() is a Ramanujan theta function.
%C Ramanujan theta functions: f(q) (see A121373), phi(q) (A000122), psi(q) (A010054), chi(q) (A000700).
%H G. C. Greubel, <a href="/A252706/b252706.txt">Table of n, a(n) for n = 0..1000</a>
%H Michael Somos, <a href="/A010815/a010815.txt">Introduction to Ramanujan theta functions</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/RamanujanThetaFunctions.html">Ramanujan Theta Functions</a>
%F Expansion of f(-q, -q^2) / f(q, q^2) in powers of q where f(,) is Ramanujan's two-variable theta function.
%F Euler transform of period 6 sequence [ -2, -1, 0, -1, -2, 0, ...].
%F G.f. is a period 1 Fourier series which satisfies f(-1 / (24 t)) = 3^(1/2) g(t) where q = exp(2 Pi i t) and g() is the g.f. for A101195.
%F G.f.: Product_{k>0} (1 - x^k + x^(2*k)) / (1 + x^k + x^(2*k)).
%F a(n) = (-1)^n * A139137(n).
%F Convolution inverse is A098151.
%F a(3*n + 2) = 0. a(3*n) = A098151(n). a(3*n + 1) = -2 * A097197(n).
%e G.f. = 1 - 2*q + 2*q^3 - 2*q^4 + 4*q^6 - 4*q^7 + 6*q^9 - 8*q^10 + 10*q^12 + ...
%t a[ n_] := SeriesCoefficient[ EllipticTheta[ 4, 0, q] / EllipticTheta[ 4, 0, q^3], {q, 0, n}];
%o (PARI) {a(n) = my(A); if( n<0, 0, A = x * O(x^n); polcoeff( eta(x + A)^2 * eta(x^6 + A) / (eta(x^2 + A) * eta(x^3 + A)^2), n))};
%Y Cf. A097197, A098151, A101195, A139137.
%K sign
%O 0,2
%A _Michael Somos_, Apr 04 2015