OFFSET
1,3
COMMENTS
Use lcm(1,0)=0.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
lcm(1,1')/1+lcm(2,2')/2+lcm(3,3')/3=0+2/2+3/3=2 ->a(3)=2.
MAPLE
der:=n->n*add(op(2, p)/op(1, p), p=ifactors(n)[2]):
seq(add(lcm(der(i), i)/i, i=1..n), n=1..50);
MATHEMATICA
A003415[n_]:= If[Abs@n < 2, 0, n Total[#2/#1 & @@@FactorInteger[Abs@n]]]; Table[Sum[LCM[k, A003415[k]]/k, {k, 1, n}], {n, 1, 50}] (* G. C. Greubel, Dec 29 2017 *)
PROG
(PARI) {A003415(n, f)=sum(i=1, #f=factor(n)~, n/f[1, i]*f[2, i])};
for(n=1, 20, print1(sum(k=1, n, lcm(k, A003415(k))/k), ", ")) \\ G. C. Greubel, Dec 29 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Giorgio Balzarotti, May 04 2011
STATUS
approved