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-5 of 5 results.

A351409 a(n) = n*(n!)^(2*n-2).

Original entry on oeis.org

1, 8, 3888, 764411904, 214990848000000000, 224634374557469245440000000000, 1880461634768804771224006806208512000000000000, 240091793104790737576620139562796649430329798636339200000000000000, 813675117804798213250391541747787241264315446434692481270971279693253181440000000000000000
Offset: 1

Views

Author

Dan Eilers, Feb 11 2022

Keywords

Comments

a(n) is the number of reduced Stable Marriage Problem instances of order n. In the SMP, relabeling men or women has no effect on the number of stable matchings. So the men and women can be relabeled to normalize the order of man #1's rankings (with woman #1 as his first choice and woman n as his last choice), and to similarly normalize the order of woman #1's rankings, except for her ranking of man #1. This reduces the number of possible instances by a factor of n!(n-1)! (A010790 with shifted offset), from (n!)^(2n) (A185141) to a(n). This reduction is directly analogous to the identical reduction from latin squares (A002860) to reduced latin squares (A000315), and can be directly applied to the Latin Stable Marriage Problem (A351413). As with reduced latin squares, some further reduction is possible analogous to row/column reduced latin squares (A123234).
It is tempting to aim for a reduction of (n!)^2 by simultaneously normalizing all of man #1 and woman #1's preferences, but that isn't possible unless man #1 and woman #1 happen to be mutual first choices.
Applying this reduction to A344669 reduces A344669(2) and A344669(4) to 1, demonstrating that these maximal instances arising in A005154 are unique up to participant relabeling. It raises the question of which other values of n make A344669(n) reducible to 1.

Crossrefs

Programs

Formula

a(n) = A185141(n) / A010790(n-1).

A263921 Number of multisets of n permutations of [n] with the symmetric group acting on the permutation elements.

Original entry on oeis.org

1, 1, 2, 10, 762, 1876255, 274382326290, 3265588553925722827, 4299566944396584777543664576, 828675148077536475804944305151462053905, 30068353582978459601855528390398866877243129478172220
Offset: 0

Views

Author

Marko Riedel, Oct 29 2015

Keywords

Comments

The Harary and Palmer text has the generic formulas for power group enumeration.
a(n) is also the number of preference profiles with n alternatives and n agents (IANC model). Egecioglu (2009) contains a general formula. - Alexander Karpov, Dec 15 2017
Row-latin squares distinct up to row/column permutation, with application to the Stable Marriage Problem representing distinct Men's or Women's preference profiles. - Dan Eilers, May 18 2025

Examples

			See linked examples.
		

References

  • F. Harary and E. Palmer, Graphical Enumeration, Academic Press, NY, 1973.

Crossrefs

A123234 (reduced latin squares up to row/column permutation).

A351413 a(n) is the maximum number of stable matchings in the Latin Stable Marriage Problem of order n.

Original entry on oeis.org

1, 2, 3, 10, 9, 48, 61
Offset: 1

Views

Author

Dan Eilers, Feb 10 2022

Keywords

Comments

In the Latin Stable Marriage Problem of order n, the sum of a man and woman's rankings of each other is n+1. This implies that the men's and women's ranking tables are Latin squares. As a subproblem of the Stable Marriage Problem, Latin instances provide lower bounds for the maximum number of stable matchings in the general problem, such as A005154 and A065982. For sizes 1 to 4, Latin instances provide exact bounds; they are conjectured to provide exact bounds for sizes a power of 2; they provide the best lower bounds known for sizes 6, 10, 12, and 24, of 48, 1000, 6472, and 126112960, respectively.
The next term, a(8), is conjectured to be 268, consistent with A005154. The minimum number of stable matchings for Latin instances of order n is n, and is realized for the cyclic group of order n. The average number of stable matchings is 7 for n=4 (cf. A351430 showing an average of about 1.5 for the general problem), and benefits from avoidance of mutual first choices and more generally the lack of overlap between the men's and women's preferred matchings. The Latin squares of A005154 and A065982 can be interpreted as multiplication tables of groups, n-th powers of the cyclic group C2 and n-th dihedral groups, respectively.
The sequence decreases from a(4)=10 to a(5)=9, in contrast to the corresponding sequence for the general problem, which Thurber showed to be strictly increasing. This has motivated the study of less restrictive subproblems, such as pseudo-Latin squares (A069124, A069156), Latin x Latin instances (A344664, A344665, A343697), instances where participants have different first choices (A343475, A343694, A343695), or instances with unspecified/tied/template rankings (A284458 with only first choices specified).
The sequence is empirically derived, originally based on reduced Latin squares (A000315). There are fewer instances to try using RC-equivalent Latin squares (A123234) instead of reduced Latin squares.

Examples

			Maximal instance of order 2 with 2 stable matchings:
  12
  21
Maximal instance of order 3 with 3 stable matchings:
  123
  231
  312
Maximal instance of order 4 with 10 stable matchings (group C2xC2):
  1234
  2143
  3412
  4321
Maximal instance of order 5 with 9 stable matchings:
  12345
  21453
  34512
  45231
  53124
Maximal instance of order 6 with 48 stable matchings (Dihedral group):
  123456
  214365
  365214
  456123
  541632
  632541
Maximal instance of order 7 with 61 stable matchings:
  1234567
  2316745
  3125476
  4657312
  5743621
  6471253
  7562134
		

References

  • C. Converse, Lower bounds for the maximum number of stable pairings for the general marriage problem based on the latin marriage problem, Ph. D. Thesis, Claremont Graduate School, Claremont, CA (1992) [Examples are from 69-70].

Crossrefs

Cf. A005154 (powers of 2), A065982 (multiples of 2), A069156 (not necessarily Latin), A000315 (reduced Latin squares), A123234 (RC-equivalent Latin squares).

A351580 a(n) is the number of multisets of size n-1 consisting of permutations of n elements.

Original entry on oeis.org

1, 2, 21, 2600, 9078630, 1634935320144, 22831938997720867560, 34390564970975286088924022400, 7457911916650283082000186530740981347120, 300682790088737748950725540713718365319268411170195200, 2830053444386286847574443631356044745870287426798365860653876609636480
Offset: 1

Views

Author

Dan Eilers, Feb 13 2022

Keywords

Comments

a(n) is the number of reduced men's ranking tables in the stable marriage problem of order n. In the SMP (as noted in A351409), relabeling men or women has no effect on the number of stable matchings. So the women can be relabeled to normalize the order of man #1's rankings (with woman #1 as his first choice and woman n as his last choice), and then the men except man #1 can be relabeled to normalize the lexicographic order of those men's rankings. Since man #1's rankings end up fixed in natural order, they do not contribute to the number of possibilities, leaving n! multichoose (n-1) ways to arrange the rankings of the other n-1 men.
The number of unreduced men's ranking tables is given by A036740. Relabeling just the women reduces this to A134366. Alternately, relabeling just the men reduces A036740 to A344690. Relabeling both men and women reduces the men's relabeling reduction, A344690, by a factor of (n!+n-1)/n to a(n).
It might be tempting to try to reduce A344690 by a factor of n!, but that doesn't work because not all of man #1's rankings are equally likely after relabeling all the men to give man #1 the lexicographically least rankings.
There is room for further relabeling reduction from a(n), given by A263921. The reduction from a(n) to A263921 is analogous to the reduction from reduced latin squares, A000315, to A123234.
Each of the a(n) reduced men's ranking tables can be combined with the A036740 possible unreduced women's ranking tables to form complete instances, but these instances have more possibilities than A351409. For example, a(3)*A036740(3)=21*216=4536 > A351409(3)=3888. However, fewer possibilities result from using A263921 in place of a(n), although the men's ranking tables of A263921 may not be as straightforward to generate. With A263921(3)=10, 10*216=2160 < 3888.

Examples

			Starting with the following men's ranking table of order 3, where row k represents man k's rankings, the 1 in the 2nd position of row 3 means that man #3 ranks woman #2 as his 1st choice.
  213
  321
  213
Step 1: reorder columns so row 1 is in natural order:
  123
  231
  123
Step 2: reorder rows 2 to n so rows are in lexical order:
  123
  123
  231
a(3)=21 because there are 1+2+3+4+5+6 = 21 possibilities for the last two rows in lexical order, with 3!=6 possible permutations for each row.
The 21 tables for a(3) are the following:
  123   123   123   123   123   123   123
  123   123   123   123   123   123   132
  123   132   213   231   312   321   132
.
  123   123   123   123   123   123   123
  132   132   132   132   213   213   213
  213   231   312   321   213   231   312
.
  123   123   123   123   123   123   123
  213   231   231   231   312   312   321
  321   231   312   321   312   321   321
		

Crossrefs

Programs

  • Mathematica
    Table[Binomial[n!+n-2,n-1],{n,15}] (* Harvey P. Dale, Jun 02 2023 *)
  • PARI
    a(n) = binomial(n! + n - 2, n - 1) \\ Andrew Howroyd, Feb 13 2022

Formula

a(n) = binomial(n! + n - 2, n - 1).
a(n) = n*A344690(n)/A030495(n-1).
a(n) = A344690*n/(n! + n - 1).
a(n) = A071919(n-1,n!). - Alois P. Heinz, Feb 16 2022

Extensions

Erroneous Mathematica program deleted by N. J. A. Sloane, Jun 02 2023

A351781 a(n) = (n-1)^n*(n-1)!^n.

Original entry on oeis.org

0, 1, 64, 104976, 8153726976, 46656000000000000, 28079296819683655680000000, 2400095991902688012207233433600000000, 37800243186554601452585666030525214621696000000000
Offset: 1

Views

Author

Dan Eilers, Feb 19 2022

Keywords

Comments

a(n) is the number of women's ranking tables in the stable marriage problem that can be paired with a men's ranking table having no two men with the same first choice, without forming any mutual first choices. It has two terms: (n-1)^n from A065440(n), and (n-1)!^n from A091868(n-1). Such men's ranking tables having no two men with the same first choice arise in A343694, A343475, and A344663.
a(n)*A123234 is a useful alternative to A343696 which combines a Latin men's ranking table with an arbitrary women's table, since it gives fewer instances to consider.

Crossrefs

Programs

  • Mathematica
    Table[(n-1)^n*(n-1)!^n,{n,1,9}]

Formula

a(n) = (n-1)^n*(n-1)!^n.
a(n) = A065440(n)*A091868(n-1).
Showing 1-5 of 5 results.