cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A364524 Expansion of e.g.f. (1-x)^3/(1-3x+2x^2-x^3).

Original entry on oeis.org

1, 0, 2, 18, 168, 1920, 26640, 433440, 8064000, 168739200, 3922732800, 100310918400, 2798327347200, 84569169484800, 2752393009766400, 95978067913728000, 3569951024640000000, 141085196791418880000, 5903699220162551808000, 260764276201191899136000, 12124067910801279713280000
Offset: 0

Views

Author

Enrique Navarrete, Jul 27 2023

Keywords

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.

Examples

			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.
		

Crossrefs

Programs

  • 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 *)