143. Counting Principle

Count the total number of possible outcomes in a multi-step process

then the total number of outcomes is:

𝑛1𝑛2𝑛𝑘=𝑖=1𝑘𝑛𝑖

Permutations

Number of 𝑘-element subsets of a given 𝑛-element set

(𝑛𝑘)=𝑛!𝑘!(𝑛𝑘)!

Because 0!=1:

(𝑛𝑛)=1(𝑛0)=1𝑘=0𝑛(𝑛𝑘)=(𝑛0)+(𝑛1)++(𝑛𝑛)=2𝑛
Ordering 𝑛 elements𝑛!
Ordering 𝑘 out of 𝑛𝑃(𝑛,𝑘)=𝑛!(𝑛𝑘)!
Choosing and ordering 𝑘 out of 𝑚(𝑚𝑘)𝑘!
Number of subsets of 𝑛2𝑛
Sequences of length 𝑛 from 𝑚 choices𝑚𝑛
Example

Find the probability that 6 rolls of a fair 6-sided die all give different numbers

𝑃(all different)=number of favorable outcomestotal outcomes
  • Total outcomes for 6 rolls: 66
  • Favorable outcomes (all numbers different): 6!=654321

Therefore:

6!66

Combination

Definition: Number of 𝑘-element subsets of a given 𝑛-element set

(𝑛𝑘)

Two ways to construct an ordered sequence of 𝑘 distinct items:

𝑛(𝑛1)(𝑛2)(𝑛𝑘+1)=𝑛!(𝑛𝑘)!(𝑛𝑘)𝑘!