|
|
A350331
|
|
Number of divisors of n that are prime or the product of 2 (not necessarily distinct) primes.
|
|
2
|
|
|
0, 1, 1, 2, 1, 3, 1, 2, 2, 3, 1, 4, 1, 3, 3, 2, 1, 4, 1, 4, 3, 3, 1, 4, 2, 3, 2, 4, 1, 6, 1, 2, 3, 3, 3, 5, 1, 3, 3, 4, 1, 6, 1, 4, 4, 3, 1, 4, 2, 4, 3, 4, 1, 4, 3, 4, 3, 3, 1, 7, 1, 3, 4, 2, 3, 6, 1, 4, 3, 6, 1, 5, 1, 3, 4, 4, 3, 6, 1, 4, 2, 3, 1, 7, 3, 3, 3, 4, 1, 7, 3, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
COMMENTS
|
Number of divisors of n of the form p, p^2, or p*q, where p and q are prime.
|
|
LINKS
|
|
|
FORMULA
|
|
|
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
|
|
|
STATUS
|
approved
|
|
|
|