Does $f(f(f(x)))=x \implies f(x)=x$? Is it necessary for it to follow? How do we prove this? Do we have to substitute some special $x$? Or is it some other consideration of its properties?
Edit: does it follow in the special case when f is surjective? Or would we wind up with the same thing?