I am curious about this problem that I came up and tried to solve for myself:
The settings is an $2k$ player game. It's a team game of $2$ teams. Each team has $k$ player slots. Each of the players chooses to play exactly one of $m$ factions.
The question is: How many unique possible team vs team match-ups are there (uniqueness in terms of which factions play against which factions, not in terms of which players play against each other)?
(Edit: Multiple players may choose the same faction. E.g. let's say there are 4 factions F1, F2, F3, F4, then ((F1, F1, F2) vs. (F1, F2, F4)) is a possible 3v3 match-up. Also, by uniqueness I mean that the order of players in a team does not matter, and the order of teams does not matter. E.g. ((F1, F2) vs. (F2, F4)) is the same 2v2 match-up as ((F2, F1) vs. (F2, F4)) and (F2, F4) vs. ((F1, F2)) )
I've tried two derivations:
My first answer (it must be wrong because for $k = 4, m=4$ I don't get an integer solution): $$\frac{m^k} {k!} \cdot \frac{m^k} {k!} / 2$$ because for each team, we can select $m^k$ combinations of factions, before accounting for possible permutations of players inside the team, by dividing by $k!$. Finally, divide by $2$ because the order of the teams does also not matter.
My second answer (also wrong for the same reason): $$\frac{m^{2k}}{ \binom {2k}{k}}$$ because there are $m^{2k}$ possibilities for fixed players picking factions, and in the second step we then select $k$ players for the first team, so divide by all possible ways to pick $k$ players out of $2k$, i.e. divide by $\binom {2k}{k}$.
Both answers are wrong because for $k = 4, m=4$ I get non-integer answers:
First answer fails: \begin{align} & \frac{4^4} {4!} \cdot \frac{4^4} {4!} / 2 &= \frac{4^3} {3!} \cdot \frac{4^3} {3!} / 2 &= \frac{64} {6} \cdot \frac{64} {6} / 2 &\approx 56.88 \end{align}
second answer fails: \begin{align} & \frac{4^{2 \cdot 4}}{ \binom {2 \cdot 4}{4}} &= \frac{4^8}{ \binom {8}{4}} &\approx 936.22 \end{align}
I'm confused where my assumptions/formulas are wrong.
It would also be interesting to see a more general answer for $t$ teams instead of only $2$.