Olympiad Maths Prep

Track / Stage 7 / 91 of 300 #1491 of 2000

Problem 1491

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

4. (IRN) IMO4Ann×n{ }^{\mathrm{IMO} 4} \mathrm{An} n \times n matrix with entries from {1,2,,2n1}\{1,2, \ldots, 2 n-1\} is called a coveralls matrix if for each ii the union of the ii th row and the ii th column contains 2n12 n-1 distinct entries. Show that: (a) There exist no coveralls matrices for n=1997n=1997. (b) Coveralls matrices exist for infinitely many values of nn.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

4. (a) Suppose that an n×nn \times n coveralls matrix AA exists for some n>1n>1. Let x{1,2,,2n1}x \in\{1,2, \ldots, 2 n-1\} be a fixed number that does not appear on the fixed diagonal of AA. Such an element must exist, since the diagonal can contain at most nn different numbers. Let us call the union of the ii th row and the ii th column the ii th cross. There are nn crosses, and each of them contains exactly one xx. On the other hand, each entry xx of AA is contained in exactly two crosses. Hence nn must be even. However, 1997 is an odd number; hence no coveralls matrix exists for n=1997n=1997. (b) For n=2,A2=[1231]n=2, A_{2}=\left[\begin{array}{ll}1 & 2 \\ 3 & 1\end{array}\right] is a coveralls matrix. For n=4n=4, one such matrix is, for example,
A4=[1256317546127431] A_{4}=\left[\begin{array}{llll} 1 & 2 & 5 & 6 \\ 3 & 1 & 7 & 5 \\ 4 & 6 & 1 & 2 \\ 7 & 4 & 3 & 1 \end{array}\right]
This construction can be generalized. Suppose that we are given an n×nn \times n coveralls matrix AnA_{n}. Let BnB_{n} be the matrix obtained from AnA_{n} by adding 2n2 n to each entry, and CnC_{n} the matrix obtained from BnB_{n} by replacing each diagonal entry (equal to 2n+12 n+1 by induction) with 2n2 n. Then the matrix
A2n=[AnBnCnAn] A_{2 n}=\left[\begin{array}{ll} A_{n} & B_{n} \\ C_{n} & A_{n} \end{array}\right]
is coveralls. To show this, suppose that ini \leq n (the case i>ni>n is similar). The ii th cross is composed of the ii th cross of AnA_{n}, the ii th row of BnB_{n}, and the ii th column of CnC_{n}. The ii th cross of AiA_{i} covers 1,2,,2n11,2, \ldots, 2 n-1. The ii th row of BnB_{n} covers all numbers of the form 2n+j2 n+j, where jj is covered by the ii th row of AnA_{n} (including j=1j=1). Similarly, the ii th column of CnC_{n} covers 2n2 n and all numbers of the form 2n+k2 n+k, where k>1k>1 is covered by the ii th column of AnA_{n}. Thus we see that all numbers are accounted for in the ii th cross of A2nA_{2 n}, and hence A2nA_{2 n} is a desired coveralls matrix. It follows that we can find a coveralls matrix whenever nn is a power of 2. Second solution for part bb. We construct a coveralls matrix explicitly for n=2kn=2^{k}. We consider the coordinates/cells of the matrix elements modulo nn throughout the solution. We define the ii-diagonal (0i<n)(0 \leq i < n) into cycles of length larger than 1. Due to the diagonal translational symmetry (modulo nn), all the cycles within a given ii-diagonal must be of equal length and thus of an even length, since n=2kn=2^{k}. The construction of a coveralls matrix is now obvious. We select a number, say 1, to place on all the cells of the 0-diagonal. We pair up the remaining numbers and assign each pair to an ii-diagonal, say (2i,2i+1)(2 i, 2 i+1). Going along each cycle within the ii-diagonal we alternately assign values of 2i2 i and 2i+12 i+1. Since the cycle has an even length, a cell will be related only to a cell of a different number, and hence each cross will contain both 2i2 i and 2i+12 i+1.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.