OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = (3+2*n+16*n^2-8*n^3+2*n^4)/3. - corrected by Colin Barker, Jul 07 2013
G.f.: -(x+1)*(9*x^3-x^2-x+1) / (x-1)^5. - Colin Barker, Jul 07 2013
a(0)=1, a(1)=5, a(2)=13, a(3)=33, a(4)=89, a(n)=5*a(n-1)-10*a(n-2)+ 10*a(n-3)- 5*a(n-4)+a(n-5). - Harvey P. Dale, Feb 09 2015
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 5, 13, 33, 89}, 40] (* Harvey P. Dale, Feb 09 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved