The question is as follows:
Let $A = B = \{0, 1, 2, 3\}$. Which function $f: A \to B$ is one-to-one?
There are three answers to choose from:
(a) $\space f(x) = x + 1 $
(b) $\space f(x) = x \bmod 3 $
(c) $\space f(x) = 3 - x$
I know its not (b), but aren't both (a) and (c) right? Last I checked all linear functions are one-to-one and each element in the domain is mapped to only one element in the range. I answered (a) and got it wrong. Am I missing something?