Olympiad Maths Prep

Track / Stage 8 / 140 of 180 #1840 of 2000

Problem 1840

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

Let nn be a positive integer. Consider a triangular array of nonnegative integers as follows:
Figure 1

Call such a triangular array *stable* if for every 0i<j<kn0 \le i < j < k \le n we have
ai,j+aj,kai,kai,j+aj,k+1. a_{i,j} + a_{j,k} \le a_{i,k} \le a_{i,j} + a_{j,k} + 1.

For s1,,sns_1, \dots, s_n any nondecreasing sequence of nonnegative integers, prove there exists a unique stable triangular array such that the sum of all of the entries in row kk is equal to sks_k.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

We begin by proving a lemma on the stability of triangular arrays.

Lemma 3. Let TT be a stable triangular array with row sums s1,s2,,sns_1, s_2, \dots, s_n. Then there is a unique index ii such ai,na_{i,n} in TT can be increased by one to get a new stable triangular array T+T^+ with row sums s1,s2,,sn+1s_1, s_2, \dots, s_n + 1. Additionally, if sn>sn1s_n > s_{n-1}, there is also a unique index jj such that aj,na_{j,n} in TT can be decreased by one to get a new stable triangular array TT^- with row sums s1,s2,,sn1s_1, s_2, \dots, s_n - 1.

*Proof.* For 0i<jn10 \le i < j \le n-1 let xi,j=ai,nai,jaj,nx_{i,j} = a_{i,n} - a_{i,j} - a_{j,n}, and let xj,i=1xi,jx_{j,i} = 1 - x_{i,j}. Notice that all the xi,jx_{i,j} are either 0 or 1 by the fact that TT is stable. Consider these as entries of an n×nn \times n matrix MM with 0s down the diagonal, we get the adjacency matrix of a complete directed graph (also known as a tournament). Note that if we increase ai,na_{i,n} by 1 for some ii, this is the same as increasing all xi,kx_{i,k} by 1 for all kik \ne i. This preserves the condition of stable arrays if and only if all xi,kx_{i,k} are equal to 0. Likewise, decreasing aj,na_{j,n} by 1 requires all xj,kx_{j,k} to be 1. So we must find exactly one column of all 0s and exactly one column of all 1s in MM, excluding the diagonal entries.

We now show the tournament MM is transitive. If for i<j<ki < j < k we have xi,j=xj,k=0x_{i,j} = x_{j,k} = 0, then
0=xi,j+xj,k=ai,nai,jaj,kak,nai,nai,kak,n=xi,k, 0 = x_{i,j} + x_{j,k} = a_{i,n} - a_{i,j} - a_{j,k} - a_{k,n} \ge a_{i,n} - a_{i,k} - a_{k,n} = x_{i,k},
so xi,k=0x_{i,k} = 0. Similarly, if xi,j=xj,k=1x_{i,j} = x_{j,k} = 1, then
2=xi,j+xj,k=ai,nai,jaj,kak,nai,n+1ai,kak,n=xi,k+1, 2 = x_{i,j} + x_{j,k} = a_{i,n} - a_{i,j} - a_{j,k} - a_{k,n} \le a_{i,n} + 1 - a_{i,k} - a_{k,n} = x_{i,k} + 1,
so xi,k=1x_{i,k} = 1.

Since this tournament is transitive, it is well-known there exists exactly one ii such that xi,k=1x_{i,k} = 1 for all kik \neq i, and likewise exactly one jj such that xj,k=0x_{j,k} = 0 for all kjk \neq j. These are the desired columns.

It remains only to show that the condition that all the entries are nonnegative is preserved if sn>sn1s_n > s_{n-1}; this means we need to show aj,n>0a_{j,n} > 0. Suppose aj,n=0a_{j,n} = 0. All the other entries of row nn are nonnegative integers, this means aj,na_{j,n} will be less than all other elements after the decrement. We also know from above that decreasing aj,na_{j,n} by 1 will preserve the condition of being stable, implying that row nn is still non-increasing. Since aj,na_{j,n} will be the minimum after the decrement, j=n1j = n - 1. This in turn implies that xn1,k=1x_{n-1,k} = 1 for all kk, or rather xk,n1=0x_{k,n-1} = 0 for all kk. Therefore, ak,n=ak,n1+an1,n=ak,n1a_{k,n} = a_{k,n-1} + a_{n-1,n} = a_{k,n-1}. Summing these up for kk from 0 to n2n - 2 and remembering that an1,n=0a_{n-1,n} = 0, we get sn1=sns_{n-1} = s_n, a contradiction to the assumption that sn>sn1s_n > s_{n-1}. So aj,n>0a_{j,n} > 0, and the lemma is proven. □

To prove the problem, we induct on nn. The base case n=1n = 1 is clear, since a0,1a_{0,1} must be equal to s1s_1. Suppose it is true for n1n - 1, and consider an arbitrary nondecreasing sequence s1,s2,,sns_1, s_2, \dots, s_n. By the inductive hypothesis we can choose a unique (n1)(n-1)-row stable triangular array with entries ai,ja_{i,j} for 0i<jn10 \le i < j \le n - 1 that satisfy the row sums s1,s2,,sn1s_1, s_2, \dots, s_{n-1}. It remains to show there is a unique way to assign the elements of row nn, namely ai,na_{i,n} for 0in10 \le i \le n - 1, to satisfy the row sum sns_n while still keeping the array stable.

We now prove that we can uniquely assign row nn by another induction on sns_n. The base case is sn=sn1s_n = s_{n-1}. Note that ai,n1+an1,nai,na_{i,n-1} + a_{n-1,n} \le a_{i,n}. Summing this up for all ii from 0 to n2n - 2 gets that sn1+(n1)an1,nsnan1,ns_{n-1} + (n-1)a_{n-1,n} \le s_n - a_{n-1,n}. Since sn=sn1s_n = s_{n-1} and an1,n0a_{n-1,n} \ge 0, we must have equality, so the unique row nn that works is an1,n=0a_{n-1,n} = 0 and ai,n=ai,n1a_{i,n} = a_{i,n-1}.

Assume the inductive hypothesis is true for sns_n. Then we have a unique stable triangular array TT with row sums s1,s2,,sns_1, s_2, \dots, s_n. By the Lemma 3, there is a unique way to increment an entry in row nn of TT to get a new stable triangular array T+T^+ with row sums s1,s2,,sn+1s_1, s_2, \dots, s_n + 1, showing existence. To show uniqueness, suppose we had a second array T1+T_1^+. Apply the Lemma 3 to show there is a unique way to decrement an entry in row nn to get a new stable triangular array T1T_1 with row sums s1,s2,,sns_1, s_2, \dots, s_n. By the inductive hypothesis, T=T1T = T_1. We can obtain T1+T_1^+ by incrementing an entry of T1T_1, the same as doing the earlier decrement in reverse. We can also obtain T+T^+ by incrementing an entry of TT. Finally, the statement of the Lemma 3 implies that there is a unique way to increment an entry of TT to get a new stable array, so the increments done to TT and T1T_1 must have been the same. This shows that T1+=T+T_1^+ = T^+, so uniqueness of the stable array with row sums s1,s2,,sn+1s_1, s_2, \dots, s_n + 1 has been shown. This completes both inductions and the proof.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.