Problem

Source: ISL 2023 A5

Tags: inequalities, AZE BMO TST, TST, IMO Shortlist



Let $a_1,a_2,\dots,a_{2023}$ be positive integers such that $a_1,a_2,\dots,a_{2023}$ is a permutation of $1,2,\dots,2023$, and $|a_1-a_2|,|a_2-a_3|,\dots,|a_{2022}-a_{2023}|$ is a permutation of $1,2,\dots,2022$. Prove that $\max(a_1,a_{2023})\ge 507$.