Maths Olympiad Prep

Library / /43 of 46

, 2015

Combinatorics Difficulty 7.4 National Olympiad, round 2 Prove it Japan

Let aa be a positive integer. Show the following assertion is valid for sufficiently large integer nn:
From a grid of squares extending to ±\pm\infty in both xx- and yy-directions, choose nn unit (i.e., 1×11 \times 1) squares and color them black. Let KK be the number of a×aa \times a square blocks which contain exactly aa black unit squares. Then the maximum possible value KK can take is a(n+1a)a(n+1-a).
Here, by the statement "An assertion is valid for sufficiently large nn", we mean that there exists a positive integer NN for which the assertion is valid for all nNn \ge N.

Solution

For a pair of integers u,vu, v and a positive integer mm we write uv(modm)u \equiv v \pmod m to mean that uvu - v is divisible by mm.

Let us call an a×aa \times a square box of the given grid a region. When nan \ge a, if we color black all of n×1n \times 1 square boxes stacked consecutively on a vertical strip, the rectangular patch of the grid consisting of n×(2a1)n \times (2a-1) squares formed by the nn black 1×11 \times 1 vertically stacked boxes and their 2a22a-2 horizontal translates ((1,2,,a1)(1, 2, \dots, a-1) to the left and (1,2,,a1)(1, 2, \dots, a-1) to the right) has the property that any region contained in the interior of the patch satisfies the requirement of the problem. So, we see that K=a(n+1a)K = a(n+1-a) is satisfied.

Next, we show that for all sufficiently large nn, we get Ka(n+1a)K \le a(n+1-a). For a region RR, having xx black 1×11 \times 1 squares, define
L(R)={x,if xa1,xa,if xa. \mathcal{L}(R) = \begin{cases} x, & \text{if } x \le a-1, \\ x-a, & \text{if } x \ge a. \end{cases}
and call it a loss for RR. There are a2na^2 n pairings of a black square and a region containing it. Let L=L(R)L = \sum \mathcal{L}(R), where the sum is taken over all regions containing black boxes. For KK regions RR that satisfy the requirement of the problem L(R)=0\mathcal{L}(R) = 0, while other regions RR' appearing as a summand for the definition of LL above, contain more black squares than L(R)\mathcal{L}(R'), we have aKa2nLaK \le a^2 n - L. So, it is sufficient to show that there exists an NN such that if nNn \ge N, then La2(a1)L \ge a^2(a-1).

So, let N=(a2(a1)a)2+1N = (a^2(a-1) - a)^2 + 1. We will show that if nNn \ge N, then La2(a1)L \ge a^2(a-1) holds. In the sequel, let us call contiguous aa rows of squares in the grid a horizontal line and contiguous aa columns of squares in the grid a vertical line. Then we see that either a2(a1)a^2(a-1) or more horizontal lines or a2(a1)a^2(a-1) or more vertical lines will contain at least one black square. Therefore, if we assume that L<a2(a1)L < a^2(a-1) holds, then at least one of the horizontal lines in the former case, or at least one vertical in the latter case must have the property that L(R)=0\mathcal{L}(R) = 0 must hold for any region RR contained in it. (Note that by definition L(R)=0\mathcal{L}(R) = 0 if the region RR does not contain any black square.) By symmetry, we may and do assume that such a horizontal line exists. Take one such horizontal line and call the lowest row the 0-th row and the row yy steps above the 0-th row the yy-th row, where yy is a positive integer. Let AA be a black box in this horizontal line lying on the left-most position. Among the regions contained in this horizontal line, those containing AA in the rightmost column must contain aa black squares, we see that every square in the column where AA is located must be black-colored. Furthermore, among regions contained in this horizontal line and containing AA in their left-most column, all the a1a-1 columns lying to the right of the column containing AA do not contain any black squares, since the column containing AA has a black square. (Since AA is the black square having the left-most position in the horizontal line, all of the a1a-1 columns lying to the left of the column containing AA contain no black squares either.)

Let us next show that for any vertical line containing AA, the sum of the L(R)\mathcal{L}(R) for all the regions RR contained inside of the vertical line is at least a(a1)a(a-1). Fix one such vertical line, and let RyR_y be a region contained in the vertical line and its lowermost row is the yy-th row. Let f(y)=L(Ry)f(y) = \mathcal{L}(R_y) and denote by g(y)g(y) the number of black squares contained in RyR_y. Then we have f(y)g(y)(moda)f(y) \equiv g(y) \pmod a. Suppose (as+t)(as+t)-th row (0t<s0 \le t < s) is the uppermost row containing a black square, and bb is the number of black squares lying on and above the 0-th row. If we denote by clc_l for l=1,2,,al=1, 2, \dots, a the remainder obtained when i=0s+1f(ai+l)\sum_{i=0}^{s+1} f(ai + l) is divided by aa, then we have
cli=0s+1g(ai+l)bl(moda), c_l \equiv \sum_{i=0}^{s+1} g(ai+l) \equiv b-l \pmod a,
which shows that {c1,c2,,ca}\{c_1, c_2, \dots, c_a\} is a permutation of {0,1,2,,a1}\{0, 1, 2, \dots, a-1\}. Therefore, we have
y=1as+tf(y)l=1acl=a(a1)2. \sum_{y=1}^{as+t} f(y) \ge \sum_{l=1}^{a} c_l = \frac{a(a-1)}{2}.
Similarly, if we add the values of f(y)f(y) for y<0y < 0, we get the sum to be a(a1)2\ge \frac{a(a-1)}{2} as well. Therefore, the sum taken over all regions lying inside of the vertical is greater than or equal to a(a1)a(a-1).

Since there are aa vertical lines containing AA we conclude that La2(a1)L \ge a^2(a-1) and therefore, Ka(n+1a)K \le a(n+1-a) must hold, and this completes the proof.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.