Monotonic blocks in a sequence
Source: All-Russian 2022 9.5
April 20, 2022
combinatorics
Problem Statement
Given an infinite sequence of numbers , in which there are no two equal members. Segment of this sequence is called a monotone segment of length , if or . It turned out that for each natural the term is contained in some monotonic segment of length . Prove that there exists a natural such that the sequence monotonic.