OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
f[p_, e_] := (e*(p - 1)/p + 1)*p^e; pil[n_] := Times @@ (f @@@ FactorInteger[n]); a[n_] := Sum[If[GCD[n, k] == 1, pil[k], 0], {k, 1, n}]; Array[a, 100] (* Amiram Eldar, Jul 19 2019 *)
PROG
(PARI) f(n) = sum(i=1, n, gcd(n, i)); \\ A018804
a(n) = sum(k=1, n, if (gcd(k, n) == 1, f(k))); \\ Michel Marcus, Jul 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Jan 13 2007
EXTENSIONS
More terms from Amiram Eldar, Jul 19 2019
STATUS
approved