Maths Olympiad Prep

Library / /2 of 2

, 2014

Combinatorics Difficulty 9.1 IMO level Prove it Taiwan

Let RR denote the set of real numbers. Define the set S={1,1}S = \{1, -1\} and the function sign:RSsign : R \to S as
sign(x)={1if x0;1if x<0. sign(x) = \begin{cases} 1 & \text{if } x \ge 0; \\ -1 & \text{if } x < 0. \end{cases}
Given an odd integer nn, are there n2+nn^2 + n real numbers aij,biSa_{ij}, b_i \in S (1i,jn1 \le i, j \le n) such that for arbitrary nn numbers x1,,xnSx_1, \dots, x_n \in S, the number zz computed by the following formulas
yi=sign(j=1naijxj),1in; y_i = \operatorname{sign}\left(\sum_{j=1}^{n} a_{ij}x_j\right), \quad \forall 1 \le i \le n;
z=sign(i=1nbiyi). z = \operatorname{sign}\left(\sum_{i=1}^{n} b_i y_i\right).
always equals the product x1x2xnx_1x_2\cdots x_n?

Solution

Solution: Observing small cases (such as n=3n=3), it is easy to conjecture that
aij=(1)i+j, bi=1 a_{ij} = (-1)^{i+j},\ b_i = 1
satisfies the requirements of the problem. Thus what remains difficult is to prove that this indeed satisfies the requirements of the problem. Note that zz and x1x2xnx_1x_2\cdots x_n also each have only the two possible values 1,11, -1. We have x1x2xn=1x_1x_2\cdots x_n = 1 if and only if there is an even number of 1-1's among the xjx_j; on the other hand, since bi=1b_i = 1, in this case zz is
z=sign(i=1nyi)(1) z = \operatorname{sign}\left(\sum_{i=1}^{n} y_i\right) \qquad (1)
Hence z=1z = 1 if and only if i=1nyi0\sum_{i=1}^n y_i \ge 0, that is, the number of yiy_i's equal to 11 exceeds the number equal to 1-1 (since yi{1,1}y_i \in \{1,-1\}).
Thus our goal is equivalent to proving: "the number of yiy_i's equal to 11 exceeds the number equal to 1-1" if and only if "there is an even number of 1-1's among the xjx_j."
Returning to the formulas. Let yiy'_i denote the value in the formula for yiy_i before applying sign, i.e.
yi=j=1n(1)i+jxj(2) y'_i = \sum_{j=1}^{n} (-1)^{i+j} x_j \qquad (2)
and yi=sign(yi)y_i = \operatorname{sign}(y'_i). Adding yiy'_i and yi+1y'_{i+1} gives the identity yi+yi+1=2xjy'_i + y'_{i+1} = 2x_j (here yn+1=y1y_{n+1} = y_1). If xj=1x_j = 1, then except for the case yi=yi+1=1y'_i = y'_{i+1} = 1, in all other cases yi,yi+1y'_i, y'_{i+1} have opposite signs (note that yiy'_i must be odd); conversely if xj=1x_j = -1, then except for the case yi=yi+1=1y'_i = y'_{i+1} = -1, in all other cases yi,yi+1y'_i, y'_{i+1} also have opposite signs. Therefore, except for the two cases yi=yi+1=xj=1y'_i = y'_{i+1} = x_j = 1 or yi=yi+1=xj=1y'_i = y'_{i+1} = x_j = -1, the values of yiy_i and yi+1y_{i+1} are exactly one 11 and one 1-1.
Below we consider the case where there is an even number of 1-1's among the xjx_j. We first prove that yi1y'_i \ne -1. According to
yi=j=1n(1)i+jxj=xj=1(1)i+jxj+xj=1(1)i+jxj=xj=1(1)i+j+xj=1(1)i+j(12)=1in(1)i+j2xj=1(1)i+j=1xj=12(1)i+j \begin{aligned} y'_i &= \sum_{j=1}^{n} (-1)^{i+j} x_j \\ &= \sum_{x_j=1} (-1)^{i+j} x_j + \sum_{x_j=-1} (-1)^{i+j} x_j \\ &= \sum_{x_j=1} (-1)^{i+j} + \sum_{x_j=-1} (-1)^{i+j} (1-2) \\ &= \sum_{1 \le i \le n} (-1)^{i+j} - 2 \sum_{x_j=-1} (-1)^{i+j} \\ &= 1 - \sum_{x_j=-1} 2(-1)^{i+j} \end{aligned}
Since regardless of the value of i+ji + j, 2(1)i+j(mod4)2(-1)^{i+j} \pmod 4 is always congruent to 2 modulo 4, we have
yi1xj=12(1)i+j(mod4)1xj=12(mod4)1(mod4) \begin{aligned} y'_i &\equiv 1 - \sum_{x_j=-1} 2(-1)^{i+j} \pmod 4 \\ &\equiv 1 - \sum_{x_j=-1} 2 \pmod 4 \\ &\equiv 1 \pmod 4 \end{aligned}
The last equality is exactly because there is an even number of xj=1x_j = -1. Thus we have proven yi1y'_i \neq -1.
Next we prove that there must be some ii for which yi=yi+1=xj=1y'_i = y'_{i+1} = x_j = 1 occurs. Otherwise, if this does not happen, since yi=yi+1=xj=1y'_i = y'_{i+1} = x_j = -1 is also already impossible, this means that for all ii, yiy_i and yi+1y_{i+1} are exactly one 1 and one 1-1, so
i=1nyi=12i=1n(yi+yi+1)=0 \sum_{i=1}^{n} y_i = \frac{1}{2} \sum_{i=1}^{n} (y_i + y_{i+1}) = 0
But since nn and yiy_i are odd, i=1nyi\sum_{i=1}^{n} y_i is also odd, a contradiction.
Therefore, if we let ss denote the sum over all ii of "the number of 1's among yiy_i and yi+1y_{i+1}", its value must equal twice the number of 1's among y1,,yny_1, \cdots, y_n (since each yiy_i is counted twice). By the two facts proven above, yiy_i and yi+1y_{i+1} must have at least one equal to 1, and there must be some ii such that yiy_i and yi+1y_{i+1} are both 1, so sns \ge n, from which we deduce that the number of 1's among y1,,yny_1, \cdots, y_n must exceed the number of 1-1's.
And when there is an odd number of 1-1's among the xjx_j, through the same proof process we can obtain yi1y'_i \neq 1, and that there must be some ii for which yi=yi+1=xj=1y'_i = y'_{i+1} = x_j = -1 occurs, thereby obtaining that the number of values equal to 1-1 among y1,,yny_1, \cdots, y_n exceeds the number of values equal to 1. This completes the proof.

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.