Maths Olympiad Prep

Library / /43 of 54

Combinatorics Difficulty 6.8 National olympiad Prove it China

Assume that S=(a1,a2,,an)S = (a_1, a_2, \dots, a_n) consists of 00 and 11 and is the longest sequence of numbers which satisfies the following condition: Every two sections of successive 55 terms in the sequence of numbers SS are different, i.e., for arbitrary 1i<jn41 \leq i < j \leq n-4, (ai,ai+1,ai+2,ai+3,ai+4)(a_i, a_{i+1}, a_{i+2}, a_{i+3}, a_{i+4}) and (aj,aj+1,aj+2,aj+3,aj+4)(a_j, a_{j+1}, a_{j+2}, a_{j+3}, a_{j+4}) are different. Prove that the first four terms and the last four terms in the sequence are the same.

Solution

Proof Noting that SS is the longest sequence of numbers satisfying the condition. Hence, if we add a term, 00 or 11, after the last term of SS, there will occur two identical sections of successive 55 terms in SS, and that is, there exist iji \neq j such that
(ai,ai+1,,ai+4)=(an3,an2,,an,0), (a_i, a_{i+1}, \dots, a_{i+4}) = (a_{n-3}, a_{n-2}, \dots, a_n, 0),
(aj,aj+1,,aj+4)=(an3,an2,,an,1). (a_j, a_{j+1}, \dots, a_{j+4}) = (a_{n-3}, a_{n-2}, \dots, a_n, 1).
If (a1,a2,a3,a4)(an3,an2,an1,an)(a_1, a_2, a_3, a_4) \neq (a_{n-3}, a_{n-2}, a_{n-1}, a_n), then
1<i,j<n3, ij, 1 < i, j < n-3,\ i \neq j,
and
(ai,ai+1,ai+2,ai+3)=(aj,aj+1,aj+2,aj+3)=(an3,an2,an1,an). \begin{aligned} (a_i, a_{i+1}, a_{i+2}, a_{i+3}) &= (a_j, a_{j+1}, a_{j+2}, a_{j+3}) \\ &= (a_{n-3}, a_{n-2}, a_{n-1}, a_n). \end{aligned}
Now, consider ai1a_{i-1}, aj1a_{j-1} and an4a_{n-4}, among which there must be two identical terms. This causes two sections with successive 55 terms respectively in SS to be identical. It leads to a contradiction.
Therefore, the proposition holds.

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.