OFFSET
1,1
COMMENTS
Partial sums of A088828.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = (n+S)^2 - (4*S^3-S)/3 where S = ceiling(round(sqrt(2*n-1))/2).
a(n) = n^2 + 2*(n + Sum_{i=1..n} max(0, n - A014105(i))). - John Tyler Rascoe, Jul 04 2022
EXAMPLE
a(5) = 3 + 5 + 7 + 11 + 13 = 39.
MATHEMATICA
s = Select[Range[1, 200, 2], EvenQ[DivisorSigma[1, #] - 2 #] &]; Accumulate[s] (* Vladimir Joseph Stephan Orlovsky, Apr 15 2011 *)
PROG
(Magma) S:=[ n: n in [1..108 by 2] | IsEven(SumOfDivisors(n)-2*n) ]; [ n eq 1 select S[1] else Self(n-1)+S[n]: n in [1..#S] ]; // Klaus Brockhaus, Apr 15 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gerald Hillier, Apr 13 2009
EXTENSIONS
More terms from Klaus Brockhaus and R. J. Mathar, Apr 16 2009
Name and comment swapped by Michel Marcus, Mar 31 2020
STATUS
approved