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

A145255

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

Terms

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

External references