OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
The eighth triangular number is 36; division by 3, 6, 10, 15,21, 28 gives the remainders 0, 0, 6, 6, 15, 8, so a(8) = 0 + 0 + 6+ 6 + 15 + 8 = 35.
MATHEMATICA
sr[x_]:=Total[Mod[Last[x], x[[2;; Length[x]-1]]]]; Module[{nn=50, tr}, tr= Accumulate[ Range[nn]]; Join[{0}, Table[sr[Take[tr, n]], {n, 2, nn}]]] (* Harvey P. Dale, Oct 14 2017 *)
PROG
(PARI) for(n=1, 50, s=0; for(j=2, n-1, s=s+binomial(n+1, 2)%binomial(j+1, 2)); print1(s, ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 31 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus, Aug 02 2002
STATUS
approved