Skip to main content
OlympiadHQ

Browse · MathNet

Print

Junior Balkan Mathematical Olympiad

North Macedonia counting and probability

Problem

A table is called regular if each of its cells contains one of four pairwise distinct real numbers, such that each of them occurs exactly once in every subtable. The sum of all numbers of a regular table is called the total sum of the table. With any four numbers, one constructs all possible regular tables, computes their total sums and counts the distinct outcomes. Determine the maximum possible count.
Solution
We will prove that the maximum number of total sums is . The proof is based on the following claim.

Claim. In a regular table either each row contains exactly two of the numbers, or each column contains exactly two of the numbers.

Proof of the Claim. Indeed, let be a row containing at least three of the numbers. Then, in row we can find three of the numbers in consecutive position, let be the numbers in consecutive positions (where ). Due to our hypothesis that in every subarray each number is used exactly once, in the row above (if there is such a row), precisely above the numbers will be the numbers in this order. And above them will be the numbers in this order. The same happens in the rows below (see at the following figure).



Completing all the array, it easily follows that each column contains exactly two of the numbers and our claim is proven. \hfill (1)

Rotating the matrix (if it is necessary), we may assume that each row contains exactly two of the numbers. If we forget the first row and column from the array, we obtain a array, that can be divided into four subarrays, containing thus each number exactly four times, with a total sum of . It suffices to find how many different ways are there to put the numbers in the first row and the first column . \hfill (2)

Denoting by the number of appearances of and respectively in and , the total sum of the numbers in the entire array will be

In the first, the third and the fifth row contain the numbers with denoting the number at the entry , then the second and the fourth row will contain only the numbers , with denoting the number at the entry . Then and , , , and . Then or , respectively or . (4)

Then is obtained by permuting one of the following quadruples:

There are a total of permutations of , also permutations of , permutations of and finally, there are permutations of . Hence, there are at most different possible total sums. (6)

We can obtain indeed each of these combinations: take three rows alternating with two rows to get ; take three rows alternating with one row and a row to get ; take three rows alternating with two rows to get ; take three rows alternating with two rows to get . (7)

By choosing for example , we can make all these sums different. (8)

Hence, is indeed the maximum possible number of different sums.

---

Alternative solution.

Alternative version. Consider a regular table containing the four distinct numbers . The four corners contain each all the four numbers, so that, if are the numbers of appearances of and respectively in the middle row and column, then

Consider the numbers in position , in position , in position , in position and in position . If , then , and in position and there will be the number . (2')

The second and fourth row can only contain now the numbers and , respectively the first and fifth row only and . (3')

Then and , , , and . Then or , respectively or . (4')

One can continue now as in the first version.
Final answer
60

Techniques

Enumeration with symmetryColoring schemes, extremal arguments