Maths Olympiad Prep

Library / China Western Mathematical Olympiad /40 of 51

China Western Mathematical Olympiad

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 1≤i<j≤n−41 \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 i≠ji \neq j such that
(ai,ai+1,…,ai+4)=(an−3,an−2,…,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)=(an−3,an−2,…,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)≠(an−3,an−2,an−1,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<n−3, i≠j, 1 < i, j < n-3,\ i \neq j,
and
(ai,ai+1,ai+2,ai+3)=(aj,aj+1,aj+2,aj+3)=(an−3,an−2,an−1,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 ai−1a_{i-1}, aj−1a_{j-1} and an−4a_{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,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.