STATUS
editing
approved
editing
approved
base,nonn,look,changed
approved
editing
proposed
approved
editing
proposed
(PARI) a(n) = {my(k = 1, hn = hammingweight(n)); while ((hammingweight(k) != hn) || (gcd(n, k) == 1), k++); k; } \\ Michel Marcus, Oct 27 2017
proposed
editing
editing
proposed
Michael De Vlieger, <a href="/A145254/b145254.txt">Table of n, a(n) for n = 2..16384</a>
Table[Function[k, SelectFirst[Range[2, n], And[! CoprimeQ[#, n], DigitCount[#, 2, 1] == k] &]]@ DigitCount[n, 2, 1], {n, 2, 83}] (* Michael De Vlieger, Oct 26 2017 *)
approved
editing
Leroy Quet , Oct 05 2008
_Leroy Quet _ Oct 05 2008