[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A174208
Write natural numbers in base 2 as a stream of digits. Moving left to right, delete odd occurrences of digit 0 and even occurrences of digit 1.
3
1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1
OFFSET
0,1
EXAMPLE
Numbers in base 2: 0, 1, 10, 11, 100, 101, 110, 111, 1000.....
Stream of digits: 0110111001011101111000...
Delete odd occurrences of 0 (replace by ~): ~110111~01~11101111~0~...
Delete even occurrences of 1 (replace by ~): ~1~01~1~0~~1~10~1~1~0~...
This leaves the digits: 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0,....
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Aug 21 2012
STATUS
approved