A164349 The limit of the string "0, 1" under the operation 'repeat string twice and remove last symbol'.
0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1
Offset: 0
Links
- Robert G. Wilson v, Table of n, a(n) for n = 0..16384
Programs
-
Haskell
a164349 n = if n == 0 then 0 else until (<= 1) (a053645 . subtract 1) n -- Reinhard Zumkeller, Aug 28 2014
-
Mathematica
Nest[ Most@ Flatten@ {#, #} &, {0, 1}, 7] (* Robert G. Wilson v, Aug 17 2009 *)
-
Perl
my $ab = "10"; for (my $j = 1; $j < 30; $j++) { $ab .= $ab; substr $ab, -1, 1, ""; print "$ab\n"; }
Extensions
Spelling and notation corrected by Charles R Greathouse IV, Mar 23 2010
Comments