Which functions are surjective (i.e., onto)?
\(f:\Z \to \Z\) defined by \(f(n) = 3n\text{.}\)
\(g: \{1,2,3\} \to \{a,b,c\}\) defined by \(g = \begin{pmatrix}1 \amp 2 \amp 3 \\ c \amp a \amp a \end{pmatrix}\text{.}\)
\(h:\{1,2,3\} \to \{1,2,3\}\) defined as follows: