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”).

A163809
Write n in binary. Insert a 0 in the middle of each pair of two consecutive 1's. a(n) = the decimal value of the result.
1
1, 2, 5, 4, 5, 10, 21, 8, 9, 10, 21, 20, 21, 42, 85, 16, 17, 18, 37, 20, 21, 42, 85, 40, 41, 42, 85, 84, 85, 170, 341, 32, 33, 34, 69, 36, 37, 74, 149, 40, 41, 42, 85, 84, 85, 170, 341, 80, 81, 82, 165, 84, 85, 170, 341, 168, 169, 170, 341, 340, 341, 682, 1365, 64, 65, 66, 133
OFFSET
1,2
COMMENTS
a(2n) = A163808(2n). a(2n-1) = A163808(2n-1)/2.
EXAMPLE
13 in binary is 1101. There is one pair of two consecutive 1's. Insert a 0 between these 1's so as to get 10101. a(13) is the decimal equivalent of 10101, which is 21.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Aug 04 2009
EXTENSIONS
More terms from Sean A. Irvine, Nov 05 2009
STATUS
approved