A) the socks are asymmetrical (I must pair a left one with a right one)
This looks trivial:
- I place the left socks in a random order. the order is immaterial, because I only care which 2 colors I get to wear.
- then I place a right sock near each left sock
I can do this in $P(n) = n!$ ways
B) the socks are symmetrical (I can pair any sock with any other).
As I can wear any pair socks in both ways, I consider $(yellow,red)$ and $(red,yellow)$ as the same pairing.
I found several wrong answers from reasoning (fractional results, wrong result for trivial cases).
Ultimately, I am led to think that the two cases are actually the same problem, but can't find an explanation for that.
example of a wrong solution:
- I choose n socks - can do this in ${2n \choose n}$ ways, and place them in a random order. the order is immaterial, because I only care which 2 colors I get to wear.
- I can place the other n socks in $P(n) = n!$ ways
- If I swap the two socks with the same colors, I have the same pairing. reduce by $\frac{1}{2^n}$
- If I swap the two socks of a pair, I have the same pairing. reduce by $\frac{1}{2^n}$
result: $$ {2n \choose n}*n!*\frac{1}{2^{2n}} = \frac{ (2n)! }{n! 2^{2n}}$$
for $n=2$, this gives $3$, while the intuitive answer is $2$.