Write n in binary (without leading 0's). a(n) = the number of distinct numerical values made by permutating the runs of 0's and the runs of 1's, such that the runs (of nonzero length) of 1's alternate with the runs (of nonzero length) of 0's. The permutated binary numbers (those not equal to n) may start with leading 0's.

A175096

Write n in binary (without leading 0's). a(n) = the number of distinct numerical values made by permutating the runs of 0's and the runs of 1's, such that the runs (of nonzero length) of 1's alternate with the runs (of nonzero length) of 0's. The permutated binary numbers (those not equal to n) may start with leading 0's.

Terms

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

External references