Combinatorics
Introduction
Combinatorics is the mathematics of counting. How many ways can we arrange a set of objects? How many subsets does a set have? How many ways can we distribute items among recipients? These questions arise constantly in probability, computer science, and discrete mathematics.
The challenge in combinatorics is not the arithmetic—the challenge is setting up the problem correctly. The same verbal description can have vastly different answers depending on whether order matters, whether repetition is allowed, and how we define "different" arrangements.
Fundamental Counting Principles
The Multiplication Principle
If a procedure can be broken into stages, where stage
The Addition Principle
If a task can be done in one of several mutually exclusive ways, with
Permutations
A permutation is an ordered arrangement. Order matters: ABC and BAC are different permutations.
Permutations of n Distinct Objects
The number of ways to arrange
By convention,
Permutations of r Objects from n
The number of ways to choose and arrange
Combinations
A combination is an unordered selection. Order does not matter: choosing
Choosing r from n
The number of ways to choose
The formula comes from dividing the permutation count by
Properties of Binomial Coefficients
Symmetry:
Pascal's Identity:
Row Sum:
The Binomial Theorem
The binomial theorem expands powers of a binomial:
Each term
Permutations with Repetition
When arranging objects where some are identical, divide by the factorial of each group's size. For objects with
Stars and Bars
The stars and bars method counts the number of ways to distribute
The number of ways to distribute
The idea: represent the distribution as a sequence of
Summary Table
Ordered, no repetition (permutation):
Ordered, with repetition:
Unordered, no repetition (combination):
Unordered, with repetition (multiset):
Connection to Other Concepts
Combinatorics is essential for probability. The probability of an event is often computed as (favorable outcomes) / (total outcomes), both of which require counting.
The binomial coefficient
In algorithm analysis, combinatorics determines the number of inputs, iterations, or operations. The complexity of many algorithms depends on combinatorial quantities.
Summary
Combinatorics provides systematic methods for counting arrangements and selections. The key distinction is between permutations (order matters) and combinations (order doesn't matter), and between sampling with or without repetition.
The binomial coefficient
The challenge in combinatorics is recognizing which counting principle applies to a given problem. Practice and careful analysis of what "different" means in each context are essential.