login
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

%I #5 Apr 09 2014 10:14:03

%S 0,2,4,7,10,14,19,24,30,37,44,52,61,71,81,92,104,117,131,145,160,176,

%T 193,211,229,248,268,289,311,334,357,381,406,432,459,487,516,545,575,

%U 606,638,671,705,740,775,811,848,886,925,965,1006,1048,1090,1133,1177

%N 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)}).

%e The sequence of positive integers not in this sequence begins 1, 3, 5, 6, 8,...

%e Because there are four such terms <= 7, then a(7) = a(6) + 1 + 4 = 24.

%K easy,nonn

%O 0,2

%A _Leroy Quet_, Apr 08 2006, definition corrected Apr 22 2006

%E More terms from Sheedeh Dorri (spd145(AT)psu.edu), Apr 17 2006