OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..387
EXAMPLE
a(4) = 1^1 + 3^3 = 28, since 1 and 3 are the positive integers <= 4 and relatively prime to 4.
PROG
(PARI) a(n) = sum(k=1, n, if (gcd(k, n)==1, k^k)); \\ Michel Marcus, Jun 19 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Nov 04 2000
STATUS
approved