Maths Olympiad Prep

Library / /59 of 63

Combinatorics Difficulty 7.8 National olympiad, round 2 Prove it Japan

We denote S={1,2,,3000}S = \{1, 2, \dots, 3000\}. Find the maximum possible value of an integer XX that satisfies the following condition:
For any bijection f:SSf: S \to S, there exists a bijection g:SSg: S \to S such that
k=13000(max{f(f(k)),f(g(k)),g(f(k)),g(g(k))}min{f(f(k)),f(g(k)),g(f(k)),g(g(k))}) \sum_{k=1}^{3000} \left( \max\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\} - \min\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\} \right)
is no less than XX.

Solution

We denote
Xmax(f,g)=k=13000max{f(f(k)),f(g(k)),g(f(k)),g(g(k))}, X_{\max}(f,g) = \sum_{k=1}^{3000} \max\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\},
Xmin(f,g)=k=13000min{f(f(k)),f(g(k)),g(f(k)),g(g(k))}, X_{\min}(f,g) = \sum_{k=1}^{3000} \min\{f(f(k)), f(g(k)), g(f(k)), g(g(k))\},
and X(f,g)=Xmax(f,g)Xmin(f,g)X(f,g) = X_{\max}(f,g) - X_{\min}(f,g). Moreover, for a finite set TT, we denote the number of its elements by T|T|.

First, we will prove that the answer is at most 60000006000000. When the bijection ff is the identity map, for any bijection gg on SS, we have fg=gff \circ g = g \circ f. For any aSa \in S, since the function fff \circ f is bijective, the equation f(f(x))=af(f(x)) = a for xx has at most one solution. The same is true for the bijections fg=gff \circ g = g \circ f and ggg \circ g. Therefore, the equation max{f(f(x)),f(g(x)),g(f(x)),g(g(x))}=a\max\{f(f(x)), f(g(x)), g(f(x)), g(g(x))\} = a for xx has at most three solutions. Hence we have
Xmax(f,g)3×3000+3×2999++3×2001=k=200130003k, X_{\max}(f,g) \le 3 \times 3000 + 3 \times 2999 + \dots + 3 \times 2001 = \sum_{k=2001}^{3000} 3k,
and similarly,
Xmin(f,g)3×1+3×2++3×1000=k=110003k. X_{\min}(f,g) \ge 3 \times 1 + 3 \times 2 + \dots + 3 \times 1000 = \sum_{k=1}^{1000} 3k.
Therefore,
X(f,g)k=200130003kk=110003k=6000000. X(f,g) \le \sum_{k=2001}^{3000} 3k - \sum_{k=1}^{1000} 3k = 6000000.
Hence, the answer is at most 60000006000000.

In the following, we will prove that X=6000000X = 6000000 satisfies the condition. We denote
S1={1,2,,1000},S2={1001,1002,,2000},S3={2001,2002,,3000}. S_1 = \{1, 2, \dots, 1000\}, \quad S_2 = \{1001, 1002, \dots, 2000\}, \quad S_3 = \{2001, 2002, \dots, 3000\}.
Additionally, for a,b{1,2,3}a, b \in \{1, 2, 3\}, let Sa,b={xSaf(x)Sb}S_{a,b} = \{x \in S_a \mid f(x) \in S_b\} and na,b=Sa,bn_{a,b} = |S_{a,b}|. Now, for any xSx \in S, there exists exactly one pair (a,b){1,2,3}2(a, b) \in \{1, 2, 3\}^2 such that xSa,bx \in S_{a,b}.

Lemma. For any bijection ff on SS, there exists a partition {Z1,Z2,,Z1000}\{Z_1, Z_2, \dots, Z_{1000}\} of SS satisfying the following condition:
For any 1i10001 \le i \le 1000, Zi=3|Z_i| = 3 and when a1,a2,a3a_1, a_2, a_3 denote the elements of ZiZ_i in ascending order, we have a1S1,a2S2a_1 \in S_1, a_2 \in S_2 and a3S3a_3 \in S_3. In addition, exactly one element of {f(a1),f(a2),f(a3)}\{f(a_1), f(a_2), f(a_3)\} belongs to SbS_b for every b{1,2,3}b \in \{1, 2, 3\}.

Proof. Assume that there exists a tuple (A1,B1,A2,B2,A3,B3)(A_1, B_1, A_2, B_2, A_3, B_3) of non-negative integers satisfying the equations:
A1+B1=n1,1,A2+B2=n1,2,A3+B3=n1,3,A3+B2=n2,1,A1+B3=n2,2,A2+B1=n2,3,()A2+B3=n3,1,A3+B1=n3,2,A1+B2=n3,3. \begin{align*} A_1 + B_1 &= n_{1,1}, & A_2 + B_2 &= n_{1,2}, & A_3 + B_3 &= n_{1,3}, \\ A_3 + B_2 &= n_{2,1}, & A_1 + B_3 &= n_{2,2}, & A_2 + B_1 &= n_{2,3}, & (*) \\ A_2 + B_3 &= n_{3,1}, & A_3 + B_1 &= n_{3,2}, & A_1 + B_2 &= n_{3,3}. \end{align*}
Then, we have a partition {Z1,,Z1000}\{Z_1, \dots, Z_{1000}\} of SS which satisfies the condition in the lemma and the following condition:
For each Zi={a1,a2,a3}Z_i = \{a_1, a_2, a_3\} with a1<a2<a3a_1 < a_2 < a_3, define a permutation σi\sigma_i of {1,2,3}\{1, 2, 3\} such that akSk,σi(k)a_k \in S_{k, \sigma_i(k)} for k=1,2,3k = 1, 2, 3. Then the number of ZiZ_i such that (σi(1),σi(2),σi(3))(\sigma_i(1), \sigma_i(2), \sigma_i(3)) is equal to (1,2,3)(1, 2, 3), (1,3,2)(1, 3, 2), (2,3,1)(2, 3, 1), (2,1,3)(2, 1, 3), (3,1,2)(3, 1, 2), and (3,2,1)(3, 2, 1) is equal to A1,B1,A2,B2,A3A_1, B_1, A_2, B_2, A_3 and B3B_3, respectively.
Hence it is sufficient to prove that a tuple (A1,B1,A2,B2,A3,B3)(A_1, B_1, A_2, B_2, A_3, B_3) satisfying the equations ()(*) exists.

Without loss of generality, we can assume that n1,1n_{1,1} is the smallest among nine integers na,bn_{a,b} (a,b{1,2,3}a, b \in \{1, 2, 3\}). Setting
(A1,B1,A2,B2,A3,B3)=(n1,1,0,n2,3,n3,3n1,1,n3,2,n2,2n1,1), (A_1, B_1, A_2, B_2, A_3, B_3) = (n_{1,1}, 0, n_{2,3}, n_{3,3} - n_{1,1}, n_{3,2}, n_{2,2} - n_{1,1}),
this is a tuple of non-negative integers by the minimality of n1,1n_{1,1}, and satisfies the first, fifth, sixth, eighth, and ninth equations in ()(*). Furthermore, for any a{1,2,3}a \in \{1, 2, 3\}, we have
na,1+na,2+na,3=Sa=1000,n1,a+n2,a+n3,a={xSf(x)Sa}=1000. \begin{align*} n_{a,1} + n_{a,2} + n_{a,3} &= |S_a| = 1000, \\ n_{1,a} + n_{2,a} + n_{3,a} &= |\{x \in S \mid f(x) \in S_a\}| = 1000. \end{align*}
Thus, we find that the tuple satisfies the second, third, fourth, and seventh equations in ()(*):
A2+B2=n2,3+n3,3n1,1=(n1,3+n2,3+n3,3)(n1,1+n1,2+n1,3)+n1,2=n1,2, A_2 + B_2 = n_{2,3} + n_{3,3} - n_{1,1} = (n_{1,3} + n_{2,3} + n_{3,3}) - (n_{1,1} + n_{1,2} + n_{1,3}) + n_{1,2} = n_{1,2},
A3+B3=n3,2+n2,2n1,1=(n1,2+n2,2+n3,2)(n1,1+n1,2+n1,3)+n1,3=n1,3, A_3 + B_3 = n_{3,2} + n_{2,2} - n_{1,1} = (n_{1,2} + n_{2,2} + n_{3,2}) - (n_{1,1} + n_{1,2} + n_{1,3}) + n_{1,3} = n_{1,3},
A3+B2=n3,2+n3,3n1,1=(n3,1+n3,2+n3,3)(n1,1+n2,1+n3,1)+n2,1=n2,1, A_3 + B_2 = n_{3,2} + n_{3,3} - n_{1,1} = (n_{3,1} + n_{3,2} + n_{3,3}) - (n_{1,1} + n_{2,1} + n_{3,1}) + n_{2,1} = n_{2,1},
A2+B3=n2,3+n2,2n1,1=(n2,1+n2,2+n2,3)(n1,1+n2,1+n3,1)+n3,1=n3,1, A_2 + B_3 = n_{2,3} + n_{2,2} - n_{1,1} = (n_{2,1} + n_{2,2} + n_{2,3}) - (n_{1,1} + n_{2,1} + n_{3,1}) + n_{3,1} = n_{3,1},
which completes the proof. ■

Let us consider Zj={a1,a2,a3}Z_j = \{a_1, a_2, a_3\} with a1<a2<a3a_1 < a_2 < a_3. Then a1S1a_1 \in S_1, a2S2a_2 \in S_2 and a3S3a_3 \in S_3. For each i{1,2,3}i \in \{1, 2, 3\}, we define kik_i by f(ki)=aif(k_i) = a_i. Since g(ki)=h(f(ki))=h(ai)=ai+1g(k_i) = h(f(k_i)) = h(a_i) = a_{i+1}, we obtain
max{f(f(ki)),f(g(ki)),g(f(ki)),g(g(ki))}=max{f(ai),f(ai+1),g(ai),g(ai+1)}=max{f(ai),f(ai+1),h(f(ai)),h(f(ai+1))}, \begin{aligned} \max\{f(f(k_i)), f(g(k_i)), g(f(k_i)), g(g(k_i))\} &= \max\{f(a_i), f(a_{i+1}), g(a_i), g(a_{i+1})\} \\ &= \max\{f(a_i), f(a_{i+1}), h(f(a_i)), h(f(a_{i+1}))\}, \end{aligned}
where a4=a1a_4 = a_1. Let us define F1,F2,F3F_1, F_2, F_3 by {f(a1),f(a2),f(a3)}={F1,F2,F3}\{f(a_1), f(a_2), f(a_3)\} = \{F_1, F_2, F_3\} and F1<F2<F3F_1 < F_2 < F_3. By the condition of the lemma, we have F1S1F_1 \in S_1, F2S2F_2 \in S_2 and F3S3F_3 \in S_3. Furthermore, we have h(F1)S2h(F_1) \in S_2, h(F2)S3h(F_2) \in S_3 and h(F3)S1h(F_3) \in S_1, by the definition of hh. Therefore, we obtain
i=13max{f(f(ki)),f(g(ki)),g(f(ki)),g(g(ki))}=max{F1,F2,h(F1),h(F2)}+max{F2,F3,h(F2),h(F3)}+max{F3,F1,h(F3),h(F1)}=h(F2)+max{F3,h(F2)}+F3h(F2)+12(F3+h(F2))+F3=32F3+32h(F2).() \begin{aligned} & \sum_{i=1}^{3} \max\{f(f(k_i)), f(g(k_i)), g(f(k_i)), g(g(k_i))\} \\ &= \max\{F_1, F_2, h(F_1), h(F_2)\} + \max\{F_2, F_3, h(F_2), h(F_3)\} + \max\{F_3, F_1, h(F_3), h(F_1)\} \\ &= h(F_2) + \max\{F_3, h(F_2)\} + F_3 \\ & \geq h(F_2) + \frac{1}{2}(F_3 + h(F_2)) + F_3 \\ &= \frac{3}{2}F_3 + \frac{3}{2}h(F_2). \end{aligned} \quad (**)
Every element of SS appears exactly once as a1,a2a_1, a_2 or a3a_3 for some ZjZ_j. Since ff is bijective, the same is true for k1,k2k_1, k_2 or k3k_3. Furthermore, since ff and hh are both bijections, each element of S3S_3 appears exactly once as F3F_3, and as h(F2)h(F_2), for some ZjZ_j. Hence, by taking sums of both sides of ()(**) for Z1,,Z1000Z_1, \dots, Z_{1000}, we have
Xmax(f,g)32k=20013000k+32k=20013000k=k=200130003k. X_{\max}(f,g) \geq \frac{3}{2} \sum_{k=2001}^{3000} k + \frac{3}{2} \sum_{k=2001}^{3000} k = \sum_{k=2001}^{3000} 3k.
Similarly, we have Xmin(f,g)k=110003kX_{\min}(f,g) \leq \sum_{k=1}^{1000} 3k. Therefore, we can conclude that
X(f,g)k=200130003kk=110003k=6000000. X(f,g) \geq \sum_{k=2001}^{3000} 3k - \sum_{k=1}^{1000} 3k = 6000000.
This completes the proof that X=6000000X = 6000000 satisfies the condition, hence the answer is 60000006000000.

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.