login
A135432
a(n) = a(n-1) + a(n-2) + a(n-3) + a(n-4) - a(n-5) with a(0)=0, a(1)=1, a(2)=2, a(3)=3 and a(4)=4.
1
0, 1, 2, 3, 4, 10, 18, 33, 62, 119, 222, 418, 788, 1485, 2794, 5263, 9912, 18666, 35150, 66197, 124662, 234763, 442106, 832578, 1567912, 2952697, 5560530, 10471611, 19720172, 37137098, 69936714, 131705065, 248027438
OFFSET
0,3
FORMULA
G.f.: -x*(x-1)*(2*x^2+2*x+1)/((x+1)*(x^4-2*x^3+x^2-2*x+1)). - Maksym Voznyy, Aug 12 2009
MATHEMATICA
LinearRecurrence[{1, 1, 1, 1, -1}, {0, 1, 2, 3, 4}, 50] (* G. C. Greubel, Oct 14 2016 *)
CROSSREFS
Sequence in context: A080500 A007661 A049891 * A108364 A346489 A145028
KEYWORD
nonn
AUTHOR
Mohamed Bouhamida, Dec 13 2007
STATUS
approved