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