login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104145 a(1) = 1; let A(k) = sequence of first 2^(k-1) terms; then A(k+1) is concatenation of A(k) and (A(k)-1) if a(k) is odd, or concatenation of A(k) and (A(k)+1) if a(k) is even. 1
1, 0, 2, 1, 2, 1, 3, 2, 0, -1, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 3, 2, 4, 3, 1, 0, 2, 1, 2, 1, 3, 2, 0, -1, 1, 0, 1, 0, 2, 1, -1, -2, 0, -1, 0, -1, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 0, -1, 1, 0, 1, 0, 2, 1, 0, -1, 1, 0, 1, 0, 2, 1, -1, -2, 0, -1, 0, -1, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 0, -1, 1, 0, 1, 0, 2, 1, -1, -2, 0, -1, 0, -1, 1, 0, -2, -3, -1, -2, -1, -2, 0, -1, 0, -1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..115.

FORMULA

a(n) = 1 - A137412(n). - Leroy Quet, Apr 22 2008

EXAMPLE

a(3) = 2 is even, so A(4) (1,0,2,1,2,1,3,2), the first 8 terms of the sequence, is A(3) (1,0,2,1) concatenated with each term of A(3) plus one (2,1,3,2).

CROSSREFS

Cf. A137412.

Sequence in context: A134780 A247379 A154819 * A230981 A123675 A322872

Adjacent sequences:  A104142 A104143 A104144 * A104146 A104147 A104148

KEYWORD

easy,sign

AUTHOR

Leroy Quet, Mar 07 2005

EXTENSIONS

More terms from Joshua Zucker, May 10 2006

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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 5 11:05 EST 2021. Contains 349557 sequences. (Running on oeis4.)