login
Write natural numbers in base 2 as a stream of digits. Moving left to right, delete even occurrences of digit 0 and 1.
3

%I #8 Jan 04 2013 16:03:55

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

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

%N Write natural numbers in base 2 as a stream of digits. Moving left to right, delete even occurrences of digit 0 and 1.

%e Numbers in base 2: 0, 1, 10, 11, 100, 101, 110, 111, 1000..... Stream of digits: 0110111001011101111000 Delete even occurrences of 0(replaced by ~): 011~1110~10111~11110~0 Delete even occurrences of 1(replaced by ~): 01~~1~10~~01~1~~1~10~0 Left digits: 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0,....

%Y A174203-A174205, A174207-A174210

%K easy,nonn,base,uned

%O 0,1

%A _Paolo P. Lava_ and _Giorgio Balzarotti_, Mar 15 2010