Maths Olympiad Prep

Library / /11 of 16

Combinatorics Difficulty 7.4 National olympiad, round 2 Prove it Japan

Let nn be a positive integer. Consider triples (x1,y1,z1)(x_1, y_1, z_1), (x2,y2,z2)(x_2, y_2, z_2), \dots, (xn,yn,zn)(x_n, y_n, z_n) which consist of integers 1,2,,1001, 2, \dots, 100 and satisfy the following condition:
For all infinite sequences a1,a2,a_1, a_2, \dots which consist of integers 1,2,,1001, 2, \dots, 100, there exist a positive integer ii and an integer jj with 1jn1 \le j \le n such that (ai,ai+1,ai+2)=(xj,yj,zj)(a_i, a_{i+1}, a_{i+2}) = (x_j, y_j, z_j).
Determine the minimum possible value of nn.

Solution

Lemma. Let x,y,zx, y, z be integers with 1x,y,zN1 \le x, y, z \le N. Then at least one of (x,y,z)(x, y, z), (y,z,x)(y, z, x), or (z,x,y)(z, x, y) belongs to SS.

proof. Consider a sequence a1=x,a2=y,a3=z,a4=x,a5=y,a6=z,a_1 = x, a_2 = y, a_3 = z, a_4 = x, a_5 = y, a_6 = z, \dots. Then, for every positive integer ii, (ai,ai+1,ai+2)(a_i, a_{i+1}, a_{i+2}) is one of (x,y,z)(x, y, z), (y,z,x)(y, z, x), or (z,x,y)(z, x, y). Therefore, by the assumption of the problem, at least one of these triples must belong to SS. ■

Consider the set
X={(x1,y1,z1),(x2,y2,z2),,(xn,yn,zn),(y1,z1,x1),(y2,z2,x2),,(yn,zn,xn),(z1,x1,y1),(z2,x2,y2),,(zn,xn,yn)}. X = \{(x_1, y_1, z_1), (x_2, y_2, z_2), \dots, (x_n, y_n, z_n), (y_1, z_1, x_1), (y_2, z_2, x_2), \dots, (y_n, z_n, x_n), \\ (z_1, x_1, y_1), (z_2, x_2, y_2), \dots, (z_n, x_n, y_n)\}.
Let p,q,rp, q, r be integers with 1p,q,rN1 \le p, q, r \le N. Applying Lemma to (x,y,z)=(p,q,r)(x, y, z) = (p, q, r), it follows that at least one of (p,q,r)(p, q, r), (q,r,p)(q, r, p), or (r,p,q)(r, p, q) belongs to SS, say it is (xj,yj,zj)(x_j, y_j, z_j) for some 1jn1 \le j \le n. Then, (p,q,r)(p, q, r) is equal to one of (xj,yj,zj)(x_j, y_j, z_j), (zj,xj,yj)(z_j, x_j, y_j), or (yj,zj,xj)(y_j, z_j, x_j), and therefore, (p,q,r)(p, q, r) belongs to XX. Thus, it has been shown that XX is the set of all N3N^3 triples (p,q,r)(p, q, r) with 1p,q,rN1 \le p, q, r \le N.
By applying Lemma to (x,y,z)=(1,1,1),(2,2,2),,(N,N,N)(x, y, z) = (1, 1, 1), (2, 2, 2), \dots, (N, N, N), we find that these triples (1,1,1),(2,2,2),,(N,N,N)(1, 1, 1), (2, 2, 2), \dots, (N, N, N) all belong to SS. If (xj,yj,zj)(x_j, y_j, z_j) is equal to one of them, we have (xj,yj,zj)=(yj,zj,xj)=(zj,xj,yj)(x_j, y_j, z_j) = (y_j, z_j, x_j) = (z_j, x_j, y_j), hence the number of elements of XX is less than or equal to 3n2N3n - 2N. Therefore we have 3n2NN33n - 2N \ge N^3, thus nN3+2N3n \ge \frac{N^3 + 2N}{3}.

Next, we construct a set SS satisfying n=N3+2N3n = \frac{N^3 + 2N}{3}. Define SS to be the set of triples (x,y,z)(x, y, z) with 1x,y,zN1 \le x, y, z \le N such that either
* x>yx > y and xzx \ge z, or

x=y=z. \bullet x = y = z.
If we fix an integer xx with 1xN1 \le x \le N, the number of pairs (y,z)(y, z) such that (x,y,z)(x, y, z) belongs to SS is equal to x(x1)+1x(x-1)+1. Therefore, the number of elements in SS, denoted by nn, is
n=x=1N(x(x1)+1)=N3+2N3. n = \sum_{x=1}^{N} (x(x-1)+1) = \frac{N^3 + 2N}{3}.
Assume, for the sake of contradiction, that there exists a sequence a1,a2,a_1, a_2, \dots of integers 1,2,,N1, 2, \dots, N such that none of the triples (a1,a2,a3),(a2,a3,a4),(a_1, a_2, a_3), (a_2, a_3, a_4), \dots belongs to SS. Let aka_k be one of the largest terms among a1,a2,a_1, a_2, \dots. Then we have akak+1a_k \ge a_{k+1} and akak+2a_k \ge a_{k+2}. Since (ak,ak+1,ak+2)(a_k, a_{k+1}, a_{k+2}) does not belong to SS, we have ak+1=aka_{k+1} = a_k. Therefore, ak+1a_{k+1} is also one of the largest terms in the sequence. Applying the same argument to (ak+1,ak+2,ak+3)(a_{k+1}, a_{k+2}, a_{k+3}), we obtain ak+2=ak+1a_{k+2} = a_{k+1}. Hence, ak=ak+1=ak+2a_k = a_{k+1} = a_{k+2}, so (ak,ak+1,ak+2)(a_k, a_{k+1}, a_{k+2}) belongs to SS, a contradiction. Therefore, this set SS satisfies the required condition.

This shows that the minimum value of nn is N3+2N3=333400\frac{N^3 + 2N}{3} = 333400.

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.