Combinatorics
Combinatorics is the math of counting: how many ways to arrange, choose or distribute things without listing them all. These are the core rules, with links to practice problems for each.
- Practice pages
- 3
- Problems solved
- 36
Practice problems with solutions
Combinatorics: the essentials
Permutations (order matters)
Arranging different objects in a row: ways. Choosing and arranging of them: . Around a circle, only relative order counts: . Practice: circular permutations problems.
Combinations (order does not matter)
Choosing of different objects: .
Combinations with repetition (stars and bars)
Choosing items from types, repeats allowed, or putting identical objects into distinct boxes: . Practice: stars and bars problems.
Inclusion–exclusion
To count what avoids several bad properties, subtract each bad case, add back the overlaps of two, subtract the overlaps of three, and so on:
It is the standard way to handle upper bounds in stars and bars problems.
Graph theory
Counting and structure on networks of points and lines: degrees, Euler paths, trees, coloring. Practice: graph theory problems.