login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A118027
a(0) = 0, a(n) = a(n-1) + (smallest integer which is >= n and is missing from the earlier terms of the sequence).
5
0, 1, 3, 7, 11, 16, 22, 30, 38, 47, 57, 69, 81, 94, 108, 123, 140, 157, 175, 194, 214, 235, 258, 281, 305, 330, 356, 383, 411, 440, 471, 502, 534, 567, 601, 636, 672, 709, 748, 787, 827, 868, 910, 953, 997, 1042, 1088, 1136, 1184, 1233, 1283, 1334, 1386, 1439
OFFSET
0,3
LINKS
MATHEMATICA
a = {1}; Do[k = i; While[MemberQ[a, k], k++]; AppendTo[a, a[[i - 1]] + k], {i, 2, 53}]; {0}~Join~a (* Michael De Vlieger, Sep 16 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Apr 10 2006
EXTENSIONS
More terms from Wendy Kalasky (wkk107(AT)psu.edu), Apr 26 2006
STATUS
approved