Find all continuous functions $f: \mathbb R \rightarrow \mathbb R$such that $f(f(f(x)))=x$.
Obviously one solution to this functional equation is $f(x)=x$.
If the function is NOT continuous, there are also other solutions such as $f(x)=\frac{1}{1-x}$, but I'm not sure how to find all solutions that are continuous.
Observe that $f$ must be injective. Now, since $f$ is continuous and injective on the interval $\mathbb{R}$, we conclude that $f$ is monotone. Now the variations of $f\circ f\circ f$ are that of $f$, and we conclude that $f$ must be increasing.
Now, let $x\in\mathbb{R}$. There are three cases:
We'll show that cases 1. and 2. are impossible:
This proof easily generalizes to the case of a continuous function $f:\mathbb{R}\longrightarrow\mathbb{R}$ such that $$\forall x\in\mathbb{R},\ f^{[2p+1]}(x)=x,$$ where $p\in\mathbb{N}$ and $f^{[2p+1]}$ stands for the $(2p+1)$-th iterate of $f$.