Maths Olympiad Prep

Library / /73 of 84

, 2014

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:

For integers m,n1m, n \geq 1, let A(n,m)A(n, m) be the number of sequences (a1,,anm)(a_{1}, \cdots, a_{n m}) of integers satisfying the following two properties:

(a) Each integer kk with 1kn1 \leq k \leq n occurs exactly mm times in the sequence (a1,,anm)(a_{1}, \cdots, a_{n m}).

(b) If i,ji, j, and kk are integers such that 1inm1 \leq i \leq n m and 1jkn1 \leq j \leq k \leq n, then jj occurs in the sequence (a1,,ai)(a_{1}, \cdots, a_{i}) at least as many times as kk does.

For example, if n=2n=2 and m=5m=5, a possible sequence is (a1,,a10)=(1,1,2,1,2,2,1,2,1,2)(a_{1}, \cdots, a_{10})=(1,1,2,1,2,2,1,2,1,2). On the other hand, the sequence (a1,,a10)=(1,2,1,2,2,1,1,1,2,2)(a_{1}, \cdots, a_{10})=(1,2,1,2,2,1,1,1,2,2) does not satisfy property (2) for i=5,j=1i=5, j=1, and k=2k=2.

Prove that A(n,m)=A(m,n)A(n, m)=A(m, n).

Solutions — 2

Solution 1

Solution:

We show that A(n,m)A(n, m) is equal to the number of standard Young tableaux with nn rows and mm columns (i.e., fillings of an n×mn \times m matrix with the numbers 1,2,,nm1,2, \ldots, n m so that numbers are increasing in each row and column).

Consider the procedure where every time a kk appears in the sequence, you add a number to the leftmost empty spot of the kk-th row. Doing this procedure will result in a valid standard Young tableau. The entries are increasing along every row because new elements are added from left to right. The elements are also increasing along every column. This is because the condition about the sequences implies that there will always be at least as many elements in row ii as there are in row jj for i<ji<j. At the end of this procedure, the Young tableau has been filled because each of the nn numbers has been added mm times.

Now, consider an n×mn \times m standard Young tableau. If the number pp is in row kk, you add a kk to the sequence. This will produce a valid sequence. To see this, suppose that pp appears in the entry (x,y)(x, y). Then all of the entries (q,y)(q, y) where q<xq<x have already been added to the sequence because they must contain entries less than pp. Thus, the numbers 11 through x1x-1 have all already been added at least yy times. Then, when we process pp, we are adding the yy-th xx, which is valid. At the end of this procedure, nn numbers have been added mm times to the sequence.

The two procedures given above are inverses of each other. Thus, A(n,m)A(n, m) is equal to the number of n×mn \times m standard Young tableaux. For every n×mn \times m tableau, we can transpose it to form an m×nm \times n tableau. The number of such tableaux is A(m,n)A(m, n). Thus, A(n,m)=A(m,n)A(n, m)=A(m, n).

Solution 2

Solution:

We can also form a direct bijection to show A(n,m)=A(m,n)A(n, m)=A(m, n), as follows. Suppose that a=(a1,,amn)a=(a_{1}, \ldots, a_{m n}) is a sequence satisfying properties 1 and 2. We will define a sequence f(a)=(b1,,bnm)f(a)=(b_{1}, \ldots, b_{n m}) satisfying the same properties 1 and 2, but with mm and nn switched.

The bijection ff is simple: just define bib_{i}, for 1inm1 \leq i \leq n m, to be equal to the number of jj with 1ji1 \leq j \leq i such that aj=aia_{j}=a_{i}. In other words, to obtain f(a)f(a) from aa, replace the kk-th occurrence of each number with the number kk. For example, if n=2n=2 and m=5m=5, then f(1,1,2,1,2,2,1,2,1,2)=(1,2,1,3,2,3,4,4,5,5)f(1,1,2,1,2,2,1,2,1,2)=(1,2,1,3,2,3,4,4,5,5).

First, it is clear that f(a)f(a) satisfies property 1 with mm and nn switched. Indeed, it follows directly from the definition of ff that for each pair (k1,k2)(k_{1}, k_{2}) with 1k1n1 \leq k_{1} \leq n and 1k2m1 \leq k_{2} \leq m, there is exactly one index ii for which (ai,bi)=(k1,k2)(a_{i}, b_{i})=(k_{1}, k_{2}). This implies the desired result.

Second, we show that f(a)f(a) satisfies property 2 with mm and nn switched. For this, suppose that i,j,ki, j, k are integers with 1inm1 \leq i \leq n m and 1jkm1 \leq j \leq k \leq m. Then, the number of times that kk appears in the sequence (b1,,bi)(b_{1}, \ldots, b_{i}) is exactly equal to the number of integers \ell with 1n1 \leq \ell \leq n such that \ell appears at least kk times in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}). Similarly, the number of times that jj appears in the sequence (b1,,bi)(b_{1}, \ldots, b_{i}) is exactly equal to the number of integers \ell with 1n1 \leq \ell \leq n such that \ell appears at least jj times in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}). In particular, the number jj appears in the sequence (b1,,bi)(b_{1}, \ldots, b_{i}) at least as many times as kk does.

Now, we show that ff is a bijection. We claim that ff is actually an involution; that is, f(f(a))=af(f(a))=a. (Note in particular that this implies that ff is a bijection, and its inverse is itself.)

Fix an index ii with 1imn1 \leq i \leq m n. Let =ai\ell=a_{i} and k=bik=b_{i}; then, kk is the number of times that the term \ell appears in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}). It is enough to show that \ell is the number of times that the term kk appears in the sequence (b1,,bi)(b_{1}, \ldots, b_{i}). First, note that by definition of ff, the number of times kk appears in the sequence (b1,,bi)(b_{1}, \ldots, b_{i}) is equal to the number of integers jj such that the sequence (a1,,ai)(a_{1}, \ldots, a_{i}) contains the number jj at least kk times.

Now, \ell occurs exactly kk times in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}). So by property 2, each jj with jj \leq \ell appears at least kk times in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}). Furthermore, each jj with j>j>\ell appears at most k1k-1 times in the sequence (a1,,ai1)(a_{1}, \ldots, a_{i-1}) and thus appears at most k1k-1 times in the sequence (a1,,ai)(a_{1}, \ldots, a_{i}) as well (because ai=a_{i}=\ell). Therefore, the number of integers jj such that the sequence (a1,,ai)(a_{1}, \ldots, a_{i}) contains the number jj at least kk times is exactly equal to \ell. This shows the desired result.

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.