Maths Olympiad Prep

Library / /24 of 24

Combinatorics Difficulty 9.1 IMO level Prove it Romania

Let n2n \ge 2 and consider a table with n+1n+1 rows and nn columns, in which, on each of the first nn rows, Nicuşor writes, in some order, the numbers 1,2,,n1, 2, \dots, n. Then, he chooses a permutation a1,a2,,ana_1, a_2, \dots, a_n of the numbers 1,2,,n1, 2, \dots, n and completes the last row as follows: for each j{1,2,,n}j \in \{1, 2, \dots, n\}, he writes in the cell at column jj the number of occurrences of aja_j in the cells located at the intersection of column jj with the first nn rows.
Determine all nn for which Nicuşor can complete the table and choose a1,a2,,ana_1, a_2, \dots, a_n so that the last row contains, in some order, the numbers 1,2,,n1, 2, \dots, n.
Cristi Săvescu

Solution

For n=2n=2, no matter how Nicuşor chooses a1a_1 and a2a_2, on the third row we will have two equal values. For n=3n=3, suppose without loss of generality that a3=3a_3=3. Then, in the third column, we have only values equal to 33. Since the set (1,2)(1, 2) admits only two permutations, among the first three rows there will be two identical ones, so these rows coincide and we cannot have any ai=1a_i = 1.

Next, we show that for n4n \ge 4, there exists a completion that works. If n=4n=4 and we take a1=1,a2=2,a3=3,a4=4a_1 = 1, a_2 = 2, a_3 = 3, a_4 = 4, the following construction satisfies the

1234
2134
2134
3214
1234

Construction 1 (induction):
We will prove by induction on n4n \ge 4 that there exists a valid construction in which ai=ia_i = i for every i{1,2,,n}i \in \{1, 2, \dots, n\} and the last row is exactly 1,2,,n1, 2, \dots, n. The case n=4n = 4 is illustrated above. Suppose there exists a valid table TnT_n of size (n+1)×n(n+1) \times n for n4n \ge 4, for which the chosen permutation by Nicuşor is a1,a2,,ana_1, a_2, \dots, a_n with ai=ia_i = i for every i=1,2,,ni = 1, 2, \dots, n.
We construct a table Tn+1T_{n+1} of size (n+2)×(n+1)(n+2) \times (n+1), valid for n+1n+1, as follows: we add a column at the end of TnT_n and a new row between the last and the penultimate rows of TnT_n. We fill all the cells of the newly added last column with the value n+1n+1, and the first nn values of the newly added row with 2,3,,n,12, 3, \dots, n, 1 (or any permutation that preserves the values for a1,a2,,ana_1, a_2, \dots, a_n).
It is easy to verify that the newly constructed table is valid.

Construction 2 (direct):
For n4n \ge 4, consider ai=ia_i = i for every i=1,2,3,4,,ni = 1, 2, 3, 4, \dots, n and the following construction:

1234567...n
2134567...n
2134567...n
3214567...n
2341567...n
2345167...n
2345617...n
...
1234567...n

It is easy to verify that the newly constructed table is valid.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.