[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
a(n) = A001221(n) + A086971(n).
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
Cf. A000005 (tau), A001221 (omega), A086971.
Sequence in context: A303757 A182850 A323014 * A293227 A291208 A241165
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Dec 25 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 19:26 EDT 2024. Contains 375545 sequences. (Running on oeis4.)