Skip to main content
OlympiadHQ

Browse · MathNet

Print

Fall Mathematical Competition

Bulgaria counting and probability

Problem

Find all pairs of positive integers , , such that there exists an table of zeros and ones which satisfy the following condition: If there is a zero (resp. one) in a cell, then the number of the zeros (resp. ones) in the row of that cell is equal to the number of the zeros (resp. ones) in the column of the cell.
Solution
Denote by the number in the -th row and -th column, by (resp. ) the number of the zeros (resp. ones) in the -th row, and by (resp. ) the number of the zeros (resp. ones) in the -th column.

Lemma. If exactly three of the numbers , , and , , , are the same, then .

Proof. We can assume without loss of generality that and . Then implies that and it follows from that . Hence and , which means that .

An example of a square table () is the all-zero table (or the table with zeros at the main diagonal and ones in the remaining cells).

Assume now that . It is clear that any permutation of the rows or the columns does not affect the required property. Thus we can assume that the first row begins with its ones and continues with its zeros, and similarly for the first column: it begins with its ones and continues with its zeros. Then shows that the ones in the first row are as much as the ones in the first column. Denote this number by . Now it follows from the Lemma that for every .

Case 1. Let . Then and for every . Therefore , i.e. .

Case 2. Let . If for some and then the Lemma implies that (since and ). Therefore for and . Analogously for and .

Assume that for some and . Again the Lemma shows that , a contradiction. Hence for every and . Now gives , i.e. , a contradiction.

We finally obtain that or . For the last case, an example is a table which consists of two tables, one of them having only zeros, and the other only ones.
Final answer
All pairs of positive integers with n = m or n = 2m.

Techniques

Coloring schemes, extremal argumentsOther