Skip to main content
OlympiadHQ

Browse · MathNet

Print

75th NMO Selection Tests

Romania counting and probability

Problem

Let and consider a table with rows and columns, in which, on each of the first rows, Nicuşor writes, in some order, the numbers . Then, he chooses a permutation of the numbers and completes the last row as follows: for each , he writes in the cell at column the number of occurrences of in the cells located at the intersection of column with the first rows. Determine all for which Nicuşor can complete the table and choose so that the last row contains, in some order, the numbers . Cristi Săvescu
Solution
For , no matter how Nicuşor chooses and , on the third row we will have two equal values. For , suppose without loss of generality that . Then, in the third column, we have only values equal to . Since the set admits only two permutations, among the first three rows there will be two identical ones, so these rows coincide and we cannot have any .

Next, we show that for , there exists a completion that works. If and we take , the following construction satisfies the
1234
2134
2134
3214
1234
Construction 1 (induction): We will prove by induction on that there exists a valid construction in which for every and the last row is exactly . The case is illustrated above. Suppose there exists a valid table of size for , for which the chosen permutation by Nicuşor is with for every . We construct a table of size , valid for , as follows: we add a column at the end of and a new row between the last and the penultimate rows of . We fill all the cells of the newly added last column with the value , and the first values of the newly added row with (or any permutation that preserves the values for ). It is easy to verify that the newly constructed table is valid.

Construction 2 (direct): For , consider for every 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.
Final answer
all integers n ≥ 4

Techniques

Pigeonhole principleInduction / smoothing