Skip to main content
OlympiadHQ

Browse · MathNet

Print

Team Selection Test

Turkey counting and probability

Problem

In how many ways every unit square of a board can be colored in red or white such that number of red unit squares in any two rows are distinct and number of red unit squares in any two columns are distinct.
Solution
The answer is . We consider the problem for an board. Let be the number of red squares in the -th row for and be the number of red squares in the -th column for . Since for every , we see that for some number . Similarly, we have for some number . On the other hand, the number of red squares on the board is both and . Thus, we get .

Note that if for some , then for every and hence, . Moreover, if for some , then for every and hence, . Therefore, the missing number is either or . If , then for some and and removing the -th row and -th column gives us the problem for board with the missing number . Similarly, If , then for some and and removing the -th row and -th column gives us the problem for board with the missing number . Therefore, at the beginning we can decide on the missing number in ways but later on it is uniquely determined. We can choose a row and a column to remove in ways. Finally, the answer is
Final answer
2(2018!)^2

Techniques

Counting two waysRecursion, bijection