nk to do the kth task
?
Then, there are n1⋅n2⋅...⋅nk ways to do the whole sequence of k tasks
∣A1×A2×...×Ak∣=∣A1∣⋅∣A2∣⋅...⋅∣Ak∣
title: Example 1If 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 ∣A∣=n and ∣B∣=m then the number of different f:A→B functions is:
?
m⋅m⋅...⋅mn=mn
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$.
Let S be a finite set having n elements. How many subsets does S have?
Or otherwise, what is the cardinality of P(S)?
We list the elements of S:s1,s2,...,sn.
We can choose a subset A of S by going through this list and decide for each element whether it is in A or not.
We have one ‘task’ for each element: n tasks total
Each task can be done in two ways: IN or OUT
We choose whether to leave it in or leave it out.