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.

Showing 1-2 of 2 results.

A277256 Multi-table menage numbers T(n,k) for n,k >= 1 equals the number of ways to seat the gentlemen from n*k married couples at n round tables with 2*k seats each such that (i) the gender of persons alternates around each table; and (ii) spouses do not sit next to each other; provided that the ladies are already properly seated (i.e., no two ladies sit next to each other).

Original entry on oeis.org

0, 1, 0, 2, 4, 1, 9, 80, 82, 2, 44, 4752, 43390, 4740, 13, 265, 440192, 59216968, 59216648, 439794, 80, 1854, 59245120, 164806652728, 2649391488016, 164806435822, 59216644, 579, 14833, 10930514688, 817056761525488, 312400218967336992, 312400218673012936, 817056406224656, 10927434466, 4738
Offset: 1

Views

Author

Max Alekseyev, Oct 07 2016

Keywords

Examples

			Table T(n,k):
  n=1:  0,      0,            1,                  2, ...
  n=2:  1,      4,           82,               4740, ...
  n=3:  2,     80,        43390,           59216648, ...
  n=4:  9,   4752,     59216968,      2649391488016, ...
  n=5: 44, 440192, 164806652728, 312400218967336992, ...
  ...
		

Crossrefs

Cf. A000179 (row n=1), A000166 (column k=1), A000316 (column k=2), A277257, A277265, A341439.

Programs

  • PARI
    { A277256(n,k) = my(m,s,g); m=n*k; s=sqrt(1+4*x+O(x^(m+1))); g=if(k==1,1+z,((1-s)/2)^(2*k)+((1+s)/2)^(2*k))^n; sum(j=0,m,(-1)^j*polcoeff(g,j)*(m-j)!); }

Formula

T(n,k) = Sum_{j=0..n*k} (-1)^j * (n*k-j)! * [z^j] F(k,z)^n, where F(1,z) = 1+z and F(k,z) = ((1-sqrt(1+4*z))/2)^(2*k) + ((1+sqrt(1+4*z))/2)^(2*k) for k >= 2. [Corrected by Pontus von Brömssen, Jun 01 2022]
T(n,k) = A341439(n,n*k). - Pontus von Brömssen, May 31 2022

A277257 Multi-table menage seating arrangements: T(n,k) for n,k >= 1 equals the number of ways to seat n*k married couples at n round tables with 2*k seats each, such that (i) the gender of persons alternates around each table; and (ii) spouses do not sit next to each other.

Original entry on oeis.org

0, 8, 0, 96, 384, 12, 3456, 460800, 236160, 96, 168960, 3065610240, 125962905600, 764467200, 3120, 12211200, 51115799347200, 453840358706380800, 226918953109094400, 6383697868800, 115200, 1196052480, 1816224465420288000, 6896429934345052028928000
Offset: 1

Views

Author

Max Alekseyev, Oct 07 2016

Keywords

Comments

Tables and seats are labeled. For unlabeled version, see A277265.

Examples

			Table T(n,k):
n=1: 0, 0, 12, 96, 3120, 115200, ...
n=2: 8, 384, 236160, 764467200, ...
n=3: 96, 460800, 125962905600, ...
n=4: 3456, 3065610240, 453840358706380800, ...
...
		

Crossrefs

Cf. A059375 (row n=1), A277265.

Formula

T(n,k) = A277256(n,k) * 2^n * (n*k)!.
Showing 1-2 of 2 results.