OFFSET
1,4
COMMENTS
Sum of unitary, proper prime power divisors of n.
LINKS
FORMULA
a(n) = Sum_{d|n, d = p^k, p prime, k >= 2, gcd(d, n/d) = 1} d.
a(A005117(k)) = 0.
Additive with a(p^e) = p^e if e >= 2, and 0 otherwise. - Amiram Eldar, Jul 24 2024
EXAMPLE
a(360) = a(2^3*3^2*5) = 2^3 + 3^2 = 17.
MATHEMATICA
Table[DivisorSum[n, # &, CoprimeQ[#, n/#] && PrimePowerQ[#] && !PrimeQ[#] &], {n, 108}]
f[p_, e_] := If[e == 1, 0, p^e]; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Jul 24 2024 *)
PROG
(Python)
from sympy import primefactors, isprime, gcd, divisors
def a(n): return sum(d for d in divisors(n) if gcd(d, n//d)==1 and len(primefactors(d))==1 and not isprime(d))
print([a(n) for n in range(1, 109)]) # Indranil Ghosh, Aug 02 2017
(PARI) A286875(n) = { my(f=factor(n)); for (i=1, #f~, if(f[i, 2] < 2, f[i, 1] = 0)); vecsum(vector(#f~, i, f[i, 1]^f[i, 2])); }; \\ Antti Karttunen, Oct 07 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Aug 02 2017
STATUS
approved