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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A104106 a(1) = 1; thereafter, if A(k) = sequence of first 2^k -1 terms, then A(k+1) = A(k),1,A(k) if a(k) = 0, and A(k+1) = A(k),0,A(k) if a(k) = 1. 5
1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

Christian Krause, LODA program for A104106

FORMULA

a(n) = A089242(n) mod 2. - Christian Krause, Mar 19 2021

MAPLE

a:= Vector(2^9-1):

a[1]:= 1;

for k from 1 to 8 do

  a[2^k]:= 1-a[k];

  a[2^k+1..2^(k+1)-1]:= a[1..2^k-1]

od:

convert(a, list); # Robert Israel, May 07 2018

MATHEMATICA

f[l_]:=Join[l, 1-{l[[Log[2, Length[l]+1]]]}, l]; Nest[f, {1}, 7] (* Ray Chandler, Apr 05 2009 *)

CROSSREFS

Cf. A104104, A104105, A104107, A104108.

Cf. A089242.

Sequence in context: A257477 A259024 A323045 * A141260 A029883 A035263

Adjacent sequences:  A104103 A104104 A104105 * A104107 A104108 A104109

KEYWORD

easy,nonn,changed

AUTHOR

Leroy Quet, Mar 04 2005

EXTENSIONS

Edited and extended by Ray Chandler, Apr 05 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 14 12:11 EDT 2021. Contains 342949 sequences. (Running on oeis4.)