OFFSET
1,2
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[106], GCD[Length[IntegerDigits[#, 2]], #]==1 &] (* Indranil Ghosh, Mar 08 2017 *)
PROG
(PARI) for(n=1, 106, if(gcd(#digits(n, 2), n)==1, print1(n, ", "))) \\ Indranil Ghosh, Mar 08 2017
(Python)
from fractions import gcd
i=1
j=1
while j<=100:
if gcd(len(bin(i)[2:]), i)==1:
print(str(j)+" "+str(i))
j+=1
i+=1 # Indranil Ghosh, Mar 08 2017
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jun 03 2009
EXTENSIONS
Extended by Ray Chandler, Jun 11 2009
Name edited by Michel Marcus, Apr 30 2021
STATUS
approved