login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A258998 a(n) = -(-1)^n if n = k^2 for positive integer k, otherwise 0. 2
0, 1, 0, 0, -1, 0, 0, 0, 0, 1, 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, 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, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

0

COMMENTS

Ramanujan theta functions: f(q) (see A121373), phi(q) (A000122), psi(q) (A010054), chi(q) (A000700).

Denoted by B_n^o(-1) in Kassel and Reutenauer 2105.

LINKS

Seiichi Manyama, Table of n, a(n) for n = 0..1000

C. Kassel and C. Reutenauer, On the Zeta Functions of Punctual Hilbert schemes of a Two-Dimensional Torus, arXiv:1505.07229 [math.AG], 2015, see page 31 7.2(d).

M. Somos, Introduction to Ramanujan theta functions

Eric Weisstein's World of Mathematics, Ramanujan Theta Functions

FORMULA

Expansion of (1 - phi(-x)) / 2 in powers of x where phi() is a Ramanujan theta function.

a(n) is multiplicative with a(2^e) = (-1)^(e/2) if e even, a(p^e) = 1 if p>2 and e even, otherwise 0.

G.f.: (1 - theta_4(x)) / 2 where theta_4() is a Jacobi theta function.

-2 * a(n) = A002448(n) unless n = 0. a(n) = -(-1)^n * A010052(n) unless n = 0.

a(n) = ((-1)^(n+2^(n-(floor(sqrt(n)))^2))-(-1)^(n+2^n))/2. - Luce ETIENNE, Aug 31 2015

EXAMPLE

G.f. = x - x^4 + x^9 - x^16 + x^25 - x^36 + x^49 - x^64 + x^81 - x^100 + ...

MATHEMATICA

a[ n_] := If[ n < 1, 0, If[ IntegerQ[ Sqrt @ n], -(-1)^n, 0]];

a[ n_] := SeriesCoefficient[ (1 - EllipticTheta[ 4, 0, x]) / 2, {x, 0, n}];

PROG

(PARI) {a(n) = if( n<1, 0, issquare(n), -(-1)^n, 0)};

(MAGMA) [((-1)^(n+2^(n-(Floor(Sqrt(n)))^2))-(-1)^(n+2^n))/2: n in [0..100]]; // Vincenzo Librandi, Sep 03 2015

CROSSREFS

Cf. A002448, A010052.

Cf. A000007.

Cf. Related to Expansion of (1 - eta(q)^k / eta(q^k)) / k in powers of q: this sequence (k=2), A123477 (k=3), A109091 (k=5), A160535 (k=7).

Sequence in context: A285831 A188294 A258021 * A188020 A283683 A286655

Adjacent sequences:  A258995 A258996 A258997 * A258999 A259000 A259001

KEYWORD

sign,mult

AUTHOR

Michael Somos, Jun 16 2015

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 15 21:06 EDT 2018. Contains 316237 sequences. (Running on oeis4.)