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

A161820

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

Terms

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

External references