Problems(1)
Given an infinite sequence of numbers a1,a2,..., in which there are no two equal members. Segment ai,ai+1,...,ai+m−1 of this sequence is called a monotone segment of length m, if ai<ai+1<...<ai+m−1 or ai>ai+1>...>ai+m−1. It turned out that for each natural k the term ak is contained in some monotonic segment of length k+1. Prove that there exists a natural N such that the sequence aN,aN+1,... monotonic. combinatorics