OFFSET
1,4
COMMENTS
Number of divisors of n of the form p, p^2, or p*q, where p and q are prime.
MATHEMATICA
a[1] = 0; a[n_] := Module[{e = FactorInteger[n][[;; , 2]]}, Total[Min[#, 2] & /@ e] + Binomial[Length[e], 2]]; Array[a, 100] (* Amiram Eldar, Dec 25 2021 *)
PROG
(PARI) a(n) = sumdiv(n, d, isprime(d) || (bigomega(d)==2)); \\ Michel Marcus, Dec 25 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2021
STATUS
approved
