Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A143259
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A143259 a(n) = 1 if n is a nonzero square, -1 if n is twice a nonzero square, 0 otherwise. +0
1
1, -1, 0, 1, 0, 0, 0, -1, 1, 0, 0, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 0 (list; graph; listen)
OFFSET

1,1

FORMULA

Expansion of (phi(q) - phi(q^2)) / 2 = q * psi(q^4) * f(-q, -q^7) / f(-q^3, -q^5) in powers of q where phi(), psi() and f() are Ramanujan theta functions.

Euler transform of period 8 sequence [ -1, 0, 1, 1, 1, 0, -1, -1, ...].

a(2*n) = -a(n).

a(n) is multiplicative with a(2^e) = (-1)^e, a(p^e) = (1 + (-1)^e) / 2 if p == 1 (mod 2).

Dirichlet g.f.: zeta(2*s) * (1 - 2^-s).

G.f. A(x) satisfies A(x) / A(x^2) = -1 + A111374(x).

G.f. A(x) satisfies A(x^2) = - (A(x) + A(-x)) / 2.

G.f. A(x) satisfies 0 = f(A(x), A(x^2), A(x^4)) where f(u, v, w) = w * (u + v)^2 - v * (v + w) * (v + 2*w).

G.f.: (theta_3(q) - theta_3(q^2)) / 2 = Sum_{k>0} x^(k^2) - x^(2k^2).

EXAMPLE

q - q^2 + q^4 - q^8 + q^9 + q^16 - q^18 + q^25 - q^32 + q^36 + q^49 - q^50 + ...

PROGRAM

(PARI) {a(n) = issquare(n) - issquare(2*n)}

(PARI) {a(n) = if( n<1, 0, n--; polcoeff( prod(k=1, n, (1 - x^k)^([1, 1, 0, -1, -1, -1, 0, 1][k%8 + 1]), 1 + x * O(x^n)), n))}

CROSSREFS

A093709(n) = |a(n)|.

Sequence in context: A058840 A154269 A036987 this_sequence A113430 A113681 A155972

Adjacent sequences: A143256 A143257 A143258 this_sequence A143260 A143261 A143262

KEYWORD

sign,mult

AUTHOR

Michael Somos, Aug 02 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research