OFFSET
0,6
COMMENTS
Number of compositions of 7*n-4 into parts 4 and 7.
LINKS
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-34,21,-7,1).
FORMULA
a(n) = A369815(7*n-4) for n > 0.
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 34*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7) for n > 7.
a(n) = Sum_{k=0..floor(n/4)} binomial(n-1+3*k,n-4*k).
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec(1/(1-x^4/(1-x)^7))
(PARI) a(n) = sum(k=0, n\4, binomial(n-1+3*k, n-4*k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Feb 01 2024
STATUS
approved