OFFSET
0,5
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1,0,0,0,0,1,-4,6,-4,1).
FORMULA
From R. J. Mathar, Apr 15 2010: (Start)
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) + a(n-9) - 4*a(n-10) + 6*a(n-11) - 4*a(n-12) + a(n-13).
G.f.: x^4*(2 + 5*x + 3*x^3 + 4*x^4 + 3*x^5 + 5*x^7 + 2*x^8) / ( (1-x)^5*(1+x+x^2)*(x^6+x^3+1) ). (End)
MATHEMATICA
Table[Floor[n(n-1)(n-2)(n-3)/9], {n, 0, 40}] (* or *) LinearRecurrence[ {4, -6, 4, -1, 0, 0, 0, 0, 1, -4, 6, -4, 1}, {0, 0, 0, 0, 2, 13, 40, 93, 186, 336, 560, 880, 1320}, 40] (* Harvey P. Dale, Jan 01 2019 *)
PROG
(PARI) a(n) = floor(n*(n-1)*(n-2)*(n-3)/9); \\ Jinyuan Wang, Feb 28 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Jinyuan Wang, Feb 28 2020
STATUS
approved