OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..386
FORMULA
a(n) = Sum_{d|n} phi(n/d) * d^d.
MATHEMATICA
a[n_] := Sum[GCD[k, n]^GCD[k, n], {k, 1, n}]; Array[a, 18] (* Amiram Eldar, Mar 11 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, gcd(k, n)^gcd(k, n));
(PARI) a(n) = sumdiv(n, d, eulerphi(n/d)*d^d);
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 11 2021
STATUS
approved