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!)
A189031 Zero-one sequence based on the sequence (6n-5): a(A016921(k))=a(k); a(A114024(k))=1-a(k); a(1)=0. 3

%I #4 Mar 30 2012 18:57:23

%S 0,1,0,1,0,1,1,0,0,1,1,0,0,0,1,1,1,0,1,0,0,1,0,1,0,1,0,1,0,1,1,0,1,0,

%T 1,0,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,1,0,1,1,0,1,0,1,1,1,0,0,1,0,0,0,1,

%U 0,1,0,0,0,0,1,1,0,1,0,1,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,1,1,1,1,1

%N Zero-one sequence based on the sequence (6n-5): a(A016921(k))=a(k); a(A114024(k))=1-a(k); a(1)=0.

%e Let u=A016921 and v=A114024, so that u(n)=6n-5 and v=complement(u) for n>=1. Then a is a self-generating zero-one sequence with initial value a(1)=0 and a(u(k))=a(k); a(v(k))=1-a(k).

%t u[n_] := 6n-5; (*A016921*)

%t a[1] = 0; h = 128;

%t c = (u[#1] &) /@ Range[h];

%t d = (Complement[Range[Max[#1]], #1] &)[c]; (*A114024*)

%t Table[a[d[[n]]] = 1 - a[n], {n, 1, h - 1}];

%t Table[a[c[[n]]] = a[n], {n, 1, h}] (*A189031*)

%t Flatten[Position[%, 0]] (*A189032*)

%t Flatten[Position[%%, 1]] (*A189033*)

%Y Cf. A188967, A189032, A189033.

%K nonn

%O 1

%A _Clark Kimberling_, Apr 15 2011

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 April 25 11:34 EDT 2024. Contains 371967 sequences. (Running on oeis4.)