I would like to build some continuous functions $f : E \to \Bbb R$ (where $E \subset \Bbb R$ is an interval), such that $$\exists x \in E,\;\; [f(x)≠x≠f(f(x)),\;\; f^3(x):= f(f(f(x)))=x]$$
I tried $f(x)=ax+b$ and $x_0=1$ and I got the condition $a^3+a^2b+ab+b=1$ which leads to $b=1-a$, so that $f(1)=a\cdot 1 + (1-a)=1$ and $x_0=1$ is a fixed point instead of being of period $3$.
(My aim is to test Sharkvosky's theorem on some examples).
Thank you!
$1-2\left|x-\frac12\right|$ has the three-cycle $2/7,4/7,6/7$. This example comes from the paper "The Sharkovsky Theorem: A Natural Direct Proof", by Keith Burns and Boris Hasselblatt. A preprint is freely available online, and it's a great read.