Maths Olympiad Prep

Library / /15 of 18

Combinatorics Difficulty 7.5 National olympiad, round 2 Prove it Argentina

On an infinite sheet of grid paper 999 grid squares are colored black. Call special a rectangle with sides on grid lines if it has two black opposite corner cells (rectangles with side 1 are included). Let NN be the maximum number of black cells in a special rectangle for a given configuration. Find the minimum of NN over all configurations.

Solution

The minimum of NN is 201.

In an arbitrary configuration take the minimal rectangle RR that contains all black cells. Choose a black cell on every side (there is at least one by minimality) and label these A,B,C,DA, B, C, D as in the first figure. Consider the special rectangles [AB],[BC],[CD],[DA][AB], [BC], [CD], [DA] and [AC][AC]. Here we write [XY][XY] for the grid rectangle with opposite corner cells XX and YY (they determine the rectangle uniquely). Note that if the part of RR to the left of rectangle [AC][AC] is ignored, the remainder is covered by [AB],[BC][AB], [BC] and [AC][AC]. Likewise if the part of RR to the right of [AC][AC] is ignored, the remainder is covered by [CD],[DA][CD], [DA] and [AC][AC]. Hence the entire RR is covered by the five rectangles, with certain overlaps. Each of cells AA and CC belongs to 3 of the 5 rectangles; each of BB and DD belongs to 2 of them. (There may be other black cells contained in more than one rectangle.) Hence if x1,,x5x_1, \dots, x_5 are the numbers of black cells in the 5 rectangles we obtain x1++x5995+32+22=1005x_1 + \dots + x_5 \ge 995 + 3 \cdot 2 + 2 \cdot 2 = 1005. This is because the sum counts each black cell except A,B,C,DA, B, C, D at least once, each of BB and DD at least twice, and each of AA and CC at least thrice. It follows that one of x1,,x5x_1, \dots, x_5 is at least 10055=201\frac{1005}{5} = 201. So there is always a special rectangle with at least 201 black cells. Therefore N201N \ge 201 for every configuration.

We tacitly assumed that A,B,C,DA, B, C, D are distinct. This can be ensured indeed unless there are no black cells on some two adjacent sides of RR except their common corner cell. But then it is clear that RR can be covered by at most 3 special rectangles like the ones above, so N>201N > 201. (We ignore the trivial case where RR has a side 1.)

Now we show an example where N=201N = 201. In the second figure the 999 black squares are inside a big 3k×3k3k \times 3k grid square, with k>400k > 400. Four groups 1, 2, 3, 4 of 200 black cells each are placed in the corner k×kk \times k squares as shown, in a diagonal-like manner.

Figure 1

Figure 2

Let XX and YY be opposite black corner cells of a special rectangle TT which contains mm black cells. If XX and YY are in the same group it is clear that m200m \le 200. If XX and YY are in adjacent groups among 1, 2, 3, 4 then TT intersects only these two groups. In addition observe that one of the two groups has exactly one cell in TT (this is XX or YY). Thus m200+1=201m \le 200 + 1 = 201.

Let XX and YY be in opposite corner groups, say 1 and 3. Then TT does not intersect groups 2 and 4. Moreover XX and YY are the only black cells of TT from groups 1 and 3. The remaining ones are all in the central part. Hence m199+2=201m \le 199 + 2 = 201. Finally let one of XX and YY be in the central group, say XX. If YY is also there then m199m \le 199. And if YY is in a corner group then YY is the only black cell of TT out of the central part. So m199+1=200m \le 199 + 1 = 200 which completes the solution.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.