4. (IRN) matrix with entries from is called a coveralls matrix if for each the union of the th row and the th column contains distinct entries. Show that: (a) There exist no coveralls matrices for . (b) Coveralls matrices exist for infinitely many values of .
Problem 1491
Official solution
4. (a) Suppose that an coveralls matrix exists for some . Let be a fixed number that does not appear on the fixed diagonal of . Such an element must exist, since the diagonal can contain at most different numbers. Let us call the union of the th row and the th column the th cross. There are crosses, and each of them contains exactly one . On the other hand, each entry of is contained in exactly two crosses. Hence must be even. However, 1997 is an odd number; hence no coveralls matrix exists for . (b) For is a coveralls matrix. For , one such matrix is, for example,
This construction can be generalized. Suppose that we are given an coveralls matrix . Let be the matrix obtained from by adding to each entry, and the matrix obtained from by replacing each diagonal entry (equal to by induction) with . Then the matrix
is coveralls. To show this, suppose that (the case is similar). The th cross is composed of the th cross of , the th row of , and the th column of . The th cross of covers . The th row of covers all numbers of the form , where is covered by the th row of (including ). Similarly, the th column of covers and all numbers of the form , where is covered by the th column of . Thus we see that all numbers are accounted for in the th cross of , and hence is a desired coveralls matrix. It follows that we can find a coveralls matrix whenever is a power of 2. Second solution for part . We construct a coveralls matrix explicitly for . We consider the coordinates/cells of the matrix elements modulo throughout the solution. We define the -diagonal into cycles of length larger than 1. Due to the diagonal translational symmetry (modulo ), all the cycles within a given -diagonal must be of equal length and thus of an even length, since . 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 -diagonal, say . Going along each cycle within the -diagonal we alternately assign values of and . 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 and .