06 Fundamental Counting Principles
A progressive guide to counting finite outcomes using addition, multiplication, factorials, permutations, combinations, the pigeonhole principle, and restriction-based strategies.
Choosing the right counting principle
Counting begins by identifying how an outcome is constructed. Ask whether the outcome comes from one alternative or from several stages, and determine whether different cases can overlap.
The applies when exactly one of several mutually exclusive cases occurs. If one dessert can be chosen from 4 cakes or 3 pies, the total is
because no dessert belongs to both categories.
The applies when an outcome is built through successive stages. If the stages have choices, the total is
For a code consisting of two letters followed by three digits, with repetition allowed, the count is
If the number of choices changes at each stage, multiply the stage-specific counts. For example, choosing a president and a vice president from 8 people gives , because the first choice leaves 7 people.
Takeaway: use addition for mutually exclusive alternatives and multiplication for sequential choices.
Factorials and arrangements
A is defined for every nonnegative integer by
with the special definition
The counts the ways to arrange distinct objects in a line. Thus, 5 distinct books can be arranged in
ways.
Factorials simplify products of consecutive integers. For example,
This expression explains why ordered selections lead naturally to formulas: the first position has choices, the next has , and so on.
Takeaway: factorials count complete arrangements and provide compact notation for consecutive products.
Permutations and repeated objects
A is an arrangement in which order matters. Selecting a president, secretary, and treasurer from 10 members is ordered because assigning the same three people to different offices produces a different outcome.
The number of ordered selections of objects from distinct objects is
For the officer example,
When objects repeat and identical objects cannot be distinguished, divide by the of each repetition count. If there are total objects with repetition counts , the number of distinct arrangements is
For BANANA, there are 6 letters, with 3 A's, 2 N's, and 1 B, so the number of distinct arrangements is
Takeaway: use permutations for ordered selections, and correct for indistinguishable repetitions by dividing by their factorials.
Combinations and
A is a selection in which order does not matter. A committee containing the same people is unchanged by rearranging the order in which its members are listed.
The number of combinations of objects chosen from distinct objects is
For example, the number of 4-person committees from 12 people is
Test the distinction by asking whether swapping two selected objects changes the outcome. If it does, use ; if it does not, use . Their relationship is
because each unordered group of objects can be placed in orders.
are the values . They obey the symmetry rule
and Pascal's identity
The symmetry rule reflects the equivalence between choosing what to include and choosing what to exclude.
Takeaway: decide whether order matters before selecting a or formula.
Guaranteeing repetition
The proves that some repetition must occur when there are more objects than available categories. If more than objects are distributed among boxes, at least one box contains at least two objects.
For instance, 13 people assigned to 12 birth-month categories guarantee that two people share a birth month.
The generalized form states that if objects are distributed among boxes, some box contains at least
objects, where the ceiling gives the least integer greater than or equal to the input. Thus, assigning 25 students to 6 groups forces some group to contain at least
students.
To guarantee that some box contains at least objects, it is enough to show
If every box contained at most objects, there could be at most objects altogether.
Takeaway: compare the number of objects with the number of categories to prove that a repeated value or shared property is unavoidable.
Handling restrictions without double-counting
Restrictions should be identified before choosing a formula. Common methods include reducing choices directly, counting a complement, grouping required objects into blocks, separating mutually exclusive cases, and using the for overlapping conditions.
Direct restriction: For a 5-digit code using digits from 0 through 9, with no repetition and a first digit that cannot be 0, the successive counts are . Therefore, the total is
Complement: If two particular people cannot both be on a 4-person committee from 10 people, subtract committees containing both from all committees:
Blocks: If A and B must be adjacent in an arrangement of A, B, C, D, and E, treat AB as one block. The four objects can be arranged in ways, and the block can be ordered in ways, giving
Cases: A 3-person committee from 5 engineers and 4 designers must contain at least one designer. The complement is shorter:
For overlapping restrictions, use
The intersection is subtracted because it was counted in both individual cases.
Takeaway: make restrictions explicit and choose the method that prevents omissions and double-counting.
A systematic workflow
A reliable solution can be organized as a short decision process:
Define exactly what counts as one outcome.
Decide whether order matters.
Determine whether repetition is allowed and whether repeated objects are distinguishable.
Separate the possibilities into mutually exclusive and exhaustive cases when needed.
Use addition for alternatives and multiplication for stages.
Apply factorials, permutations, or combinations only after modeling the outcome.
Handle restrictions with direct choice reduction, complements, blocks, cases, or inclusion–exclusion.
Check that every outcome was counted once and only once.
A final reasonableness check is useful. If order is ignored, the answer should not exceed the corresponding ordered count; indeed,
If a restriction is added, the restricted count should not exceed the unrestricted count.
The central habit is to describe the structure of an outcome before calculating. Once the structure is clear, the appropriate counting principle usually follows.