OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..800
EXAMPLE
a(4) = 50 is a term because the prime indices of 50 = 2*5^2 are 1, 2, 2, and there are 3 of these but only 2 divisors of prime indices, namely 1 and 2, and 50 is not divisible by any of the previous terms 4, 18 and 27 of the sequence.
MAPLE
filter:= proc(n) uses numtheory; local F, D, t;
if ormap(t -> n mod t = 0, S) then return false fi;
F:= map(t -> [pi(t[1]), t[2]], ifactors(n)[2]);
D:= `union`(seq(divisors(t[1]), t = F);
nops(D) < add(t[2], t = F);
end proc:
R:= NULL: count:= 0: S:= {}:
for n from 1 while count < 100 do
if filter(n) then
R:= R, n; S:= S union {n}; count:= count+1;
fi
od:
R;
MATHEMATICA
filter[n_] := Module[{F, d},
If[AnyTrue[S, Mod[n, #] == 0&], Return[False]];
F = {PrimePi[#[[1]]], #[[2]]} & /@ FactorInteger[n];
d = Union[Flatten[Divisors /@ F[[All, 1]]]];
Length[d] < Total[F[[All, 2]]]];
R = {}; count = 0; S = {};
For[n = 1, count < 100, n++, If[filter[n], AppendTo[R, n]; S = Union[S, {n}]; count++]];
R (* Jean-François Alcover, Mar 08 2024, after Robert Israel *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Feb 17 2024
STATUS
approved