OFFSET
0,3
COMMENTS
FORMULA
a(n) = n! * A000337(n-1), n > 0.
E.g.f.: x^2 / ((1-x) * (1-2*x)^2).
EXAMPLE
a(5)=5880 since the number of ways are (number of people in parentheses, configurations with linearly ordered benches):
1 bench (5): 120 configurations, 1200 ways;
2 benches (4,1): 240 configurations, 1440 ways;
2 benches (3,2): 240 configurations, 960 ways;
3 benches (3,1,1): 360 configurations, 1080 ways;
3 benches (2,2,1): 360 configurations, 720 ways;
4 benches (2,1,1,1): 480 configurations, 480 ways;
5 benches (1,1,1,1,1): 120 configurations, 0 ways, for a total of 5880 ways.
CROSSREFS
KEYWORD
nonn
AUTHOR
Enrique Navarrete, Sep 13 2025
STATUS
approved
