OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..386
MATHEMATICA
a[n_] := Sum[If[GCD[n, k] == 1, k^n, 0], {k, 1, n}]; Table[a[n], {n, 1, 20}]
PROG
(PARI) a(n) = sum(k=1, n, (gcd(n, k)==1)*k^n) \\ Felix Fröhlich, May 30 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 30 2019
STATUS
approved