Problem

Source: Italy MO 2024 P1

Tags: algebra, algebra proposed, absolute value



Let $x_0=2024^{2024}$ and $x_{n+1}=|x_n-\pi|$ for $n \ge 0$. Show that there exists a value of $n$ such that $x_{n+2}=x_n$.