OFFSET
0,12
COMMENTS
Number of compositions of n into parts 4 and 7.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,0,1).
FORMULA
a(n) = a(n-4) + a(n-7).
PROG
(PARI) my(N=80, x='x+O('x^N)); Vec(1/(1-x^4-x^7))
(PARI) a(n) = sum(k=0, n\7, ((n-3*k)%4==0)*binomial((n-3*k)/4, k));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Feb 02 2024
STATUS
approved