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!)
A143222 a(0)=0. For n >=1, a(n) = 0 if the binary representation of n occurs at least once in the concatenation of (a(0),a(1),...,a(n-1)). a(n) = 1 otherwise. 2

%I #6 Mar 11 2014 01:32:26

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

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

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

%N a(0)=0. For n >=1, a(n) = 0 if the binary representation of n occurs at least once in the concatenation of (a(0),a(1),...,a(n-1)). a(n) = 1 otherwise.

%e The binary representation of 20 is 10100. This occurs in the concatenation of terms a(0) through a(19) like so: 01(10100)1100100111100. So a(20) = 0.

%t f[l_List]:=Append[l,Boole[StringPosition[ToString[FromDigits[l]],ToString[FromDigits[IntegerDigits[Length[l],2]]]]=={}]];Nest[f,{0},125] [From _Ray Chandler_, Nov 09 2008]

%Y Cf. A143220, A143221.

%K base,nonn

%O 0,1

%A _Leroy Quet_, Jul 30 2008

%E Extended by _Ray Chandler_, Nov 09 2008

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 18 14:27 EDT 2024. Contains 372630 sequences. (Running on oeis4.)