On a square table of by cells we place a finite number of napkins that each cover a square of by cells. In each cell we write the number of napkins covering it, and we record the maximal number of cells that all contain the same nonzero number. Considering all possible napkin configurations, what is the largest value of ?
Problem 1920
Official solutions — 2
Solution 1
Let , then . We begin with an example showing that there can exist cells carrying the same positive number.

To describe it, we number the columns from the left to the right and the rows from the bottom to the top by . We will denote each napkin by the coordinates of its lower left cell. There are four kinds of napkins: first, we take all napkins with ; second, we use all napkins with ; third, we use all napkins with ; and finally the napkin . Different groups of napkins are shown by different types of hatchings in the picture.
Now except for those squares that carry two or more different hatchings, all squares have the number written into them. The number of these exceptional cells is easily computed to be .
We are left to prove that is an upper bound for the number of cells containing the same number. Consider any configuration of napkins and any positive integer . Suppose there are cells with a number different from . Then it suffices to show . Throughout the solution, a line will mean either a row or a column.
Consider any line . Let be the numbers written into its consecutive cells. For , let . Note that have terms each, while have terms each. Every napkin intersecting contributes exactly to each ; hence the number of all those napkins satisfies . Call the line rich if and poor otherwise.
Suppose now that is rich. Then in each of the sums there exists a term greater than ; consider all these terms and call the corresponding cells the rich bad cells for this line. So, each rich line contains at least cells that are bad for this line.
If, on the other hand, is poor, then certainly so in each of the sums there exists a term less than ; consider all these terms and call the corresponding cells the poor bad cells for this line. So, each poor line contains at least cells that are bad for this line.
Let us call all indices congruent to , or modulo small, and all other indices, i.e. those congruent to , or modulo , big. Recall that we have numbered the columns from the left to the right and the rows from the bottom to the top using the numbers ; we say that a line is big or small depending on whether its index is big or small. By definition, all rich bad cells for the rows belong to the big columns, while the poor ones belong to the small columns, and vice versa.
In each line, we put a strawberry on each cell that is bad for this line. In addition, for each small rich line we put an extra strawberry on each of its (rich) bad cells. A cell gets the strawberries from its row and its column independently.
Notice now that a cell with a strawberry on it contains a number different from . If this cell gets a strawberry by the extra rule, then it contains a number greater than . Moreover, it is either in a small row and in a big column, or vice versa. Suppose that it is in a small row, then it is not bad for its column. So it has not more than two strawberries in this case. On the other hand, if the extra rule is not applied to some cell, then it also has not more than two strawberries. So, the total number of strawberries is at most .
We shall now estimate in a different way. For each of the small lines, we have introduced at least strawberries if it is rich and at least strawberries if it is poor, so at least strawberries in any case. Similarly, for each of the big lines, we put at least strawberries. Summing over all lines we obtain
as desired.
Solution 2
We present a different proof of the estimate which is the hard part of the problem. Let , , ; so the table size is , and the napkin size is . Fix any positive integer and call a cell vicious if it contains a number distinct from . We will prove that there are at least vicious cells.
Firstly, we introduce some terminology. As in the previous solution, we number rows and columns and we use the same notions of small and big indices and lines; so, an index is small if it is congruent to one of the numbers modulo . The numbers will be known as residues. For two residues and , we say that a cell is of type if the index of its row is congruent to and the index of its column to modulo . The number of vicious cells of this type is denoted by .
Let be two variables ranging over small residues and let be two variables ranging over big residues. A cell is said to be of class , or if its type is of shape , , , or , respectively. The numbers of vicious cells belonging to these classes are denoted in this order by , and . Observe that each cell belongs to exactly one class.
Claim 1. We have
Proof. Consider an arbitrary small row . Denote the numbers of vicious cells on belonging to the classes and by and , respectively. As in the previous solution, we obtain that or . So in each case we have .
Performing this argument separately for each small row and adding up all the obtained inequalities, we get . Interchanging rows and columns we similarly get . Summing these inequalities and dividing by we get what we have claimed.
Claim 2. Fix two small residues and two big residues . Then .
Proof. Each napkin covers exactly one cell of type . Removing all napkins covering a vicious cell of this type, we get another collection of napkins, which covers each cell of type either or times depending on whether the cell is vicious or not. Hence napkins are left and throughout the proof of Claim 2 we will consider only these remaining napkins. Now, using a red pen, write in each cell the number of napkins covering it. Notice that a cell containing a red number greater than is surely vicious.
We call two cells neighbors if they can be simultaneously covered by some napkin. So, each cell of type has not more than four neighbors of type , while each cell of type has not more than two neighbors of each of the types and . Therefore, each red number at a cell of type does not exceed , while each red number at a cell of type does not exceed .
Let , and be the numbers of cells of type whose red number belongs to , , and , respectively. All these cells are vicious, hence . The red numbers appearing in cells of type clearly sum up to . Bounding each of these numbers by a multiple of we get
i.e.
So, to prove the claim it suffices to prove that .
For a cell of type and a cell of type we say that forces if there are more than napkins covering both of them. Since each red number in a cell of type does not exceed , it cannot be forced by more than one cell.
On the other hand, if a red number in a -cell belongs to , then it forces at least one of its neighbors of type (since the sum of red numbers in their cells is greater than ). Analogously, a -cell with the red number in forces both its neighbors of type , since their red numbers do not exceed . Therefore there are at least forced cells and clearly all of them are vicious, as desired.
Claim 3. We have
Proof. Averaging the previous result over all possibilities for the quadruple , we get . Due to the symmetry between rows and columns, the same estimate holds with replaced by . Averaging these two inequalities we arrive at our claim.
Now let us multiply (2) by , multiply (1) by and add them; we get
.
The left-hand side is exactly , while the right-hand side does not exceed since . Hence we come to the desired inequality.