OFFSET
0,3
COMMENTS
a(n) is the number of ways to seat n persons on benches, linear order the benches, and select 2 persons from each bench.
A001804(n) is the number of ways if only 1 bench is used.
EXAMPLE
a(6)=26640 since the number of ways to seat 6 persons on benches, linear order the benches, and select 2 persons from each bench is the following:
1) benches of type 1234,56: 1440 of these, 8640 ways;
2) benches of type 123,456: 720 of these, 6480 ways;
3) benches of type 12,34,56: 720 of these, 720 ways;
4) benches of type 123456: 720 of these, 10800 ways.
MATHEMATICA
With[{max = 20}, Range[0, max]! * CoefficientList[Series[(1 - x)^3/(1 - 3*x + 2*x^2 - x^3), {x, 0, max}], x]] (* Amiram Eldar, Jul 28 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Enrique Navarrete, Jul 27 2023
STATUS
approved