a(n) = the smallest integer > n such that both n and a(n), when represented in binary, contain the same types of runs of 0's, the runs being in any order.

A161821

a(n) = the smallest integer > n such that both n and a(n), when represented in binary, contain the same types of runs of 0's, the runs being in any order.

Terms

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

External references