OFFSET
0,3
COMMENTS
a(0) and a(4) are both zero. Are there any other zero values? - N. J. A. Sloane, Sep 12 2019
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..25000 (first 1001 terms from Franklin T. Adams-Watters)
MAPLE
MATHEMATICA
nxt[{n_, a_}]:=Module[{tr=((n+1)(n+2))/2}, {n+1, If[a>=tr, a-tr, a+tr]}]; Transpose[NestList[nxt, {0, 0}, 50]][[2]] (* Harvey P. Dale, Jun 19 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved