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!)
A095683 Number of prime power divisors of n. If n = product p_i^r_i then d = product {p_i^s_i, 2 <= s_i <= r_i, s_i is prime} is a prime power divisor of n. 4
1, 0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
COMMENTS
The number of coreful divisors of n that are terms of A056166 (a divisor of n is coreful if it has the same set of distinct prime factors as n, cf. A307958). - Amiram Eldar, Oct 31 2023
LINKS
FORMULA
Multiplicative with a(p^e) = A000720(e). - Vladeta Jovovic, Jul 06 2004
EXAMPLE
n=16: prime power divisors of 16 are {2^2, 2^3}, so a(16) = 2.
MATHEMATICA
Array[Boole[# == 1] + Times @@ Map[PrimePi, FactorInteger[#][[All, -1]] ] &, 120] (* Michael De Vlieger, Jul 19 2017 *)
PROG
(PARI) A095683(n) = { my(f = factor(n), m = 1); for (k=1, #f~, m *= primepi(f[k, 2]); ); m; } \\ Antti Karttunen, Jul 19 2017
(Python)
from sympy import factorint, primepi, prod
def a(n): return 1 if n==1 else prod(primepi(e) for e in factorint(n).values())
print([a(n) for n in range(1, 51)]) # Indranil Ghosh, Jul 19 2017
CROSSREFS
Sequence in context: A127844 A017877 A295976 * A219481 A361430 A298826
KEYWORD
nonn,easy,mult
AUTHOR
EXTENSIONS
More terms from Vladeta Jovovic, Jul 06 2004
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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)