OFFSET
1,4
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(4) = 5 since 4 have 2 unitary divisors that are perfect powers, 1 and 4 = 2^2, and 1 + 4 = 5.
a(72) = 18 since 72 have 3 unitary divisors that are perfect powers, 1, 8 = 2^3, and 9 = 3^2, and 1 + 8 + 9 = 18.
MATHEMATICA
ppQ[n_] := n == 1 || GCD @@ FactorInteger[n][[;; , 2]] > 1; a[n_] := DivisorSum[n, # &, CoprimeQ[#, n/#] && ppQ[#] &]; Array[a, 100]
PROG
(PARI) a(n) = sumdiv(n, d, d * (gcd(d, n/d) == 1 && (d == 1 || ispower(d))));
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Amiram Eldar, Jan 23 2025
STATUS
approved