A338665 a(n) is the number of preference profiles for n men and n women where every man prefers woman number 1 to woman number 2.
4, 5832, 6879707136, 19349176320000000000, 303256405652583481344000000000000, 53311087345695615264200592956011315200000000000000, 190584865366582887488321066784947980317795794157526056960000000000000000
Offset: 2
Keywords
Examples
When n = 2, we have exactly 1 way to arrange each man's profiles such that woman number 1 is ranked before woman number 2. Each woman's profile can be set in 2! = 2 ways, so the total number of preference profiles such that every man prefers woman number 1 to woman number 2 is 1^2 * 2^2 = 4.
Links
- Wikipedia, Gale-Shapley algorithm.
Programs
-
Mathematica
Table[n!^(2 n)/2^n, {n, 2, 10}]
Formula
a(n) = n!^(2n) / 2^n.
Comments