If $f:X \to X$ (codomain and domain have the same topology) is a continuous bijection and every point has finite orbit, is $f^{-1}$ continuous?
Note that the orbit being finite and $f$ being a bijection means for all $x$ means for all $x$ there is an $n>0$ such that $f^n(x)=x$.
I asked myself this question while answering another question on this site and ended up not getting anywhere. I suspect it should come from very basic facts or is false in general. I am leaning towards false at the moment but have not been able to construct a counter example.
One attempt I tried was to see if considering $X_F$, the set $X$ final topology with respect to $f,f^{-1}$ had the same topology, and I believe I got $f:X_F \to X$ was continuous but, could never get the same for $f^{-1}$.
This question is similar, without the finite orbit restriction.