A positive integer n is included if n in binary contains as many 0's as the number of 1's in the binary representation of n+1, and if n in binary contains as many 1's as the number of 0's in the binary representation of n+1.

A162719

A positive integer n is included if n in binary contains as many 0's as the number of 1's in the binary representation of n+1, and if n in binary contains as many 1's as the number of 0's in the binary representation of n+1.

Terms

    a(0) =4a(1) =9a(2) =18a(3) =19a(4) =20a(5) =24a(6) =37a(7) =39a(8) =41a(9) =49a(10) =70a(11) =74a(12) =75a(13) =76a(14) =79a(15) =82a(16) =83a(17) =84a(18) =88a(19) =98a(20) =99a(21) =100a(22) =104a(23) =112a(24) =141a(25) =149a(26) =151a(27) =153a(28) =159a(29) =165

External references