Skip to main content
OlympiadHQ

Browse · MathNet

Print

Spring Mathematical Tournament

Bulgaria counting and probability

Problem

Let and be odd integers. Distinct real numbers are written in the cells of a table of rows and columns. A number is called good if: 1. it is the largest in its row (column); 2. it is the middle number of its column (row). What is the maximal number of good numbers?

problem


problem
Solution
Let be the set of good numbers that are largest in their column and middle in their row. Since no two of these numbers belong to one and the same row we have . Denote by the largest element of and let be the numbers in the row of that are greater than . It is clear that there are no elements from in the columns of . Since there is at most one element of in every column it follows that . Thus, Analogously we obtain that the number of good numbers that are largest in their rows is at most . We shall show that for every odd and there exists a table such that the number of good numbers equals .

1. If without loss of generality assume that . Mark the cells of the table by the digits 1, 2, 3, 4 and 5 as shown on the figure. Next, fill in the cells by writing consecutively the numbers 1, 2, 3, ..., , starting with the cells marked by 1, then by 2 and so on. All numbers written in the cells marked by 2 or 4 are good. Their number equals:

2. Let and . As in 1. we fill the following table. The good numbers are again in cells marked by 2 or 4. Their number equals:

3. If , then the table (5,6,7 and 8 are good) shows that the number of good numbers is 4 and .

179
264
538


Final answer
min{m, (n+1)/2} + min{n, (m+1)/2}

Techniques

Coloring schemes, extremal arguments