Take the binary representation of n. Reduce by one digit every run (completely of either 0's or 1's) of an even number of digits. Increase by one digit every run of an odd number of digits in the binary representation of n (where this added digit has the same value that makes up the rest of the run's digits). a(n) = the decimal equivalent of the result.

A162853

Take the binary representation of n. Reduce by one digit every run (completely of either 0's or 1's) of an even number of digits. Increase by one digit every run of an odd number of digits in the binary representation of n (where this added digit has the same value that makes up the rest of the run's digits). a(n) = the decimal equivalent of the result.

Terms

    a(0) =0a(1) =3a(2) =12a(3) =1a(4) =6a(5) =51a(6) =4a(7) =15a(8) =48a(9) =27a(10) =204a(11) =25a(12) =2a(13) =19a(14) =60a(15) =7a(16) =24a(17) =195a(18) =108a(19) =13a(20) =102a(21) =819a(22) =100a(23) =207a(24) =16a(25) =11a(26) =76a(27) =9a(28) =30a(29) =243

External references