OFFSET
1,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-4,1).
FORMULA
a(n) = A017827(5*n-2).
a(n) = Sum_{k=0..floor(n/4)} binomial(n+k,n-2-4*k).
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 4*a(n-4) + a(n-5).
G.f.: x^2*(1-x)^2/((1-x)^5 - x^4).
MATHEMATICA
LinearRecurrence[{5, -10, 10, -4, 1}, {0, 1, 3, 6, 10}, 50] (* Paolo Xausa, Mar 15 2024 *)
PROG
(PARI) a(n) = sum(k=0, n\4, binomial(n+k, n-2-4*k));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Feb 03 2024
STATUS
approved