a(n) = the smallest integer > n that is non-coprime to n and has the same number of 1's in its binary representation as n has.

A145256

a(n) = the smallest integer > n that is non-coprime to n and has the same number of 1's in its binary representation as n has.

Terms

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

External references