Problem

Source: Turkey NMO 2000 Problem 6

Tags: function, inequalities, algebra proposed, algebra



Find all continuous functions $f:[0,1]\to [0,1]$ for which there exists a positive integer $n$ such that $f^{n}(x)=x$ for $x \in [0,1]$ where $f^{0} (x)=x$ and $f^{k+1}=f(f^{k}(x))$ for every positive integer $k$.