login
A175055
a(n) = decimal equivalent of {A033015(n) written in binary, and each run of 0's reduced in length by one digit, and each run of 1's reduced in length by one digit}.
6
1, 3, 2, 7, 4, 6, 15, 8, 5, 12, 14, 31, 16, 9, 11, 24, 13, 28, 30, 63, 32, 17, 19, 10, 23, 48, 25, 27, 56, 29, 60, 62, 127, 64, 33, 35, 18, 39, 20, 22, 47, 96, 49, 51, 26, 55, 112, 57, 59, 120, 61, 124, 126, 255, 128, 65, 67, 34, 71, 36, 38, 79, 40, 21, 44, 46, 95, 192, 97, 99
OFFSET
1,2
COMMENTS
This is a permutation of the positive integers. Sequence A175056 is its inverse permutation.
LINKS
MATHEMATICA
FromDigits[Join @@ #, 2] & /@ Map[Drop[#, 1] &, Select[Array[Split@ IntegerDigits[#, 2] &, 905], Min[Length /@ #] > 1 &], {2}] (* Michael De Vlieger, Sep 03 2017 *)
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Dec 08 2009
EXTENSIONS
Extended by Ray Chandler, Dec 18 2009
STATUS
approved