a(n) = the smallest positive integer that contains the same number of (non-leading) 0's as n when a(n) and n are written in binary, is not coprime to n, and is not a divisor of n.

A161397

a(n) = the smallest positive integer that contains the same number of (non-leading) 0's as n when a(n) and n are written in binary, is not coprime to n, and is not a divisor of n.

Terms

    a(0) =6a(1) =15a(2) =10a(3) =30a(4) =14a(5) =63a(6) =18a(7) =12a(8) =4a(9) =55a(10) =9a(11) =247a(12) =6a(13) =63a(14) =34a(15) =85a(16) =8a(17) =57a(18) =8a(19) =9a(20) =4a(21) =253a(22) =18a(23) =10a(24) =4a(25) =6a(26) =10a(27) =1015a(28) =14a(29) =1023

External references