Let $f:\mathbb R\to [1,3]$ be a continuous function such that
(i) $f^{-1}(1)$ and $f^{-1}(3)$ are singletons.
(ii) $f^{-1}(x)$ contains exactly two points for all $x\in (1,2)\cup (2,3)$.
How to find the possible cardinality of $f^{-1}(2)$?
Since $f$ is continuous, one can use intermediate value theorem. But after that I could not fix the problem. Any suggestions please!
This function has $|f^{-1}(2)|=1$, while this function has $|f^{-1}(2)|=c$. It's not clear whether any other possibilites exist.