Maths Olympiad Prep

Library / /77 of 92

Algebra Difficulty 7.2 National olympiad, round 2 Prove it Iran

Nonnegative real numbers p1,p2,,pnp_1, p_2, \dots, p_n and q1,q2,,qnq_1, q_2, \dots, q_n are given such that
p1+p2++pn=q1+q2++qn. p_1 + p_2 + \dots + p_n = q_1 + q_2 + \dots + q_n.
Among all matrices with nonnegative real entries for which sum of entries of the iith row is pip_i and sum of entries of the jjth column is qjq_j, find the maximum value that the trace of the matrix can have.

Solutions — 2

Solution 1

We use the notation AA for matrices and AijA_{ij} for the entry of row ii and column jj.

First, observe that AiipiA_{ii} \le p_i, since the sum of the iith row is pip_i and the entries are nonnegative. Similarly, AiiqiA_{ii} \le q_i. Thus, Aiimin(pi,qi)A_{ii} \le \min(p_i, q_i) and it follows that trace(A)min(p1,q1)+min(p2,q2)++min(pn,qn)\text{trace}(A) \le \min(p_1, q_1) + \min(p_2, q_2) + \dots + \min(p_n, q_n). It remains to prove there is a matrix with the property that Aii=min(pi,qi)A_{ii} = \min(p_i, q_i) for every 1in1 \le i \le n.

We proceed by induction on nn. The case n=1n=1 is obvious, since p1=q1p_1 = q_1. Assume the assertion holds for n=1,2,,kn=1, 2, \dots, k and consider the case n=k+1n=k+1. We can suppose q1p1q_1 \le p_1 without loss of generality. Let A11=q1A_{11} = q_1 and Ai1=0A_{i1} = 0 for 2in2 \le i \le n. We claim that there exist nonnegative real numbers βi:=A1i\beta_i := A_{1i} for 2in2 \le i \le n such that these conditions hold:
i=2nβi=p1q1,βiqimin(pi,qi) for every 2in.(1) \sum_{i=2}^{n} \beta_i = p_1 - q_1, \\ \beta_i \le q_i - \min(p_i, q_i) \text{ for every } 2 \le i \le n. \tag{1}
To verify our claim, first we prove a lemma.

Lemma. Let a,b1,b2,,bka, b_1, b_2, \dots, b_k be nonnegative real numbers such that ab1+b2++bka \le b_1 + b_2 + \dots + b_k. Then there exist nonnegative real numbers a1,a2,,aka_1, a_2, \dots, a_k such that a1+a2++ak=aa_1 + a_2 + \dots + a_k = a and aibia_i \le b_i for every 1ik1 \le i \le k.

---

Proof of lemma. We use induction on kk. For k=1k=1 the lemma is obvious. If bk>ab_k > a, we can set a1=a2==ak1=0a_1 = a_2 = \cdots = a_{k-1} = 0 and ak=aa_k = a, so suppose that bkab_k \le a. Let ak:=bka_k := b_k. Now, we must have a1+a2++ak1=abka_1 + a_2 + \cdots + a_{k-1} = a - b_k. but abkb1+b2++bkbk=b1+b2++bk1a - b_k \le b_1 + b_2 + \cdots + b_k - b_k = b_1 + b_2 + \cdots + b_{k-1} and the assertion follows by the induction hypothesis. \square

We have
i=2n(qimin(pi,qi))=i=1n(qimin(pi,qi))=i=1n(pimin(pi,qi))p1min(p1,q1)=p1q1. \sum_{i=2}^{n} (q_i - \min(p_i, q_i)) = \sum_{i=1}^{n} (q_i - \min(p_i, q_i)) = \sum_{i=1}^{n} (p_i - \min(p_i, q_i)) \\ \geq p_1 - \min(p_1, q_1) = p_1 - q_1.
Hence, by the lemma we can find nonnegative real numbers β2,β3,,βn\beta_2, \beta_3, \dots, \beta_n such that equation 1 holds. Let A1i=βiA_{1i} = \beta_i for 2in2 \le i \le n. The remaining entries of AA should satisfy

* Ai2+Ai3++Ain=piA_{i2} + A_{i3} + \cdots + A_{in} = p_i for 2in2 \le i \le n,
* A2i+A3i++Ani=qiβiA_{2i} + A_{3i} + \cdots + A_{ni} = q_i - \beta_i for 1in1 \le i \le n.

We have qiβimin(pi,qi)q_i - \beta_i \ge \min(p_i, q_i) by equation 1, so min(pi,qiβi)=min(pi,qi)\min(p_i, q_i - \beta_i) = \min(p_i, q_i). Hence, the rest of the matrix can be filled using the induction hypothesis. \square

Solution 2

We can change the order of p1,p2,,pnp_1, p_2, \dots, p_n and q1,q2,,qnq_1, q_2, \dots, q_n arbitrarily by changing corresponding rows and columns of the matrix. So we can suppose p1q1,p2q2,,pkqkp_1 \le q_1, p_2 \le q_2, \dots, p_k \le q_k and pk+1qk+1,,pnqnp_{k+1} \ge q_{k+1}, \dots, p_n \ge q_n. Let Aii=min(pi,qi)A_{ii} = \min(p_i, q_i) for 1in1 \le i \le n. Also let Aij=0A_{ij} = 0 if iji \ne j and either iki \le k or j>kj > k. The remaining entries {Aij:i>k,jk}\{A_{ij} : i > k, j \le k\} should satisfy:

* Ai1+Ai2++Aik=piqiA_{i1} + A_{i2} + \cdots + A_{ik} = p_i - q_i for i>ki > k,
* A(k+1)i++Ani=qipiA_{(k+1)i} + \cdots + A_{ni} = q_i - p_i for iki \le k.

i.e. we should find a matrix with nonnegative entries for the given row sums and column sums. We can construct such a matrix using induction on the number of rows as follows.

By the lemma above, we can find An1,An2,,AnkA_{n1}, A_{n2}, \dots, A_{nk} such that their sum is pnqnp_n - q_n and AniqipiA_{ni} \le q_i - p_i for each iki \le k. Then, we delete the nn'th row and replace qipiq_i - p_i by qipiAniq_i - p_i - A_{ni} for each iki \le k. We can proceed by using induction and the desired matrix will be constructed. \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.