I need to determine for each domain $A$ and range $B$ if the function $f$ is onto/one-to-one:
$f : A \rightarrow B $
Given: $f = \{(1,2), (2,4), (3,2)\}$
1) $A = \{1,2,3,4\}$ and $B = \{2,4\}$
By seeing these two pairs: $(1,2)$ and $(3,2)$ I concluded this function is not one-to-one, and it is onto B because:
$ \forall y \in B ~~\exists x \in A : (x,y) \in f$
2) $A = \{1,2,3\}$ and $B = \{2\}$
Same thing as before, the are the same pairs $(1,2)$ and $(3,2)$ then it's not one-to-one , and each value of B got as an output in f so it's onto B
3) $A = \{1,2,3\}$ and $B = \{2,4\}$
And here the same exact thing as one and two...
I am afraid I am missing something as all the three answers are the same (makes me think I made a mistake somewhere...) Am I right in this question? Thank you.