OFFSET
0,3
EXAMPLE
There are 4 terms among the terms {a(0),a(1),a(2),...a(8)} which are <= 9. So a(9) = a(7) + a(8) + 4 = 69 + 114 + 4 = 187.
MAPLE
a[0]:=1:a[1]:=1: for n from 2 to 42 do ct:=2: for j from 2 to n-1 do if a[j]<=n then ct:=ct+1 else fi od: a[n]:=a[n-1]+a[n-2]+ct od: seq(a[n], n=0..42); # Emeric Deutsch, May 09 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, May 08 2007
EXTENSIONS
More terms from Emeric Deutsch, May 09 2007
STATUS
approved
