OFFSET
0,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = 1 + A024916(n). - R. J. Mathar, May 25 2009
a(n) = 9 + A092406(n) for n>3. - Greg Dresden, Feb 23 2020
MAPLE
ListTools:-PartialSums(map(numtheory:-sigma, [1, $1..100])); # Robert Israel, Dec 19 2016
MATHEMATICA
lst = {1}; a = 1; Do[a = a + DivisorSigma[1, n]; AppendTo[lst, a], {n, 80}]; lst (* Carl Najafi, Aug 21 2011 *)
Transpose[NestList[{First[#]+1, Last[#]+DivisorSigma[1, First[#]+1]}&, {0, 1}, 50]][[2]] (* Harvey P. Dale, May 05 2012 *)
PROG
(PARI) a(n)=1+sum(k=1, n, sigma(k)) \\ Charles R Greathouse IV, Aug 22 2011
(Python)
from math import isqrt
def A160664(n): return (-(s:=isqrt(n))**2*(s+1) + sum((q:=n//k)*((k<<1)+q+1) for k in range(1, s+1))>>1)+1 # Chai Wah Wu, Oct 22 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, May 22 2009
EXTENSIONS
More terms from Carl Najafi, Aug 21 2011
STATUS
approved