OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = p^e * (1 + ((p-1)/p) * Sum_{i=1..2*e} p^(floor(2*i/3))). - Amiram Eldar, May 24 2024
MATHEMATICA
a[n_] := Sum[GCD[k^3, n^2], {k, 1, n}]; Array[a, 100] (* Amiram Eldar, May 24 2024 *)
PROG
(PARI) a(n) = sum(k=1, n, gcd(k^3, n^2));
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Seiichi Manyama, May 16 2024
STATUS
approved