OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..1000
FORMULA
If p is prime, a(p) = 2*p -1. - Seiichi Manyama, Apr 06 2021
MATHEMATICA
Table[Sum[GCD[n^i, i], {i, n}], {n, 100}]
PROG
(PARI) a(n) = sum(i=1, n, gcd(n^i, i)); \\ Michel Marcus, Apr 05 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Apr 05 2021
STATUS
approved