login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A197870 Expansion of false theta series variation of Ramanujan theta function psi(x). 5
1, -1, 0, 1, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Ramanujan theta functions: f(q) (see A121373), phi(q) (A000122), psi(q) (A010054), chi(q) (A000700).
LINKS
Eric Weisstein's World of Mathematics, Ramanujan Theta Functions
FORMULA
G.f.: Sum_{k>=0} (-1)^k * x^(k*(k+1)/2). |a(n)| = A010054(n).
G.f.: G(0) where G(k) = 1 - q^(k+1)*G(k+1) = 1 - q*(1 - q^2*(1 - q^3*(1 - q^4*(1 - ...)))). - Joerg Arndt, Jun 29 2013
G.f.: Sum_{k>=0} a(k) * x^(3*k) = 1 / (1+x) + x*(1-x) / ((1+x)*(1+x^2)*(1+x^3)) + x^2*(1-x)*(1-x^3) / ((1+x)*(1+x^2)*...*(1+x^5)) + ... - Michael Somos, Jul 21 2014
EXAMPLE
G.f. = 1 - x + x^3 - x^6 + x^10 - x^15 + x^21 - x^28 + x^36 - x^45 + x^55 + ...
G.f. = q - q^9 + q^25 - q^49 + q^81 - q^121 + q^169 - q^225 + q^289 - q^361 + ...
MATHEMATICA
a[ n_] := If[ n < 0, 0, SeriesCoefficient[ Sum[ (-1)^k x^(k (k + 1)/2), {k, 0, (Sqrt[8 n + 1] - 1)/2}], {x, 0, n}]]; (* Michael Somos, Jul 21 2014 *)
a[n_] := Module[{r, k}, r = Reduce[k >= 0 && 2n == k(k+1), k, Integers]; If[r === False, 0, (-1)^r[[2]] ] ]; Table[a[n], {n, 0, 104}] (* Jean-François Alcover, Nov 27 2016 *)
PROG
(PARI) {a(n) = local(x); if( issquare( 8*n + 1, &x), (-1)^(x\2), 0)};
CROSSREFS
Cf. A010054.
Cf. A005169 (g.f.: G(0), where G(k) = 1/( 1 - q^(k+1)*G(k+1) ) ).
Sequence in context: A106459 A143433 A143434 * A033806 A033802 A033800
KEYWORD
sign
AUTHOR
Michael Somos, Oct 18 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)