login
A380398
The number of unitary divisors of n that are perfect powers (A001597).
3
1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1
OFFSET
1,4
COMMENTS
First differs from A368978 at n = 32, from A007424 and A369163 at n = 36, from A278908, A307848, A358260 and A365549 at n = 64, and from A323308 at n = 72.
a(n) depends only on the prime signature of n (A118914).
The record values are 2^k, for k = 0, 1, 2, ..., and they are attained at A061742(k).
The sum of unitary divisors of n that are perfect powers is A380400(n).
LINKS
FORMULA
a(n) = Sum_{d|n, gcd(d, n/d) == 1} [d in A001597], where [] is the Iverson bracket.
a(n) = A091050(n) - A380399(n).
a(n) = 1 if and only if n is squarefree (A005117).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1 - Sum_{k>=2} mu(k)*(zeta(k)/zeta(k+1) - 1) = 1.49341326536904597349..., where mu is the Moebius function (A008683).
EXAMPLE
a(4) = 2 since 4 have 2 unitary divisors that are perfect powers, 1 and 4 = 2^2.
a(72) = 3 since 72 have 3 unitary divisors that are perfect powers, 1, 8 = 2^3, and 9 = 3^2.
MATHEMATICA
ppQ[n_] := n == 1 || GCD @@ FactorInteger[n][[;; , 2]] > 1; a[n_] := DivisorSum[n, 1 &, CoprimeQ[#, n/#] && ppQ[#] &]; Array[a, 100]
PROG
(PARI) a(n) = sumdiv(n, d, gcd(d, n/d) == 1 && (d == 1 || ispower(d)));
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Jan 23 2025
STATUS
approved