OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000 (Corrected by Alois P. Heinz, Mar 14 2016)
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1).
FORMULA
a(n) = binomial(n+4, n-1)+binomial(n+1, n-1).
G.f.: x*(2-x)*(1-x+x^2)/(1-x)^6. - Colin Barker, Mar 19 2012
MATHEMATICA
Table[1/120*n*(n + 7)*(n + 1)*(n^2 + 2*n + 12), {n, 60}] (* Vladimir Joseph Stephan Orlovsky, Jun 14 2011 *)
LinearRecurrence[{6, -15, 20, -15, 6, -1}, {2, 9, 27, 66, 141, 273}, 40] (* Harvey P. Dale, Apr 28 2018 *)
PROG
(PARI) a(n)=((((n+10)*n+35)*n+110)*n+84)*n/120 \\ Charles R Greathouse IV, Jun 14 2011
(Magma) [1/120*n*(n+7)*(n+1)*(n^2+2*n+12): n in [1..50]]; // Vincenzo Librandi, Jun 15 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Dec 07 1999
STATUS
approved