Imagine building each permutation by filling in four spaces:
\begin{equation*}
\underline{\phantom{X}}~\underline{\phantom{X}}~\underline{\phantom{X}}~\underline{\phantom{X}}
\end{equation*}
Step 1: Fill in the first space. There are four ways to fill the first space because the first digit can be any of
\(\bs{1}\text{,}\) \(\str{2}\text{,}\) \(\str{3}\text{,}\) or
\(\str{4}\text{.}\) (4 ways)
Step 2: Fill in the second space. There are only three ways to fill the second space, because the second digit cannot be the same as the first digit. For example, if we filled in the first space with a \(\str{2}\) as
\begin{equation*}
\underline{\str{2}}~\underline{}~\underline{}~\underline{}
\end{equation*}
then the second space can only be \(\bs{1}\text{,}\) \(\str{3}\text{,}\) or \(\str{4}\text{.}\) (3 ways)
Step 3: Fill in the third space. There are only two ways to fill in the third space because the third digit cannot be the same as the first or second digit. For example, if we filled in the first two spaces with \(\str{2}\) and then \(\str{4}\) as
\begin{equation*}
\underline{\str{2}}~\underline{\str{4}}~\underline{}~\underline{}
\end{equation*}
then the third space can only be \(\bs{1}\) or \(\str{3}\text{.}\) (2 ways)
Step 4: Fill in the fourth space. There is βno choiceβ, which means that there is only one way to fill in the fourth space. It must be the last missing digit. For example, if we filled in the first three spaces with \(\str{2}\text{,}\) and then \(\str{4}\text{,}\) and then \(\bs{1}\) as
\begin{equation*}
\underline{\str{2}}~\underline{\str{4}}~\underline{\str{1}}~\underline{}
\end{equation*}
then the fourth space can only be \(\str{3}\) and so our final permutation would be
\begin{equation*}
\underline{\str{2}}~\underline{\str{4}}~\underline{\str{1}}~\underline{\str{3}}\text{.}
\end{equation*}
(1 way)
\begin{equation*}
(4)(3)(2)(1) = 24
\end{equation*}
permutations of the set
\(\{\str{1},\str{2},\str{3},\str{4}\}\text{.}\) You can check by drawing the possibility tree, as in
SectionΒ 2.1 Exercise
17.