Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A243739
Number of compositions of n with exactly four occurrences of the largest part.
2
1, 0, 0, 0, 1, 5, 15, 35, 71, 131, 230, 395, 686, 1231, 2316, 4565, 9326, 19466, 41002, 86401, 181231, 377441, 779797, 1598263, 3251522, 6571171, 13204057, 26404654, 52595856, 104445292, 206934917, 409352089, 809015298, 1598295894, 3157969548, 6242861979
OFFSET
4,6
LINKS
Joerg Arndt and Alois P. Heinz, Table of n, a(n) for n = 4..650
MAPLE
b:= proc(n, p, i) option remember; `if`(n=0, p!,
`if`(i<1, 0, add(b(n-i*j, p+j, i-1)/j!, j=0..n/i)))
end:
a:= proc(n) local k; k:=4;
add(b(n-i*k, k, i-1)/k!, i=1..n/k)
end:
seq(a(n), n=4..40);
MATHEMATICA
b[n_, p_, i_] := b[n, p, i] = If[n == 0, p!, If[i<1, 0, Sum[b[n-i*j, p+j, i-1]/j!, {j, 0, n/i}]]]; a[n_] := (k=4; Sum[b[n-i*k, k, i-1]/k!, {i, 1, n/k}]); Table[a[n], {n, 4, 40}] (* Jean-François Alcover, Feb 10 2015, after Maple *)
CROSSREFS
Column k=4 of A238341.
Sequence in context: A229885 A363618 A363608 * A145133 A270784 A368475
KEYWORD
nonn
AUTHOR
Joerg Arndt and Alois P. Heinz, Jun 09 2014
STATUS
approved