OFFSET
1,3
LINKS
Don Reble, Table of n, a(n) for n = 1..6524 (first 372 terms from T. D. Noe, terms 373 to 1000 from Donovan Johnson, terms 1001 to 2750 from Robert G. Wilson v)
MATHEMATICA
With[{list1=DeleteDuplicates[Array[DivisorSigma[1, #]-#&, 3000, 0]]}, list2 = {}; Table[If[list1[[n]]>Max[list2], AppendTo[list2, list1[[n]]]], {n, Length[ list1]}]; list2] (* Harvey P. Dale, Dec 30 2011 *)
t = {0}; n = 1; mx = 0; While[Length[t] < 100, n++; s = DivisorSigma[1, n] - n; If[s > mx, mx = s; AppendTo[t, mx]]]; t (* T. D. Noe, Feb 23 2012 *)
DeleteDuplicates[Array[DivisorSigma[1, #]-#&, 3000], GreaterEqual] (* Harvey P. Dale, Aug 20 2022 *)
PROG
(PARI) r=0; for(n=1, 1e9, t=sigma(n)-n; if(t>r, r=t; print1(t", "))) \\ Charles R Greathouse IV, Feb 09 2017
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
More terms from Erich Friedman.
STATUS
approved