PROG
(MAGMAMagma) [(1/2)*&+[DivisorSigma(1, d)+DivisorSigma(2, d):d in Divisors(n)]:n in [1..55]]; // Marius A. Burtea, Oct 20 2019
(MAGMAMagma) [(1/2)*&+[DivisorSigma(1, d)+DivisorSigma(2, d):d in Divisors(n)]:n in [1..55]]; // Marius A. Burtea, Oct 20 2019
editing
approved
Sum_{k=1..n} a(k) ~ zeta(3)^2 * n^3 / 6. - Vaclav Kotesovec, Dec 11 2021
approved
editing
editing
approved
with(numtheory):
a:= n-> add(d*(d+1)*tau(n/d), d=divisors(n))/2:
seq(a(n), n=1..60); # Alois P. Heinz, Oct 20 2019
proposed
editing
editing
proposed
(MAGMA) [(1/2)*&+[DivisorSigma(1, d)+DivisorSigma(2, d):d in Divisors(n)]:n in [1..55]]; // Marius A. Burtea, Oct 20 2019
proposed
editing
editing
proposed
(PARI) a(n) = sumdiv(n, d, sigma(d)+sigma(d, 2))/2; \\ Michel Marcus, Oct 20 2019
proposed
editing
editing
proposed