a(1)=1. Concatenate onto the end of the sequence (from left to right) the integer m_n converted into binary and reversed (with the most significant digit on the right), where m_n is the smallest integer > A118252(n-1) and whose reversed binary representation does not occur anywhere earlier in the sequence (when the concatenated sequence is read from left to right). A118252(n) then equals m_n when written in decimal.

A118251

a(1)=1. Concatenate onto the end of the sequence (from left to right) the integer m_n converted into binary and reversed (with the most significant digit on the right), where m_n is the smallest integer > A118252(n-1) and whose reversed binary representation does not occur anywhere earlier in the sequence (when the concatenated sequence is read from left to right). A118252(n) then equals m_n when written in decimal.

Terms

    a(0) =1a(1) =0a(2) =1a(3) =1a(4) =1a(5) =0a(6) =0a(7) =1a(8) =0a(9) =0a(10) =0a(11) =1a(12) =0a(13) =1a(14) =0a(15) =1a(16) =1a(17) =1a(18) =0a(19) =1a(20) =0a(21) =0a(22) =1a(23) =1a(24) =1a(25) =1a(26) =1a(27) =1a(28) =0a(29) =0

External references