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

A162854

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

Terms

    a(0) =3a(1) =12a(2) =1a(3) =6a(4) =51a(5) =4a(6) =63a(7) =192a(8) =27a(9) =204a(10) =25a(11) =2a(12) =19a(13) =252a(14) =3a(15) =12a(16) =771a(17) =108a(18) =13a(19) =102a(20) =819a(21) =100a(22) =831a(23) =64a(24) =11a(25) =76a(26) =9a(27) =126a(28) =1011a(29) =12

External references