OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (1/n) * Sum_{k=1..n} tau(gcd(k,n)^n).
a(n) = (1/n) * Sum_{d|n} phi(n/d) * tau(d^n).
If p is prime, a(p) = 2.
MATHEMATICA
Table[DivisorSum[n, n^PrimeNu@#/#&], {n, 100}] (* Giorgos Kalogeropoulos, May 13 2021 *)
PROG
(PARI) a(n) = sumdiv(n, d, n^omega(d)/d);
(PARI) a(n) = sum(k=1, n, numdiv(gcd(k, n)^n))/n;
(PARI) a(n) = sumdiv(n, d, eulerphi(n/d)*numdiv(d^n))/n;
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 12 2021
STATUS
approved