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.

A344662 a(n) is the number of preference profiles in the stable marriage problem with n men and n women so that they form n pairs of people of different genders who rank each other first, and so that the men's preferences arranged in a matrix form a Latin square.

Original entry on oeis.org

1, 2, 96, 746496, 1284211998720, 2427160677580800000000, 6166762687851449045483520000000000, 45287412266290145430585597857888710164480000000000, 1555956528335898586085189699733983238252540690603399394099200000000000, 395245501240598487865502317687285665641954608158944047815164739503046322343116800000000000000
Offset: 1

Views

Author

Tanya Khovanova and MIT PRIMES STEP Senior group, May 30 2021

Keywords

Comments

Two people who rank each other first are called soulmates. The profiles in this sequence are required to have n pairs of soulmates.
The profiles with n pairs of soulmates are counted by sequence A343698. The profiles such that the men's preference form a Latin square are counted by A343696. The profiles in this sequence are the intersection of profiles in A343696 and A343698.
The Gale-Shapley algorithm (both men-proposing and women-proposing) on the preference profiles described by this sequence ends in one round.

Examples

			For n = 3, there are A002860(3) = 12 ways to set up the men's preference profiles, where A002860(n) is the number of Latin squares of order n. The men's first preferences set the women's first preferences, so we only need to complete the women's profiles with other preferences, which can be done in 2!^3 = 8 ways. Thus, A344662(3) = 12 * 8 = 96.
		

Crossrefs

Formula

a(n) = (n-1)!^n * A002860(n) = A343696(n)/n^n.

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