A spider needs a sock and a shoe for each of its eight legs. In how many ways can it put on the shoes and socks, if socks must be put on before the shoe?
My attempt:
If I consider its legs to be indistinguishable, then it's exactly the $8^{\text{th}}$ term of the Catalan sequence. However the legs are distinguishable. So the total number of ways equals $\frac1{8+1} \binom{16}{8} (8!)^2$.
Is this correct? Is there another way of doing it?
Edit: All socks and shoes are distinguishable.
You can imagine doing this as writing a sequence, say $$3453228156467781$$
What does it mean?
It means first put sock on leg $\color{red}{3}$ and on 4-th move put shoe on leg $\color{red}{3}$
then put sock on leg $\color{blue}{4}$ and on 11-th move put shoe on leg $\color{blue}{4}$ and so on...
So for each leg you must choose a pair in this sequence. On smaller number in this pair put a sock and the other shoe.
So we have $${16\choose 2}{14\choose 2}....{4\choose 2}{2\choose 2} = {16!\over 2!^8}$$