OFFSET
0,5
COMMENTS
a(n) is the number of ways to form even size groups from a total of 2*n people, where each group has at least 4 people.
FORMULA
a(n) = (2*n)! * [x^(2*n)] exp(cosh(x) - x^2/2 - 1).
a(n) = Sum_{k=2..n} binomial(2*n-1, 2*k-1)*a(n-k) for n > 0, a(0)=1.
EXAMPLE
a(3) = 1 since for 6 people we can form a single group if a group has to have at least 4 people.
a(6) = 6733 since for 12 people the number of ways are (number of people in parentheses):
1 group (12): 1 way;
2 groups (8,4): 495 ways;
2 groups (6,6): 462 ways;
3 groups (4,4,4): 5775 ways.
MAPLE
b:= proc(n) option remember; `if`(n=0, 1,
add(b(n-2*j)*binomial(n-1, 2*j-1), j=2..n/2))
end:
a:= n-> b(2*n):
seq(a(n), n=0..19); # Alois P. Heinz, Sep 01 2025
MATHEMATICA
a[n_]:=(2*n)!*SeriesCoefficient[Exp[Cosh[x]-x^2/2-1], {x, 0, 2n}]; Array[a, 20, 0] (* Stefano Spezia, Sep 02 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Enrique Navarrete, Sep 01 2025
STATUS
approved
