OFFSET
0,2
COMMENTS
Equals binomial transform of [1, 1, 1, 2, 1, 0, 0, 0, ...]. Example: a(5) = 20 = [1, 1, 1, 2, 1] dot [1, 4, 6, 4, 1] = (1 + 4 + 6 + 8 + 1). - Gary W. Adamson, Aug 25 2010
LINKS
Vincenzo Librandi, 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) = n^4/24 + n^3/12 - n^2/24 + 11*n/12 + 1.
G.f.: (1-3*x+4*x^2-x^3)/(1-x)^5. - Colin Barker, Mar 22 2012
a(0)=1, a(1)=2, a(2)=4, a(3)=9, a(4)=20, a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5). - Harvey P. Dale, May 21 2013
MATHEMATICA
CoefficientList[Series[(1-3*x+4*x^2-x^3)/(1-x)^5, {x, 0, 40}], x] (* Vincenzo Librandi, Mar 24 2012 *)
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 2, 4, 9, 20}, 50] (* Harvey P. Dale, May 21 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eugene McDonnell (eemcd(AT)mac.com), Dec 24 2004
STATUS
approved