Maths Olympiad Prep

Library / /396 of 397

, 2018

Algebra Difficulty 7.6 National Olympiad, round 2 Prove it Taiwan

Given a positive integer n3n \ge 3. We call a real nn-tuple (x1,x2,,xn)(x_1, x_2, \cdots, x_n) shiny if for every permutation y1,y2,,yny_1, y_2, \cdots, y_n of x1,x2,,xnx_1, x_2, \cdots, x_n, it satisfies
i=1n1yiyi+1=y1y2+y2y3+y3y4++yn1yn1. \sum_{i=1}^{n-1} y_i y_{i+1} = y_1 y_2 + y_2 y_3 + y_3 y_4 + \cdots + y_{n-1} y_n \ge -1.
Find the largest number K=K(n)K = K(n) such that for every shiny nn-tuple (x1,x2,,xn)(x_1, x_2, \cdots, x_n),
1i<jnxixjK \sum_{1 \le i < j \le n} x_i x_j \ge K

Solutions — 2

Solution 1

First of all, we show that we may not take a larger constant KK. Let tt be a positive number, and take
x2=x3==t and x1=12t. x_2 = x_3 = \cdots = t \text{ and } x_1 = -\frac{1}{2t}.
Then, every product xixjx_i x_j (iji \ne j) is equal to either t2t^2 or (1/2)(-1/2). Hence, for every permutation yiy_i of the xix_i, we have
y1y2++yn1yn(n3)t211. y_1 y_2 + \cdots + y_{n-1} y_n \ge (n-3)t^2 - 1 \ge -1.
This justifies that the nn-tuple (x1,,xn)(x_1, \cdots, x_n) is Shiny. Now, we have
i<jxixj=n12+(n1)(n2)2t2. \sum_{i<j} x_i x_j = -\frac{n-1}{2} + \frac{(n-1)(n-2)}{2} t^2.

indices for ziz_i will always be taken modulo nn. We will first split up the sum i<jxixj=i<jzizj\sum_{i<j} x_i x_j = \sum_{i<j} z_i z_j in to [(n1)/2][(n-1)/2] expressions, each of the form y1y2++yn1yny_1 y_2 + \cdots + y_{n-1} y_n for some permutation yiy_i of the ziz_i, and some leftover terms. More specifically, write
i<jzizj=q=0n1i+j=qij(modn)(mod n)(mod n)zizj=p=1[(n1)]/2i+j=2p1,2p(modn)ij(modn)(mod n)(mod n)zizj+L,(1) \sum_{i<j} z_i z_j = \sum_{q=0}^{n-1} \sum_{\substack{i+j=q \\ i \neq j \pmod{n}}} \sum_{\substack{(\text{mod } n) \\ (\text{mod } n)}} z_i z_j = \sum_{p=1}^{[(n-1)]/2} \sum_{\substack{i+j=2p-1,2p \pmod{n} \\ i \neq j \pmod{n}}} \sum_{\substack{(\text{mod } n) \\ (\text{mod } n)}} z_i z_j + L, \quad (1)
where
L=z1z1+z2z2+z(n1)/2z(n1)/2 if n is odd, L = z_1 z_{-1} + z_2 z_{-2} + \cdots z_{(n-1)/2} z_{-(n-1)/2} \text{ if } n \text{ is odd,}
and
L=z1z1+z2z2+z(n2)/2zn/2 if n is even. L = z_1 z_{-1} + z_2 z_{-2} + \cdots z_{(n-2)/2} z_{-n/2} \text{ if } n \text{ is even.}
We note that for each p=1,2,,[(n1)/2]p = 1, 2, \dots, [(n-1)/2], there is some permutation yiy_i of the ziz_i such that
i+j2p1,2p(modn)ij(modn)zizj=k=1n1ykyk+1, \sum_{\substack{i+j \equiv 2p-1, 2p \pmod{n} \\ i \neq j \pmod{n}}} z_i z_j = \sum_{k=1}^{n-1} y_k y_{k+1},
because we may choose
y2i1=zi+p1 for 1i(n+1)/2 y_{2i-1} = z_{i+p-1} \text{ for } 1 \le i \le (n+1)/2
and
y2i=zpi for 1in/2. y_{2i} = z_{p-i} \text{ for } 1 \le i \le n/2.
We show Eq. (1) graphically for n=6,7n = 6, 7 in the diagrams below. The edges of the graphs each represent a product zizjz_i z_j, and the dashed and dotted series of lines represents the sum of the edges, which is of the form y1y2+yn1yny_1 y_2 + \cdots y_{n-1} y_n for some permutation yiy_i of the ziz_i precisely when the series of lines in a Hamiltonian path. The filled edges represent the summands of LL.

i<jzizj[n12]+L. \sum_{i<j} z_i z_j \geq -\left[\frac{n-1}{2}\right] + L.
It remains to show that, for each nn, there exists some permutation ziz_i of the xix_i such that L0L \ge 0 when nn is odd, and L1/2L \ge -1/2 when nn is even. We now split into cases based on the parity of nn and provide constructions of the permutations ziz_i.
Since we have not made any assumptions yet about the xix_i, we may now assume without loss of generality that
x1x2xk0xk+1xn.(2) x_1 \le x_2 \le \dots \le x_k \le 0 \le x_{k+1} \le \dots \le x_n. \quad (2)
Case 1: nn is odd.
Without loss of generality, assume that kk (from Eq. (2)) is even, because we may negate all the xix_i if kk is odd. We then have
x1x2,x3x4,,xn2xn10 x_1 x_2, x_3 x_4, \dots, x_{n-2} x_{n-1} \ge 0
because the factors are of the same sign. Let
L=x1x2+x3x4++xn2xn10. L = x_1 x_2 + x_3 x_4 + \dots + x_{n-2} x_{n-1} \ge 0.

We choose our ziz_i so that this definition of LL agrees with the sum of the leftover terms in Eq. (1). Relable the xix_i as ziz_i such that
{z1,zn1},{z2,zn2},,{z(n1)/2,z(n+1)/2} \{z_1, z_{n-1}\}, \{z_2, z_{n-2}\}, \dots, \{z_{(n-1)/2}, z_{(n+1)/2}\}
are some permutation of
{x1,x2},{x3,x4},{xn2,xn1}, \{x_1, x_2\}, \{x_3, x_4\}, \dots \{x_{n-2}, x_{n-1}\},
and zn=xnz_n = x_n. Then, we have
L=z1zn1++z(n1)/2z(n+1)/2, as desired. L = z_1 z_{n-1} + \dots + z_{(n-1)/2} z_{(n+1)/2}, \text{ as desired.}
Case 2: n is even.
Let L=x1x2+x2x3++xn1xnL = x_1x_2 + x_2x_3 + \cdots + x_{n-1}x_n. Assume without loss of generality k1k \neq 1. Now, we have
2L=(x1x2++xn1xn)+(x1x2+xn1xn)(x2x3+xn1xn)+xkxk+1x2x3+xn1xn+xnx11, \begin{align*} 2L &= (x_1x_2 + \cdots + x_{n-1}x_n) + (x_1x_2 + \cdots x_{n-1}x_n) \\ &\geq (x_2x_3 + \cdots x_{n-1}x_n) + x_kx_{k+1} \\ &\geq x_2x_3 + \cdots x_{n-1}x_n + x_nx_1 \geq -1, \end{align*}
where the first inequality holds because the only negative term in LL is xkxk+1x_k x_{k+1}, the second inequality holds because x1xk0xk+1xnx_1 \le x_k \le 0 \le x_{k+1} \le x_n, and the third inequality holds because the xix_i are assumed to be Shiny. We thus have that L1/2L \ge -1/2. We now choose a suitable ziz_i such that the definition of LL matches the leftover terms in Eq. (1).
Relables the xix_i with ziz_i in the following manner: x2i1=zix_{2i-1} = z_{-i}, x2i=zix_{2i} = z_i
(again taking indices modulo nn). We have that
L=i+j0,1(modn)ij(modn)zizj, L = \sum_{\substack{i+j \equiv 0, -1 \pmod{n} \\ i \neq j \pmod{n}}} z_i z_j,

Solution 2

We present another proof that
i<jxixjn12for any Shiny n-tuple {x1,,xn}. \sum_{i<j} x_i x_j \geq -\frac{n-1}{2} \quad \text{for any Shiny n-tuple } \{x_1, \dots, x_n\}.
Assume an ordering of the xix_i as in Eq. (2), and let =nk\ell = n-k. Assume without loss of generality that kk \ge \ell. Also assume knk \ne n, (as otherwise, all of the xix_i are nonpositive, and so the inequality is trivial). Define the sets of indices S={1,2,,k}S = \{1, 2, \dots, k\} and T={k+1,,n}T = \{k+1, \dots, n\}. Define the following sums:
K=i<ji,jSxixj,M=iSjTxixj,andL=i<ji,jTxixj. K = \sum_{\substack{i<j \\ i,j \in S}} x_i x_j, \quad M = \sum_{\substack{i \in S \\ j \in T}} x_i x_j, \quad \text{and} \quad L = \sum_{\substack{i<j \\ i,j \in T}} x_i x_j.
By definition, K,L0K, L \ge 0 and M0M \le 0. We aim to show that
K+L+Mn12. K + L + M \geq -\frac{n-1}{2}.
We split into cases based on whether k=k = \ell or k>k > \ell.
*Case 1: k>k > \ell.*
Consider all permutations ϕ:{1,2,,n}{1,2,,n}\phi : \{1, 2, \dots, n\} \to \{1, 2, \dots, n\} such that ϕ1(T)={2,4,,2}\phi^{-1}(T) = \{2, 4, \dots, 2\ell\}. Note that there are k!!k!\ell! such permutations ϕ\phi. Define
f(ϕ)=i=1n1xϕ(i)xϕ(i+1). f(\phi) = \sum_{i=1}^{n-1} x_{\phi(i)} x_{\phi(i+1)}.
We know that f(ϕ)1f(\phi) \ge -1 for every permutation ϕ\phi with the above property. Averaging f(ϕ)f(\phi) over all ϕ\phi gives
11k!!ϕf(ϕ)=2kM+2(k1)k(k1)K, -1 \le \frac{1}{k!\ell!} \sum_{\phi} f(\phi) = \frac{2\ell}{k\ell} M + \frac{2(k-\ell-1)}{k(k-1)} K,

K+L+MK+L+(k2k1k1K)=k2+k1K+L. K + L + M \geq K + L + \left( -\frac{k}{2} - \frac{k-\ell-1}{k-1}K \right) = -\frac{k}{2} + \frac{\ell}{k-1}K + L.
Since kn1k \leq n-1 and K,L0K, L \geq 0, we get the desired inequality.

Case 2: k==n/2k = \ell = n/2.
We do a similar approach, considering all ϕ:{1,2,,n}{1,2,,n}\phi : \{1, 2, \dots, n\} \to \{1, 2, \dots, n\} such that ϕ1(T)={2,4,,2}\phi^{-1}(T) = \{2, 4, \dots, 2\ell\}, and defining ff the same way. Analogously to Case 1, we have
11k!!ϕf(ϕ)=21kM, -1 \leq \frac{1}{k!\ell!} \sum_{\phi} f(\phi) = \frac{2\ell - 1}{k\ell} M,
because there are kk\ell products in MM, of which (21)(2\ell - 1) are selected for each ϕ\phi. Now, we have that
K+L+MMn24(n1)n12, K + L + M \geq M \geq -\frac{n^2}{4(n-1)} \geq -\frac{n-1}{2},
where the last inequality holds because n4n \geq 4.

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 translated into English from zh; metadata (topic, difficulty) added by this project.