Place the counters on a $4\times 4$ grid such that no column or row has the same color counters

combinatoricsdiscrete mathematics

There is a $4\times 4$ grid posted on the wall. Find the number of ways of placing two identical red counters and two identical blue counters on four different squares of the grid such that no column or row has two counters of the same color.

My solution: place the first blue counter $B_1$: there are 16 ways. Next, place $B_2$: there are 9 ways.

After, I split into cases:

-The first case: $R_1$ is placed not coinciding with the cross of $B_1$ or $B_2$.

-The second case: $R_1$ coincides with exactly one cross of $B_1$ or $B_2$.

-The third case: $R_1$ coincides with the crosses of $B_1$ and $B_2$.

I find my solution is quite long and complicated. Therefore, I want to refer to another solution. Please everyone help me.

Best Answer

You can try also by the inclusion and exclusion principle. From all possible configurations, that is $${16\choose 4} \cdot {4\choose 2} = {16\cdot 15\cdot 14\cdot 13\over 24} \cdot 6 = 60\cdot 14\cdot 13$$ we have to exclude configurations where 2 red or 2 blue are in the same line and then to include where 2 red and 2 blue are in the same line. For the first one we have $$8\cdot {4\choose 2}\cdot {14\choose 2}= 48\cdot 91$$ and for the later we have $$8\cdot {4\choose 2}\cdot {\Big(5\cdot {4\choose 2}+1+2\cdot {3\choose 2}\Big)} = 48\cdot 37$$ configurations

So in total we have $$60\cdot 14\cdot 13 -2 \cdot(48\cdot 91)+48\cdot 37=3960$$ good configurations.

Related Question