login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A373912
Number of compositions of 7*n into parts 6 and 7.
12
1, 1, 1, 1, 1, 1, 2, 9, 37, 121, 331, 793, 1718, 3448, 6556, 12121, 22509, 43453, 89150, 193823, 436304, 989759, 2219064, 4869285, 10434412, 21900170, 45297211, 93054446, 191371581, 396480142, 830227401, 1756883373, 3746468095, 8017653633, 17151612398
OFFSET
0,7
FORMULA
a(n) = A017847(7*n).
a(n) = Sum_{k=0..floor(n/6)} binomial(n+k,n-6*k).
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 6*a(n-6) + a(n-7).
G.f.: 1/(1 - x - x^6/(1 - x)^6).
PROG
(PARI) a(n) = sum(k=0, n\6, binomial(n+k, n-6*k));
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jun 22 2024
STATUS
approved