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!)
A189169 Zero-one sequence based on the sequence n(n+2): a(A005563(k))=a(k); a(A183299(k))=1-a(k), a(1)=0, a(2)=1. 4

%I #8 Dec 29 2012 18:03:38

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

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

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

%N Zero-one sequence based on the sequence n(n+2): a(A005563(k))=a(k); a(A183299(k))=1-a(k), a(1)=0, a(2)=1.

%t u[n_] := n(n+2); (*A005563*)

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

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

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

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

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

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

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

%Y Cf. A188967, A189170, A189171, A189166.

%K nonn

%O 1

%A _Clark Kimberling_, Apr 17 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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)