OFFSET
0,3
EXAMPLE
The positive integers which are <= 7 and are missing from the terms a(0) through a(6) are 2,4,6,7. So a(7) = a(6) + 2+4+6+7 = 48.
MATHEMATICA
a = {0}; For[n = 1, n < 60, n++, co = 0; For[i = 0, i <n + 1, i++, If[Length[ Intersection[{i}, a]] == 0, co = co + i]]; AppendTo[a, a[[ -1]] + co]]; a (* Stefan Steinerberger, Jun 05 2007 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 01 2007
EXTENSIONS
More terms from Stefan Steinerberger, Jun 05 2007
STATUS
approved