The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A153778 Binary sequence constructed like a Stern-Brocot tree between 0 and 1, where XOR is applied instead of the mediant operation. 1
1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The Jacobsthal sequence gives numbers of zeros and ones in the rows of the tree:
A001045(k) = #{i: 2^k <= i < 2^(k+1) and a(i)=0};
A001045(k+1) = #{i: 2^k <= i < 2^(k+1) and a(i)=1}.
LINKS
FORMULA
a(1) = 1 and for n>1: a(n) = if A025480(n-1)<>0 and A025480(n)<>0 then a(A025480(n-1)) XOR a(A025480(n)) else if A025480(n)=0 then 1-a(A025480(n-1)) else a(A025480(n-1)).
EXAMPLE
.[0] . . . . . . . . . . . . . . . . . [1]
................... 1
........... 1 ............. 0
....... 1 ..... 0 ..... 1 ..... 1
..... 1 . 0 . 1 . 1 . 0 . 1 . 1 . 0
.... 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1.
CROSSREFS
Sequence in context: A065535 A285518 A093719 * A065251 A039982 A267349
KEYWORD
nonn,tabf
AUTHOR
Reinhard Zumkeller, Jan 01 2009
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 May 17 08:10 EDT 2024. Contains 372579 sequences. (Running on oeis4.)