Find all positive integers for which we can fill in the entries of an table with the following properties: - each entry can be one of and ; - in each row and each column, the letters and occur the same number of times; and - in any diagonal whose number of entries is a multiple of three, the letters and occur the same number of times. Answer. can be any multiple of 9.
Problem 1411
Official solution
We first show that such a table exists when is a multiple of 9. Consider the following table.
It is a direct checking that the table (1) satisfies the requirements. For where is a positive integer, we form an table using copies of (1). For each row and each column of the table of size , since there are three 's, three 's and three 's for any nine consecutive entries, the numbers of and are equal. In addition, every diagonal of the large table whose number of entries is divisible by 3 intersects each copy of (1) at a diagonal with number of entries divisible by 3 (possibly zero). Therefore, every such diagonal also contains the same number of and .
Next, consider any table for which the requirements can be met. As the number of entries of each row should be a multiple of 3, we let where is a positive integer. We divide the whole table into copies of blocks. We call the entry at the centre of such a square a vital entry. We also call any row, column or diagonal that contains at least one vital entry a vital line. We compute the number of pairs where is a vital line and is an entry belonging to that contains the letter . We let this number be .
On the one hand, since each vital line contains the same number of and , it is obvious that each vital row and each vital column contain occurrences of . For vital diagonals in either direction, we count there are exactly
occurrences of . Therefore, we have .
On the other hand, there are occurrences of in the whole table. Note that each entry belongs to exactly 1 or 4 vital lines. Therefore, must be congruent to .
From the double counting, we get , which forces to be a multiple of 3. Therefore, has to be a multiple of 9 and the proof is complete.