Combinatorics Overview
Combinatorics: The Complete Overview
✏️ Introduction to Combinatorics
Combinatorics is the study of counting, arranging, and combining elements from a set. It forms the foundation of probability because to determine how probable an event is, one must first know in how many ways that event can occur.
Key topics covered:
Basic counting (multiplication principle)
Permutations
Combinations
Partitions (including stars and bars)
Multinomial theorem
Basic Counting: The Multiplication Principle
The Fundamental Principle
If there are m outcomes for event A and n outcomes for event B, then there are m×n outcomes for event A and B occurring together.
Basic Principle of Counting: If event A can occur in m ways and event B can occur in n ways, then the joint event (A and B) can occur in m⋅n ways.
Example: Choosing a Main and Side
Suppose there are 3 possible main dishes and 4 possible side dishes. The number of main + side pairs is:
Each main can be paired with any of the 4 sides, leading to 12 distinct combinations.
Practice Problems
Problem 1: 8 waiters and 5 steak options. How many waiter–steak pairs?
Problem 2: 4 shirts, 13 pants, 3 hats. How many outfits?
The principle extends to any number of events: multiply the number of outcomes for each event.
🔄 Permutations
Definition
A permutation is an ordered arrangement of a set of objects. The key word is ordered – two arrangements with the same objects but in a different order count as distinct permutations.
Permutation: An ordered sequence of n distinct objects. The number of permutations of n distinct objects is n! (n factorial).
Counting Permutations of n Distinct Objects
When arranging n distinct items:
First position: n choices
Second position: n−1 choices
…
Last position: 1 choice
Using the multiplication principle:
Factorial notation:
n!=n⋅(n−1)⋅(n−2)⋯1
0!=1 (by definition)
Example: 3!=3⋅2⋅1=6
7!=7⋅6⋅5⋅4⋅3⋅2⋅1 (also 7⋅6!)
Example: Ordering 4 People
Number of ways to order 4 distinct people:
Practice: Baseball Batting Order
9 players, how many batting orders?
Practice: Men and Women Ranked by Height
5 men and 4 women, men ordered among themselves, women ordered among themselves.
Men: 5! ways
Women: 4! ways
Total: 5!×4!=120×24=2,880
Permutations with Identical Objects
When some objects are identical, the number of distinct permutations is reduced.
If there are n objects total, with n1 identical of type 1, n2 identical of type 2, …, nr identical of type r (n1+n2+⋯+nr=n), then:
Example: Arranging Letters A, A, B, C
Total letters = 5 (two A's, one B, two C's).
Practice: Word "PROBABILITIES" (13 letters)
Breakdown: P(1), R(1), O(1), B(2), A(1), I(3), L(1), T(1), E(1), S(1)
(Since 2!⋅3!=2⋅6=12)
🔗 Combinations
Definition
A combination is a selection of r objects from a set of n objects without regard to order. Order does not matter; only which objects are chosen.
Combination ((rn) or nCr): Number of ways to choose r objects from n distinct objects, ignoring order.
Derivation
Start with permutations: n⋅(n−1)⋯(n−r+1)=(n−r)!n! ways to arrange r objects from n in order. Since each combination of r objects can be ordered in r! ways, divide by r!:
Example: Choosing 3 People from 4
(For 4 distinct people, there are four groups of 3.)
Practice Problems
Compute (47100):
Committee Problem: 6 fathers, 8 mothers. How many committees with 2 fathers and 3 mothers?
Choose fathers: (26)
Choose mothers: (38)
Total (using multiplication principle): (26)×(38)
📦 Partitions
A partition divides a set of elements into disjoint subsets (groups). Two types are covered: grouping with specified sizes and the stars and bars method for groups of unspecified size.
Partition with Given Group Sizes
If n distinct objects are to be divided into groups of specified sizes n1,n2,…,nk (where n1+n2+⋯+nk=n), the number of ways is:
This is the same formula as permutations with identical objects, but now applied to assigning distinct items to labeled groups (or individuals).
Example: 8 Fish for 3 People
Jiggle Bob gets 4 fish
Max gets 2 fish
Reagan gets 2 fish
Number of ways to assign the fish (distinct fish labeled A–H):
The reasoning: think of each fish as a letter in an 8‑letter sequence (e.g., JJJJMMRR) where J=Jiggle Bob, M=Max, R=Reagan. The number of distinct sequences is given by the multinomial formula.
Stars and Bars Method
Used when dividing n identical items into k groups (bins) of unknown size (group sizes can be any non‑negative integers summing to n).
Stars and Bars: The number of ways to put n identical items into k distinct bins is:
(nn+k−1)=(k−1n+k−1)
Why? Represent items as stars (∗) and bin separators as bars (∣). With k bins, you need k−1 bars. Arrange n stars and k−1 bars in a row – that's n+k−1 positions. Choose which n positions are stars (or which k−1 are bars).
Example: 12 Balls into 3 Bins
Practice: Non‑negative Integer Solutions
How many sequences (a1,a2,a3,a4) satisfy a1+a2+a3+a4=27?
This is equivalent to putting 27 identical "units" into 4 bins. Using stars and bars:
📐 Binomial Theorem
Definition
The binomial theorem gives the expansion of (x+y)n for any non‑negative integer n.
Derivation via Example: (x+y)3
Expand with labeled subscripts: (x1+y1)(x2+y2)(x3+y3) yields 8 terms, each selecting either x or y from each factor. Removing subscripts and grouping like terms gives:
Coefficients are:
(03)=1 for y3
(13)=3 for xy2
(23)=3 for x2y
(33)=1 for x3
The general term (kn)xkyn−k counts the number of ways to choose k of the n factors to contribute an x (the rest contribute y).
🧬 Multinomial Theorem
The multinomial theorem generalizes the binomial theorem to more than two terms.
Multinomial Theorem: For x1+x2+⋯+xr raised to the nth power:
(x1+x2+⋯+xr)n=∑n1+n2+⋯+nr=nn1!n2!⋯nr!n!x1n1x2n2⋯xrnrThe sum is over all non‑negative integer solutions of n1+n2+⋯+nr=n.
The coefficient n1!n2!⋯nr!n! is called the multinomial coefficient; it counts the number of ways to assign n distinct items to r categories with n1 in category 1, n2 in category 2, etc. (identical to the partition formula).
Example: (a+b+c)4
Total number of terms before simplification: 34=81 (each of the 4 factors picks one of a,b,c). The coefficient for a2bc is:
Similarly, the complete expansion is:
Summing all coefficients gives 34=81, confirming the total number of ordered terms.
Key Takeaway
Combinatorics provides the tools to count arrangements (permutations), selections (combinations), groupings (partitions), and expansions of polynomials (binomial and multinomial theorems). The multiplication principle is the foundation upon which all these formulas rest. Mastery of these counting techniques is essential for probability and many areas of mathematics.

Ask anything
We've read this whole study set, so questions about it get the best answers.