OFFSET
1,4
COMMENTS
EXAMPLE
a(40) = 1264 because 40 = 2^3 * 5, so we have 40^2 * (3/2^2 + 1/5^2) = 1264.
MATHEMATICA
f[p_, e_] := e/p^2; a[n_] := If[n==1, 0, n^2*Plus@@f@@@FactorInteger[n]]; Array[a, 60] (* Amiram Eldar, Nov 26 2018 *)
PROG
(PARI) a(n) = my(f=factor(n)); sum(k=1, #f~, (n^2\f[k, 1]^2)*f[k, 2]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Daniel Suteu, Nov 25 2018
STATUS
approved