Injective function · Exercise-INJECTIVE-FUNCTION-010

Step-by-step solved exercise: Relations and functions

How many injective functions are there from \(\displaystyle \{1,2\}\) to \(\displaystyle \{a,b,c\}\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. For the input \(\displaystyle 1\) there are three possible values in \(\displaystyle \{a,b,c\}\).

    \[\displaystyle 3\]
  2. For the input \(\displaystyle 2\) only two values remain, since its image must differ from \(\displaystyle f(1)\).

    \[\displaystyle 2\]
  3. By the multiplication principle, the total is \(\displaystyle 3\cdot 2\).

    \[\displaystyle 3\cdot 2=6\]
  4. There are 6 injective functions.

Answer

6

🎯 Build my path to this exercise