OFFSET
1,3
COMMENTS
If n is in A354144 then a(n) = n-1. - Robert Israel, Oct 20 2024
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The distinct primes which divide 20 are 2 and 5. So a(20) is the number of earlier terms which are not divisible by at least 2 distinct primes dividing 20; i.e. are not divisible by both 2 and 5. Among the first 19 terms only a(11)=10 and a(12)=10 are divisible by both 2 and 5. There are 17 other earlier terms, so a(20)=17.
MAPLE
f:= proc(k, S) local t, s;
t:= 0:
for s in S do if k mod s = 0 then t:= t+1; if t = 2 then return 0 fi fi od;
1
end proc:
A[1]:= 1:
for n from 2 to 100 do
dn:= numtheory:-factorset(n);
A[n]:= add(f(A[k], dn), k=1..n-1)
od:
seq(A[i], i=1..100); # Robert Israel, Oct 20 2024
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Leroy Quet, Jun 20 2007
EXTENSIONS
More terms from Joshua Zucker, Jul 18 2007
STATUS
approved