Exercise 7.

Consider the function \(f:\{1,2,3,4,5\} \to \{1,2,3,4\}\) given by the table below:

\(x\) 1 2 3 4 5
\(f(x)\) 3 2 4 1 2
  1. Is \(f\) injective? Explain.

  2. Is \(f\) surjective? Explain.

  3. Write the function using two-line notation.

Solution.
in-context