Overview
Counting principles provide methods to determine the number of ways events can occur, which is essential for calculating probabilities.
Fundamental Counting Principle
If there are n1 ways to do task 1 AND n2 ways to do task 2, then:
Total ways=n1×n2×⋯×nk
Example
Choosing an outfit: 4 shirts and 3 pants
Total outfits=4×3=12
Factorial
The factorial of n (n!) is the product of all positive integers up to n:
n!=n×(n−1)×(n−2)×⋯×2×1
Special cases:
0!=1,1!=1
| n | n! |
|---|
| 0 | 1 |
| 1 | 1 |
| 2 | 2 |
| 3 | 6 |
| 4 | 24 |
| 5 | 120 |
| 6 | 720 |
| 10 | 3,628,800 |
Permutations
Arrangements where order matters.
All Objects
Arranging n distinct objects:
P(n)=n!
Subset of Objects
Arranging r objects from n distinct objects:
P(n,r)=(n−r)!n!
With Repetition
Arranging n objects where some are identical:
n1!×n2!×⋯×nk!n!
Where n1,n2,…,nk are counts of each identical type.
Combinations
Selections where order doesn't matter.
Formula
Choosing r objects from n distinct objects:
C(n,r)=r!(n−r)!n!=r!P(n,r)
Also written as:
(rn)=r!(n−r)!n!
Properties
C(n,0)=1
C(n,n)=1
C(n,r)=C(n,n−r)
C(n,r)=C(n−1,r−1)+C(n−1,r)(Pascal’s Triangle)
Comparison
| Aspect | Permutation | Combination |
|---|
| Order | Matters | Doesn't matter |
| Formula | n!/(n−r)! | n!/[r!(n−r)!] |
| Notation | P(n,r) or nPr | C(n,r) or (rn) |
| Example | Arranging books | Selecting committee |
When to Use Which
| Scenario | Use |
|---|
| Passwords, arrangements | Permutation |
| Committees, teams | Combination |
| Rankings, placements | Permutation |
| Lottery numbers | Combination |
| Seat assignments | Permutation |
| Card hands | Combination |
Examples
Example 1: Permutation (All Objects)
Arrange 5 books on a shelf:
P(5)=5!=120 ways
Example 2: Permutation (Subset)
Select president, VP, secretary from 10 candidates:
P(10,3)=(10−3)!10!=7!10!=10×9×8=720 ways
Example 3: Permutation (Repetition)
Arrange letters in "MISSISSIPPI":
11 letters: 1M, 4I, 4S, 2P
Ways=1!×4!×4!×2!11!=34,650
Example 4: Combination
Choose 3 students from 10 for a committee:
C(10,3)=3!×7!10!=120 ways
Example 5: Lottery
Pick 6 numbers from 49 (order doesn't matter):
C(49,6)=6!×43!49!=13,983,816 combinations
P(winning)=13,983,8161≈0.0000000715
Example 6: Poker Hands
5 cards from 52:
Total hands: C(52,5)=2,598,960
Flush (5 same suit):
4×C(13,5)=5,148
P(flush)=2,598,9605,148≈0.00198
Combined Problems
Cards Example
P(exactly 2 aces in 5-card hand):
C(52,5)C(4,2)×C(48,3)=2,598,9606×17,296=2,598,960103,776≈0.040