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!)
A189206 Zero-one sequence based on the sequence of odd primes: a(A065091(k))=a(k); a(v(k))=1-a(k), where v=A065090 and a(1)=0, a(2)=0. 4

%I #5 Mar 30 2012 18:57:24

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

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

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

%N Zero-one sequence based on the sequence of odd primes: a(A065091(k))=a(k); a(v(k))=1-a(k), where v=A065090 and a(1)=0, a(2)=0.

%t u[n_] := Prime[n+1]; (*A065091*)

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

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

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

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

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

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

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

%Y Cf. A188967, A189207, A189208, A189209.

%K nonn

%O 1

%A _Clark Kimberling_, Apr 18 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 09:14 EDT 2024. Contains 371967 sequences. (Running on oeis4.)