Problem

Source: St. Petersburg 2023 11.5

Tags: function, algebra



Let $a>1$ be a positive integer and let $f(n)=n+[a\{n\sqrt{2}\}]$. Show that there exists a positive integer $n$, such that $f(f(n))=f(n)$, but $f(n) \neq n$.