OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Divisors >1 of a(188)=637: {7,13,49,91,637}, in binary: {111, 1101, 110001, 1011011, 1001111101}.
MAPLE
filter:= proc(n) local d, i, j;
d:= numtheory:-divisors(n);
for i in d do
for j from 1 to ilog2(i)-1 do
if member(floor(i/2^j), d) then return false fi
od od;
true
end proc:
select(filter, [$1..200]); # Robert Israel, Jul 08 2020
MATHEMATICA
filterQ[n_] := Catch@Module[{d = Divisors[n], j}, Do[
For[j = 1, j <= Floor@Log[2, i]-1, j++,
If[MemberQ[d, Floor[i/2^j]], Throw[False]]], {i, d}];
True];
Select[Range[200], filterQ] (* Jean-François Alcover, Dec 15 2021, after Robert Israel *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 26 2003
EXTENSIONS
Missing term 121 inserted by Robert Israel, Jul 08 2020
STATUS
approved