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

A143114

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

Terms

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

External references