Write down binary n as a string of 0's and 1's. Consider the runs of 1's (bounded by 0's or by the edge of the string) alternating with the runs of 0's (bounded by 1's or by the edge of the string) in the string. Then, a(n) = the number of positive binary integers that contain the same lengths of runs of 1's as of the runs of 1's in binary n, and contain the same lengths of runs of 0's as of the runs of 0's in binary n.

A161895

Write down binary n as a string of 0's and 1's. Consider the runs of 1's (bounded by 0's or by the edge of the string) alternating with the runs of 0's (bounded by 1's or by the edge of the string) in the string. Then, a(n) = the number of positive binary integers that contain the same lengths of runs of 1's as of the runs of 1's in binary n, and contain the same lengths of runs of 0's as of the runs of 0's in binary n.

Terms

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

External references