Checks-check every where, How much I count!

You are given a 4 × 4 4 \times 4 square Board and you need to fill it with Red and Blue colours, Such that there are exactly two blue boxes and two red boxes in each row and column.

In how many ways, is it possible to fill the colours in 4 × 4 4 \times 4 square Board.

ADDITIONAL CHALLENGE : Derive a formula For n × n n \times n square Board and n/2 colours, where n is even .


The answer is 90.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Richard Desper
Jan 30, 2020

For the 4 × 4 4 \times 4 case, I'll use the counting principle.

To make the argument simpler, I'll consider 4 × 4 4 \times 4 0 1 0-1 matrices M M whose row and column sums all equal 2 2 . (I.e., M i j = 1 M_{ij} = 1 if and only if there is a red square in the i i th row and j j th column.)

There are ( 4 2 ) { 4 \choose 2} ways to place two red squares in the first row. Let i 1 , i 2 i_1, i_2 be such that M 1 i 1 = 1 = M 1 i 2 M_{1 i_1} = 1 = M_{1 i_2} . Consider a fixed value of i 1 i_1 . There are 3 3 choices for j j such that M j i 1 = 1 M_{j i_1} = 1 .

At this point, we split into two cases:

1) M j i 2 = 1 M_{j i_2} = 1 . If this is the case, then we have two rows and two columns that have their red squares, so the other four reds are { M k l : k 1 , j , l i 1 , i 2 } \{ M_{kl}: k \neq 1, j , l \neq i_1, i_2\} . Thus there is one matrix in this case.

2) M j i 2 = 0. M_{j i_2} = 0. In this case there are two choices for l i 1 , i 2 l \neq i_1, i_2 such that M_{jl} = 1, and for each of those two choices there are two choices for k k such that M k i 2 = 1 M_{k i_2} = 1 . For each of these four choices, there is exactly one way to complete the matrix to get the desired row and column sums. Thus there are exactly four matrices in this case.

Thus the total number of such matrices is ( 4 2 ) 3 ( 1 + 4 ) = 90 {4 \choose 2} * 3 * (1 + 4) = 90

@Richard Desper , This his is a very good way to represent the solution. I used the same strategy but my representation wasn't upto the mark.... Thank you for such a good solution.

Nikola Alfredi - 1 year, 4 months ago

+1! helpful solution. I was wondering if there exist some work on general n x n case

Mayank Chaturvedi - 10 months ago
Tattwa Shiwani
Jan 31, 2020

I solved the problem in 3 steps

  • 1)No. of ways to fill the first row is 4 C 2 ^4C_2

  • 2)No. of ways to fill the first column is 3 C 2 ^3C_2

{as the first block of first column is already filled in step (1) }

  • 3)No. of ways to fill second row is 3 C 2 ^3C_2

Now from these 3 methods,

- - One will lead to complete filled board [ when the colours in first row and second row match ] { 1× 1 }

( because there can be only 2 blocks of same colour in a line )

- - Other two will lead to two cases each [ as on filling the opposite colours, we would go to the leftmost empty block of 3rd row. There we will have 2 colours to fill in, so 2 ways ] { 2×2 }

Finally we get the number of ways of filling the board equal to

(1) × (2) × (3)

= 4 C 2 ^4C_2 × 3 C 2 ^3C_2 × ( 1×1 + 2×2 )

= 6 × 3 × 5

= 90

Please explain more.... How you got N s y m N_{sym} and explain each step then onwards.

Nikola Alfredi - 1 year, 3 months ago

Log in to reply

Hope the additional information helps explain the patterns for combinations.

A Former Brilliant Member - 1 year, 3 months ago

Log in to reply

Hi, my notification is showing me that you replied to my comment twice... but I am not able to find the comments! I beleive that you have got my doubt because when I posted my doubt, in reply to your comment, then your comment just vanished ! I don't have any idea what's happening.

One comment was 50 min ago, Other was an hour ago !

Nikola Alfredi - 1 year, 3 months ago

Log in to reply

@Nikola Alfredi Hi Nikola, yes, I asked you what you got for the number of columns. Then I decided to check my answer and saw I double counted. Sorry for the confusion. Have a great day!

A Former Brilliant Member - 1 year, 3 months ago

Log in to reply

@A Former Brilliant Member You too (have a great day)... Do not click , but if you do then see the solution.

Nikola Alfredi - 1 year, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...