Maths Olympiad Prep

Track / Stage 8 / 140 of 180 #2320 of 2444

Problem 2320

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.7 Prove it United States — Team Selection Test · United States · 2009

Let mm and nn be positive integers. Mr. Fat has a set SS containing every rectangular tile with integer side lengths and area a power of 22. Mr. Fat also has a rectangle RR with dimensions 2m×2n2^m \times 2^n and a 1×11 \times 1 square removed from one of the corners. Mr. Fat wants to choose m+nm + n rectangles from SS, with respective areas 20,21,,2m+n12^0, 2^1, \dots, 2^{m+n-1}, and then tile RR with the chosen rectangles. Prove that this can be done in at most (m+n)!(m+n)! ways.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solutions — 2

Solution 1

Solution 1. We call each of the rectangles in SS a tile, and the tile with area 20=12^0 = 1 the unit tile. We may assume without loss of generality that the missing 1×11 \times 1 square in RR is the top-left corner. Suppose Mr. Fat walks on the path of squares starting from the top right corner square and going left along the top row of squares until the missing square is stepped on, then turning and going down along the left column of squares to the bottom left square. For a given tiling, let a1,a2,a_1, a_2, \dots be the sequence of areas of the tiles he steps on by walking along this path from start to finish. We will show that
(a) every tile is stepped on, that is, a1,a2,,am+na_1, a_2, \dots, a_{m+n} is a rearrangement of 20,21,,2m+n2^0, 2^1, \dots, 2^{m+n}; and
(b) any valid sequence a1,,ana_1, \dots, a_n uniquely determines the tiling.
Since there are at most (m+n)!(m+n)! ways to order the m+nm+n possible areas, this would finish the problem.

To establish (a), we induct on m+nm+n. It is trivial for m+n=1m+n=1. Suppose it is true for m+n1m+n-1. We show it holds for m+nm+n. Consider the tile with area 2m+n12^{m+n-1}, and call it TT. If TT has dimensions 2a×2b2^a \times 2^b, then we have a+b=m+n1a+b=m+n-1 and since TT is contained in RR, ama \le m and bnb \le n. Thus the only two possibilities for the dimensions of TT are 2m×2n12^m \times 2^{n-1} or 2m1×2n2^{m-1} \times 2^n. In other words, TT must stretch over either the entire length or entire width of RR. It follows that TT must be hit on our walk.

Now, consider the rectangle formed by removing TT completely from RR and, if this breaks RR into two pieces, sliding them together so that the two newly formed edges coincide. This forms a tiling of a smaller rectangle RR' with dimensions 2x×2y2^x \times 2^y for x+y=m+n1x+y=m+n-1, and the areas hit along the walk corresponding to RR' are precisely those areas encountered along the walk on RR other than TT. By the inductive hypothesis, all of the areas are stepped on, and so (a) holds for all rectangles RR.

To establish (b), we again induct on m+nm+n. It is trivial for m+n=1m+n=1. Suppose it is true for m+n1m+n-1. Let a1,a2,,am+na_1, a_2, \dots, a_{m+n} be a valid ordering of the areas {20,21,,2m+n1}\{2^0, 2^1, \dots, 2^{m+n-1}\}, that is, an ordering generated by walking along a tiling.

Suppose 2m+n12^{m+n-1} appears before 202^0 in a1,,am+na_1, \dots, a_{m+n}. Consider any tiling that generates this ordering and call the largest tile TT. We must hit TT before the unit tile. Hence, the part of the rectangle below or to the left of TT has odd area, since all other tiles in the tiling have even area. In particular, this part must contain the missing corner. The corner is in the top-left, so this part can't be below the largest rectangle. Therefore, it is to the left of TT. Hence TT has the same height as RR. Likewise, if we hit the unit tile before TT, we may use the same reasoning to show that TT would have the same width as RR.

Therefore, depending on whether 2m+n12^{m+n-1} appears before or after 202^0 in the ordering, we may uniquely determine whether TT spans an entire column or an entire row in any tiling achieving the given ordering. This uniquely determines the dimension of the rectangle that is obtained by removing TT and sliding the two resulting parts together (if there are even two parts at all). Suppose that the dimensions of this rectangle are uniquely fixed to be 2a×2b2^a \times 2^b, where we must have a+b=m+n1a+b=m+n-1.

Now, remove 2m+n12^{m+n-1} to obtain an ordering of {20,21,,2m+n2}\{2^0, 2^1, \dots, 2^{m+n-2}\}. By the inductive hypothesis, there is a unique tiling of a 2a×2b2^a \times 2^b rectangle by these tiles. The position of 2m+n12^{m+n-1} in the given ordering then provides a unique way to insert a tile of area 2m+n12^{m+n-1} to reconstruct a tiling of the original 2m×2n2^m \times 2^n rectangle; that is, we know whether this tile spanned a column or a row and the ordering tells us the position along the top and left boundaries of the rectangle where it must be inserted. Finally, any tiling of the original 2m×2n2^m \times 2^n rectangle that generates the given ordering must be obtained by making this insertion. Since the tiling of our 2a×2b2^a \times 2^b rectangle was unique by induction, the entire tiling is unique, as desired.

Solution 2

Solution 2 (By Ricky Liu). We may assume without loss of generality that RR is missing its upper left corner. The left column of RR has length 2m12^m - 1, which cannot be written as a sum of fewer than mm powers of 22. Therefore, at least mm tiles intersect this column. Likewise, at least nn tiles intersect the top row. Since no tiles can intersect both the left column and the top row, we must have equality in both cases. Hence mm rectangles intersect the left column in 20,21,,2m12^0, 2^1, \dots, 2^{m-1} squares, and nn rectangles intersect the top row in 20,,2n12^0, \dots, 2^{n-1} squares.

We count tilings of RR with any m+nm+n rectangles A1,,Am,B1,,BnA_1, \dots, A_m, B_1, \dots, B_n such that AiA_i intersects the left column in 2i12^{i-1} squares and BjB_j intersects the top row in 2j12^{j-1} squares. The lower right corner of RR can lie in any of these m+nm+n rectangles, whose placement is then uniquely determined. Then the lower right corner of the remaining portion of RR can lie in any of the other m+n1m+n-1 rectangles, and so forth. It follows that there are exactly (m+n)!(m+n)! such tilings. Since all of our desired tilings have this form, this completes the proof.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.