Write the positive integer n in binary. Subdivide the binary n into runs each consisting entirely of 0's or of 1's, where the runs alternate between those of 1's and those of 0's. The sequence gives those numbers n such that there is at least one run of 1's of the same length as at least one run of 0's.

A123466

Write the positive integer n in binary. Subdivide the binary n into runs each consisting entirely of 0's or of 1's, where the runs alternate between those of 1's and those of 0's. The sequence gives those numbers n such that there is at least one run of 1's of the same length as at least one run of 0's.

Terms

    a(0) =2a(1) =5a(2) =10a(3) =11a(4) =12a(5) =13a(6) =18a(7) =19a(8) =20a(9) =21a(10) =22a(11) =23a(12) =25a(13) =26a(14) =29a(15) =34a(16) =37a(17) =38a(18) =40a(19) =41a(20) =42a(21) =43a(22) =44a(23) =45a(24) =46a(25) =47a(26) =50a(27) =51a(28) =52a(29) =53

External references