20.3: Multiplication Rule
( \newcommand{\kernel}{\mathrm{null}\,}\)
What is
Solution
We can solve this by just writing out the elements of
So
What is
Solution
Writing out all the elements of
For sets
If there are
Warning
The Multiplication Rule only applies to consecutive tasks
To create a specific example of an element from
Suppose you are a casting director and need to select both a primary actor and an understudy for the lead role in a play. If
Now, the actual pool of candidates for understudy will differ based on which actor is offered the lead role. However, no matter who is chosen for the lead, the number of remaining candidates for understudy is the same.
We may extend the Multiplication Rule to any (finite) number of consecutive tasks.
If
Recall that, given alphabet
Solution
To construct a specific example word
ways to choose the first letter, ways to choose the second letter,- …,
ways to choose the letter.
So there are
ways to construct
Suppose
Solution
To construct a specific example word
ways to choose the first letter, remaining ways to choose the second letter, remaining ways to choose the third letter, remaining ways to choose the fourth letter, and- only
remaining way to choose the last letter.
So there are
ways to construct
Similar to Example
Let
Solution
Break into cases based on the length of
Case
Once we choose the first letter, the last is chosen for us, but we are still free to choose the middle letter. So there are
Case
Once we choose the first two letters, the last two are chosen for us. So there are also
Case
Once we choose the first two letters, the last two are chosen for us, but we are still free to choose the middle letter. So there are
Case
Once we choose the first three letters, the last three are chosen for us. So there are also
Total.
Applying the Addition Rule to these non-overlapping cases, we obtain
as the number of palindromes length
Set
Solution
Number of functions.
A function
Number of injections.
An injection
- A look ahead.
-
Notice that the number of injections has turned out to be
We will understand better how this formula arises in Section 21.4.
Number of surjections.
Suppose