The product rule

The product rule

If there is a sequence of tasks such that:

  • there are ways to do the first task
  • to do the second
  • to do the th task ? Then, there are ways to do the whole sequence of tasks
title: Example 1
If each number plate contains a sequence of three letters followed by three digits (and no such sequence is prohibited), then the number of available different number plates is:
 
$$
	26 \cdot 26 \cdot 26 \cdot 10 \cdot 10 \cdot 10 = 17, 576, 000
$$

Usage with functions

If and then the number of different functions is: ?

title: Example 2 (with functions)
Let $A = \{ a,b,c \}, B = \{ d,e \} \rightsquigarrow n = 3, m = 2$.
- There are $2$ ways to choose a value for $a$.
Then there are $2$ ways to choose a value for $b$ and then $c$.
 
Hence $2^3 = 8$.
Link to original

Counting the subsets of a finite set

Let be a finite set having elements. How many subsets does have? Or otherwise, what is the cardinality of ?

We list the elements of . We can choose a subset of by going through this list and decide for each element whether it is in or not.

  • We have one ‘task’ for each element: tasks total
  • Each task can be done in two ways: IN or OUT We choose whether to leave it in or leave it out.

Hence, by product rule:

Combining sum and product rules

Take for example, how many four-digit numbers can begin with either or ?

  • The set can be broken down into two disjoint sets:
    1. four-digit numbers beginning with
    2. four-digit numbers beginning with
  • In case (1), if we begin with , there are digits to be filled in with choices each. Hence by product rule:
  • In case (2), there are digits to be filled with choices each. So .
  • Hence by sum rule, we combine these to be .