login
A371125
Number of compositions of 6*n into parts 1 and 6.
6
1, 2, 9, 43, 196, 882, 3970, 17887, 80608, 363254, 1636944, 7376591, 33241289, 149795989, 675029164, 3041899638, 13707783053, 61771701389, 278363253873, 1254394801761, 5652708454881, 25472931513057, 114789263420590, 517277526141329, 2331019740675071
OFFSET
0,2
FORMULA
a(n) = A005708(6*n).
a(n) = Sum_{k=0..n} binomial(n+5*k,n-k).
a(n) = 7*a(n-1) - 15*a(n-2) + 20*a(n-3) - 15*a(n-4) + 6*a(n-5) - a(n-6).
G.f.: 1/(1 - x - x/(1 - x)^5).
PROG
(PARI) a(n) = sum(k=0, n, binomial(n+5*k, n-k));
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Jun 22 2024
STATUS
approved