OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
EXAMPLE
a(4) = 4+floor[(0+1+2+4)/2] = 4+floor[7/2] = 4+3 = 7
MATHEMATICA
nxt[{n_, t_, a_}]:=Module[{c=n+1+Floor[t/2]}, {n+1, t+c, c}]; NestList[nxt, {0, 0, 0}, 40][[All, 3]] (* Harvey P. Dale, Aug 01 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Feb 17 2003
STATUS
approved