Maths Olympiad Prep

Library / /444 of 462

Combinatorics Difficulty 7.5 National Olympiad, round 2 Prove it Ireland

We say that a rectangle with side lengths aa and bb fits inside a rectangle with side lengths cc and dd if either (ac)(a \le c) and (bd)(b \le d) or (ad)(a \le d) and (bc)(b \le c). For instance, a rectangle with side lengths 11 and 55 fits inside another rectangle with side lengths 11 and 55, and also fits inside a rectangle with side lengths 66 and 22.
Suppose SS is a set of 20192019 rectangles, all with integer side lengths between 11 and 20182018 inclusive. Show that there are three rectangles AA, BB, and CC in SS such that AA fits inside BB, and BB fits inside CC.

Solutions — 2

Solution 1

We write RRR \le R' if RR fits inside RR'. (Note that \le is a preorder: it is reflexive and transitive. It might not be a partial order because two different rectangles might have matching widths and lengths.)
We call an nn-element subset CC of SS an nn-chain if its elements can be listed in "increasing order", i.e. in the form
R1R2Rn R_1 \le R_2 \le \dots \le R_n
An nn-chain is allowed to contain congruent rectangles; for example, all nn rectangles R1,R2,,RnR_1, R_2, \dots, R_n may be congruent to each other. We call ASA \subset S an anti-chain if it contains no 2-chains. In particular, no two rectangles are congruent in an anti-chain. For each rectangle RR in SS, we select a chain GRGR with RR as a maximal element, and which has maximal cardinality among chains having RR as a maximal element. Let f(R)f(R) be the size of GRGR.
Claim 1: The subset f1(n)f^{-1}(n) is an anti-chain for all nNn \in N.
To prove this claim, it suffices to show that if f(R)=f(R)f(R) = f(R') for distinct R,RSR, R' \in S, then {R,R}\{R, R'\} is an anti-chain. But this is easy since if f(R)=f(R)f(R) = f(R') and if RRR' \le R, then SR{R}S_R \cup \{R\} is a chain with maximal element RR and size f(R)+1f(R) + 1, contradicting the definition of f(R)f(R).
Claim 2: An anti-chain AA of SS has at most 10091009 elements.
Let AA be an anti-chain with nn elements: A={R1,,Rn}A = \{R_1, \dots, R_n\}, where the width and length of RiR_i are wiw_i and lil_i, respectively, with wiliw_i \le l_i.

We assume that the rectangles are ordered so that wiwjw_i \le w_j for iji \le j. If wi=wjw_i = w_j for some i<ji < j, then it is clear that {Ri,Rj}\{R_i, R_j\} is a chain, contradicting our anti-chain assumption. Similarly, we deduce that lil_i must be strictly decreasing in ii. Thus, we have numbers
w1<w2<<wnln<<l2<l1. w_1 < w_2 < \dots < w_n \le l_n < \dots < l_2 < l_1.
There are at least 2n12n - 1 distinct numbers above, and all are between 11 and 20182018, so 2n120182n - 1 \le 2018 and we deduce Claim 2.
Combining Claim 1 and Claim 2, we see that f1(1)f1(2)f^{-1}(1) \cup f^{-1}(2) has at most 20182018 elements. Since this is less than the cardinality of SS, we must have f(R)3f(R) \ge 3 for some RSR \in S, as required.

Solution 2

We represent a rectangle by the ordered pair (x,y)(x, y) of its side lengths, where xyx \le y. We shall write (x1,y1)(x2,y2)(x_1, y_1) \le (x_2, y_2) if x1x2x_1 \le x_2 and y1y2y_1 \le y_2. When the xix_i are positive, this means that a rectangle with side lengths x1x_1 and y1y_1 fits inside a rectangle with side lengths x2x_2 and y2y_2. A set of ordered pairs will be called a chain if its elements can be listed as R1,R2,,RnR_1, R_2, \dots, R_n such that RiRjR_i \le R_j whenever iji \le j.
Let T(m,n)T(m, n) be the set of all pairs (x,y)(x, y) of integers that satisfy mxynm \le x \le y \le n. Of course, T(m,n)T(m, n) is empty if m>nm > n and it contains exactly one element, namely (m,m)(m, m), if m=nm = n. More generally, if d=nm0d = n - m \ge 0, the number of elements in T(m,n)T(m, n) is equal to the triangular number
td+1=i=1d+1i=12(d+1)(d+2). t_{d+1} = \sum_{i=1}^{d+1} i = \frac{1}{2}(d+1)(d+2).
To see this, observe that, for i=1,2,,d+1i = 1, 2, \dots, d+1, the pair (x,m+i1)(x, m + i - 1) is in T(m,n)T(m, n) exactly for ii values of xx, namely x=m,m+1,,m+i1x = m, m+1, \dots, m+i-1.
Because we do not identify congruent rectangles that are different, some pairs (x,y)(x, y) may appear more than once in the set SS mentioned in the problem. We will describe SS by selecting a subset S0S_0 of T(1,2018)T(1, 2018) and attaching to each of its elements a multiplicity. Multiplicities are positive integers and they represent the number of rectangles in SS that have the given side lengths.
More formally, SS is represented by S0T(1,2018)S_0 \subset T(1, 2018) together with a map μ:S0Z+\mu: S_0 \to \mathbb{Z}_+ that takes values in the positive integers. We will then write S=(S0,μ)S = (S_0, \mu). The number of elements in SS is equal to RS0μ(R)\sum_{R \in S_0} \mu(R). A chain in SS is a chain in S0S_0, but when we calculate its length, we take multiplicities into account. For example, if S0S_0 contains just one element but the multiplicity of it is three, then SS contains a chain of length three, consisting of three congruent rectangles, the side lengths of which give the element of S0S_0.

We are going to prove the following slightly more general statement by induction on d=nm1d = n - m \ge 1 for odd dd.
Claim. If S=(S0,μ)S = (S_0, \mu) where S0S_0 is a subset of T(m,n)T(m,n), nmn - m is odd and μ:S0Z+\mu: S_0 \to \mathbb{Z}_+ is a map such that RS0μ(R)nm+2\sum_{R \in S_0} \mu(R) \ge n - m + 2, then SS contains a chain with at least three elements.
Note that the validity of this claim depends on d=nmd = n - m only and not on the individual values of mm and nn, because (x1k,y1k)(x2k,y2k)(x_1 - k, y_1 - k) \le (x_2 - k, y_2 - k) is equivalent to (x1,y1)(x2,y2)(x_1, y_1) \le (x_2, y_2) for any integer kk.
Let E(m,n)E(m, n) be the subset of T(m,n)T(m, n) that consists of those pairs (x,y)(x, y) for which x=mx = m or y=ny = n. If d=nm=1d = n - m = 1 we have E(m,n)=T(m,n)E(m, n) = T(m, n). Note that E(m,n)E(m, n) is a chain for any d=nm1d = n - m \ge 1, because
(m,m)(m,m+1)(m,n1)(m,n)(m+1,n)(n,n). (m, m) \le (m, m+1) \le \dots \le (m, n-1) \le (m, n) \le (m+1, n) \le \dots \le (n, n).
A crucial observation for the proof is that for d2d \ge 2 the set T(m,n)T(m, n) is the disjoint union of E(m,n)E(m, n) and T(m+1,n1)T(m+1, n-1).
In the inductive step we use the claim for d2d-2 when we prove the claim for dd. Because we deal with odd dd only, it suffices to consider d=1d=1 in the base case of the induction.
If d=1d=1, the set T(m,n)=T(m,m+1)T(m, n) = T(m, m+1) contains three elements, namely (m,m)(m,m+1)(m+1,m+1)(m, m) \le (m, m+1) \le (m+1, m+1), so it is a chain. Therefore, any possible set SS in this case is a chain as well.
For the inductive step, we assume that S=(S0,μ)S' = (S_0, \mu') contains a three-element chain if it contains at least nm+2n' - m' + 2 elements, S0T(m,n)S'_0 \subset T(m', n') and 0<nm=nm20 < n' - m' = n - m - 2.
Suppose S=(S0,μ)S = (S_0, \mu) contains at least nm+2n - m + 2 elements and S0T(m,n)S_0 \subset T(m, n). We consider S0E(m,n)S_0 \cap E(m, n) and S0T(m+1,n1)S_0 \cap T(m+1, n-1). Because E(m,n)E(m, n) is a chain, SE(m,n)S \cap E(m, n), which is S0E(m,n)S_0 \cap E(m, n) with the multiplicities given by μ\mu, is a chain as well. If this set with multiplicities contains at least three elements, the proof is finished. Otherwise, ST(m+1,n1)S \cap T(m+1, n-1), i.e. S0T(m+1,n1)S_0 \cap T(m+1, n-1) equipped with the multiplicities given by μ\mu, contains at least nm+22=(n1)(m+1)+2n - m + 2 - 2 = (n-1) - (m+1) + 2 elements, hence it contains a chain with at least three elements by the inductive assumption. This proves the claim.
The statement of the problem follows now because d=nm=20181=2017d = n - m = 2018 - 1 = 2017 for T(1,2018)T(1, 2018) and SS is supposed to contain 2019=nm+22019 = n - m + 2 elements.

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.