Maths Olympiad Prep

Library / /4 of 4

, 2020

Combinatorics Difficulty 8.9 Shortlist Prove it Netherlands

Suppose kk and nn are positive integers such that kn2k1k \le n \le 2k - 1. Julian has a large pile of rectangular k×1k \times 1-tiles. Merlijn picks a positive integer mm, and receives from Julian mm tiles to place on an n×nn \times n-board. On each tile, Julian writes whether this tile should be placed horizontally or vertically. Tiles may not overlap on the board, and they must fit entirely inside the board. What is the largest number mm that Merlijn can pick while still guaranteeing he can put all tiles on the board according to Julian's instructions?

Solution

We show that the largest mm Merlijn can pick is min(n,3(nk)+1)\min(n, 3(n-k)+1). First we show that mmin(n,3(nk)+1)m \le \min(n, 3(n-k)+1). If Merlijn asks for n+1n+1 tiles, Julian can instruct Merlijn to place them all horizontally. As n2k1n \le 2k-1, it is impossible to place more than one tile horizontally on a single row, so Merlijn would need at least n+1n+1 rows, this is a contradiction. Therefore mnm \le n.

Now suppose that Merlijn asks for 3(nk)+23(n-k)+2 tiles. Julian can now instruct Merlijn to place nk+1n-k+1 tiles vertically and 2n2k+12n-2k+1 tiles horizontally.

Note that vertical tiles always cover the k(nk)=2kn1k - (n-k) = 2k - n \ge 1 rows in the middle of the board. Therefore the vertical tiles together cover at least nk+1n-k+1 squares in each of these rows in the middle of the board, leaving at most k1k-1 squares for the horizontal tiles. Therefore no horizontal tiles fit in these middle rows, and the 2n2k+12n-2k+1 horizontal tiles need to fit in the remaining n(2kn)=2n2kn-(2k-n) = 2n-2k rows. This is a contradiction. Therefore we must have m3(nk)+1m \le 3(n-k)+1. It follows that mmin(n,3(nk)+1)m \le \min(n, 3(n-k)+1).

Now we show that it is always possible to place a pile of min(n,3(n+k)+1)\min(n, 3(n+k)+1) tiles on the board. We first consider two special configurations. Put nkn-k horizontal tiles into a (nk)×k(n-k) \times k-rectangle at the bottom left. To the right of that, we can fit nkn-k more vertical tiles into a k×(nk)k \times (n-k)-rectangle in the bottom right. Above that rectangle, we can fit nkn-k more horizontal tiles into a (nk)×k(n-k) \times k-rectangle in the top right. Finally, to the left of that, we can fit nkn-k more vertical tiles into a k×(nk)k \times (n-k)-rectangle in the top left. In this way, we can fit 2(nk)2(n-k) horizontal and 2(nk)2(n-k) vertical tiles on the board.

One other way to cover the board is as follows. Place nn vertical tiles in the top left, covering a k×nk \times n-rectangle. Below that there is room for nkn-k horizontal tiles to fit in an (nk)×k(n-k) \times k-rectangle. In this way, we can fit nn vertical and nkn-k horizontal tiles on the board.

Figure 1

Suppose that Merlijn receives AA horizontal tiles and BB vertical tiles from Julian. Then we have A+BnA+B \le n and A+B3(nk)+1A+B \le 3(n-k)+1. Without loss of generality we assume that ABA \le B. If AnkA \le n-k, then Merlijn uses the second special configuration, omitting tiles he doesn't have. As BnB \le n, this works. Else, Ank+1A \ge n-k+1, so B3(nk)+1A3(nk)+1(nk+1)=2(nk)B \le 3(n-k)+1-A \le 3(n-k)+1-(n-k+1) = 2(n-k). As ABA \le B, we also have A2(nk)A \le 2(n-k), and Merlijn can use the first configuration, omitting tiles he doesn't have. Therefore it is always possible for Merlijn to place min(n,3(nk)+1)\min(n, 3(n-k)+1) tiles on the board. \square

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.