Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A132971
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A132971 a(2*n) = a(n), a(4*n+1) = -a(n), a(4*n+3) = 0. +0
1
1, -1, -1, 0, -1, 1, 0, 0, -1, 1, 1, 0, 0, 0, 0, 0, -1, 1, 1, 0, 1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, 1, 0, 1, -1, 0, 0, 1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 1, 1, 0, 1, -1, 0, 0, 1, -1, -1, 0, 0, 0, 0, 0, 1, -1, -1, 0, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 (list; graph; listen)
OFFSET

0,1

COMMENT

If binary(n) has adjacent 1 bits then a(n) = 0 else a(n) = (-1)^A000120(n).

FORMULA

A024490(n) = number of solutions to 2^n <= k < 2^(n+1) and a(k) = 1.

A005252(n) = number of solutions to 2^n <= k < 2^(n+1) and a(k) = -1.

A027935(n-1) = number of solutions to 2^n <= k < 2^(n+1) and a(k) = 0.

G.f. A(x) satisfies A(x) = A(x^2) - x * A(x^4).

G.f. B(x) of A000621 satisfies B(x) = x * A(x^2) / A(x).

EXAMPLE

1 - x - x^2 - x^4 + x^5 - x^8 + x^9 + x^10 - x^16 + x^17 + x^18 + ...

PROGRAM

(PARI) {a(n) = if( n<1, n==0, if( n%2, if( n%4 > 1, 0, -a((n-1)/4) ), a(n/2) ) )}

(PARI) {a(n) = local(A, m); if( n<0, 0, m = 1; A = 1 + O(x); while( m<=n, m *= 2; A = subst(A, x, x^2) - x * subst(A, x, x^4) ); polcoeff( A, n )) }

CROSSREFS

Sequence in context: A097806 A167374 A085357 this_sequence A011748 A145361 A130304

Adjacent sequences: A132968 A132969 A132970 this_sequence A132972 A132973 A132974

KEYWORD

sign

AUTHOR

Michael Somos, Sep 17 2007, Sep 19 2007

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research