Smallest number distinct from n, not occurring earlier and having in binary representation not more ones than n.

A094511

Smallest number distinct from n, not occurring earlier and having in binary representation not more ones than n.

Terms

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

External references