login
A117634
a(0)=0. a(n) = a(n-1) + 1 + (number of positive integers which are <= n and are missing from {a(0),a(1),a(2),...a(n-1)}).
0
0, 2, 4, 7, 10, 14, 19, 24, 30, 37, 44, 52, 61, 71, 81, 92, 104, 117, 131, 145, 160, 176, 193, 211, 229, 248, 268, 289, 311, 334, 357, 381, 406, 432, 459, 487, 516, 545, 575, 606, 638, 671, 705, 740, 775, 811, 848, 886, 925, 965, 1006, 1048, 1090, 1133, 1177
OFFSET
0,2
EXAMPLE
The sequence of positive integers not in this sequence begins 1, 3, 5, 6, 8,...
Because there are four such terms <= 7, then a(7) = a(6) + 1 + 4 = 24.
CROSSREFS
Sequence in context: A007980 A022339 A025711 * A022776 A025704 A025710
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Apr 08 2006, definition corrected Apr 22 2006
EXTENSIONS
More terms from Sheedeh Dorri (spd145(AT)psu.edu), Apr 17 2006
STATUS
approved