A380399 The number of nonunitary divisors of n that are perfect powers (A001597).
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 1, 0
Offset: 1
Examples
a(16) = 2 since 16 have 2 nonunitary divisors that are perfect powers, 4 = 2^2 and 8 = 2^3. a(32) = 3 since 32 have 3 nonunitary divisors that are perfect powers, 4 = 2^3, 8 = 2^3, and 16 = 2^4.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
ppQ[n_] := n == 1 || GCD @@ FactorInteger[n][[;; , 2]] > 1; a[n_] := DivisorSum[n, 1 &, !CoprimeQ[#, n/#] && ppQ[#] &]; Array[a, 100]
-
PARI
a(n) = sumdiv(n, d, gcd(d, n/d) > 1 && (d == 1 || ispower(d)));
Formula
a(n) = Sum_{d|n, gcd(d, n/d) > 1} [d in A001597], where [] is the Iverson bracket.