Suppose that we have a function $f$ $:$ $X$ $\to$ $Y$, with
$ X $ $=$ {1,2,3,4,5,6}
$Y$ $=$ {a,b}
define $$ f(x) = \left\{ \begin{array}{ll} a & \mbox{if $x =1$ OR $2 $ OR 3} \\ b & \mbox{if $ x = 4 $ OR 5 OR 6} \ \end{array}\right. $$ my question is, when we take the f inverse of {a,b} will we get {1,2,3,4,5,6} OR {{1,2,3},{4,5,6}} ?
Edited: I also have another doubt, do $f^{-1}(a)$ and $f^{-1}$({$a$}) mean the same?