OFFSET
1,2
COMMENTS
Inverse Moebius transform of A053818.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{k=1..n} (lcm(n, k)/n)^2.
a(n) = Sum_{d|n} Sum_{k=1..d, gcd(k, d) = 1} k^2.
MATHEMATICA
Table[Sum[(k/GCD[n, k])^2, {k, 1, n}], {n, 1, 48}]
Table[Sum[Sum[If[GCD[k, d] == 1, k^2, 0], {k, 1, d}], {d, Divisors[n]}], {n, 1, 48}]
PROG
(Magma) [&+[(k div Gcd(n, k))^2:k in [1..n]]:n in [1..50]]; // Marius A. Burtea, Feb 18 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 18 2020
STATUS
approved