OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1,1).
FORMULA
a(n) = Sum_{k=0..floor(n/6)} binomial(n-k+4,n-6*k).
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5) + a(n-6).
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1, 1}, {1, 5, 15, 35, 70, 126}, 50] (* Vincenzo Librandi, Jan 16 2026 *)
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec(1/((1-x)^5-x^6))
(Magma) I:=[1, 5, 15, 35, 70, 126]; [n le 6 select I[n] else 5*Self(n-1) - 10*Self(n-2) + 10*Self(n-3) - 5*Self(n-4) + Self(n-5) + Self(n-6): n in [1..40]]; // Vincenzo Librandi, Jan 16 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jan 15 2026
STATUS
approved
