login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A380400
The sum of unitary divisors of n that are perfect powers (A001597).
0
1, 1, 1, 5, 1, 1, 1, 9, 10, 1, 1, 5, 1, 1, 1, 17, 1, 10, 1, 5, 1, 1, 1, 9, 26, 1, 28, 5, 1, 1, 1, 33, 1, 1, 1, 50, 1, 1, 1, 9, 1, 1, 1, 5, 10, 1, 1, 17, 50, 26, 1, 5, 1, 28, 1, 9, 1, 1, 1, 5, 1, 1, 10, 65, 1, 1, 1, 5, 1, 1, 1, 18, 1, 1, 26, 5, 1, 1, 1, 17, 82
OFFSET
1,4
COMMENTS
First differs from A360720 at n = 72.
The number of unitary divisors of n that are perfect powers is A380398(n).
FORMULA
a(n) = Sum_{d|n, gcd(d, n/d) == 1} d * [d in A001597], where [] is the Iverson bracket.
a(n) <= A360720(n).
a(n) = 1 if and only if n is squarefree (A005117).
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