|
|
A128610
|
|
a(0)=a(1)=1. For n >= 2, a(n) = a(n-2) + a(n-1) + (number of terms from among {a(0),a(1),a(2),...a(n-1)} which are <= n).
|
|
1
|
|
|
1, 1, 4, 7, 14, 24, 41, 69, 114, 187, 305, 496, 805, 1305, 2115, 3425, 5545, 8975, 14525, 23505, 38035, 61545, 99585, 161135, 260726, 421867, 682599, 1104472, 1787077, 2891555, 4678638, 7570199, 12248843, 19819048, 32067897, 51886951, 83954854
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|