OFFSET
1,6
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local p, t;
p:= numtheory:-factorset(n);
t:= nops(p);
t*(t-1)/2 + nops(select(m-> n mod m^2=0, p))
end proc:
map(f, remove(isprime, [$4..200])); # Robert Israel, May 21 2020
MATHEMATICA
a[n_] := Count[FactorInteger[n], {_, k_ /; k>1}]+PrimeNu[n](PrimeNu[n]-1)/2;
a /@ Select[Range[200], CompositeQ] (* Jean-François Alcover, Jun 22 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 12 2003
STATUS
approved