Sum and Product Rules
Section titled “Sum and Product Rules”Counting starts by describing one outcome precisely. A team is an unordered set of people; a ranking is an ordered list. They require different counts even when they use the same people.
The sum rule adds counts for disjoint cases. The product rule multiplies counts for successive choices when every partial outcome has the stated number of extensions. The choices need not be probabilistically independent; what matters is that the number of available extensions is correct at every stage.
Example. How many three-digit positive integers have distinct digits?
The hundreds digit has choices because zero is forbidden. The tens digit has choices, including zero but excluding the hundreds digit. The units digit has choices. Thus there are
such integers.
If a later number of choices depends on an earlier decision, separate those earlier decisions into cases or count extensions individually. Multiplying an average-looking number of choices can silently overcount.
Permutations and Combinations
Section titled “Permutations and Combinations”There are orderings of distinct objects. Choosing an ordered list of different objects gives
For an unordered -element selection, each set appears times in the ordered count, so
Example. From eight students, choose a three-person committee with one designated chair. How many choices are possible?
Choose the committee, then its chair:
Alternatively, choose the chair first and then two ordinary members: . The chair is distinguished, while the two ordinary members are not ordered.
For repeated objects, divide by permutations among indistinguishable copies. The number of arrangements with multiplicities totaling is . For example, BANANA has distinct letter arrangements.
Casework and Complementary Counting
Section titled “Casework and Complementary Counting”Good casework has no overlap and covers every valid outcome. Useful case labels include the smallest chosen element, the number of selected objects of one type, or whether a particular object is present.
When the forbidden outcomes are easier to describe, count everything and subtract them.
Example. A committee of four is chosen from six seniors and five juniors. How many committees contain at least one student from each group?
There are committees in total. The invalid ones contain only seniors or only juniors; these two cases are disjoint. Therefore the answer is
Words such as “at least one” often suggest a complement. “Exactly two” usually suggests choosing the two directly and then choosing the remaining objects from the other group.
Overcounting and Circular Arrangements
Section titled “Overcounting and Circular Arrangements”Dividing an overcount is valid only if every wanted outcome has the same number of representations in your count.
For distinct people around a circular table, with rotations considered identical and reflections different, fix one person as a reference. Arrange the others relative to that person to get . If seats are labeled, rotations are different and the count is instead.
Example. Six distinct people sit around a circular table. Two particular people must sit next to each other. With rotations considered identical, how many arrangements are possible?
Treat the pair as one block. There are now five distinct units around the circle, giving arrangements. The two people can switch places inside the block, so the answer is
For necklaces with repeated colors, different patterns may have different rotational symmetries. Dividing the number of linear strings by the number of rotations is not automatically valid.
Bijections and Double Counting
Section titled “Bijections and Double Counting”A bijection pairs each object in one set with exactly one object in another set, with a reversible rule. It converts a difficult count into an easier count without changing the answer.
Double counting counts the same collection of objects in two ways. It is especially useful for identities involving binomial coefficients.
Example. Prove for .
Count committees of size with one designated captain. Choosing the committee first gives choices and then captain choices. Choosing the captain first gives choices and then choices for the other members. Both counts describe exactly the same objects, proving the identity.
To explain Pascal’s identity, distinguish one particular person. A size- committee either excludes that person or includes them, giving
The binomial theorem is another counting statement:
Each product term arises by choosing which of the factors supply a . Setting gives , the number of all subsets of an -element set.
Constructing a Bijection Carefully
Section titled “Constructing a Bijection Carefully”A counting correspondence must work in both directions. Describe how to encode an object, explain how to recover the original object, and check that the restriction translates correctly. An encoding that forgets information can identify different objects, while an encoding that allows impossible patterns can introduce extras.
For instance, choosing a subset of an ordered list can be encoded by a binary string, with one indicating a chosen element. If adjacent elements may not both be chosen, the condition becomes a forbidden pattern in the string. This translation makes gaps or recurrence relations available.
Example. How many five-element subsets of contain no consecutive integers?
Write the chosen elements as , with . Set . Then
Conversely, any increasing five-element selection from one through eleven gives a valid original selection by . This is a bijection, so the count is .
The subtraction removes the mandatory gaps. The inverse adds them back, proving that no valid subset was lost and no invalid one was introduced.
More generally, selecting elements from with gaps at least gives when enough room exists. Deriving the shift is safer than recalling the formula without checking whether the required gap counts unchosen elements or differences of chosen values.
Blocks, Gaps, and Multiple Restrictions
Section titled “Blocks, Gaps, and Multiple Restrictions”A block forces objects to stay together; gaps force them apart. The two constructions solve opposite kinds of restrictions and can be combined when different groups have different requirements.
When using gaps, first arrange the unrestricted objects. They create one more gap than their number, including both end gaps. If several distinct restricted objects occupy different gaps, choose the gaps and then arrange the objects. If the restricted objects are identical, the second ordering factor disappears.
Example. Five distinct boys and four distinct girls stand in a row, with no two girls adjacent. Find the number of orders.
Arrange the boys in ways. The five boys create six gaps. Choose four of them for the girls, then assign the four distinct girls to those gaps:
Every valid order determines its boys’ order, its occupied gaps, and its girls’ assignment uniquely, so the construction counts each order exactly once.
If the condition says every boy and girl must alternate, the endpoints are no longer optional: with five boys and four girls, all four internal gaps are used and the order must begin and end with a boy. The answer becomes . A small change in the wording can remove an entire binomial factor.
For overlapping adjacency conditions, blocks need care. Requiring A next to B and B next to C does not produce two independent blocks, since B belongs to both. Instead, analyze the compatible local arrangements first. In this case the three people must form ABC or CBA, a single three-person block with two internal orders.
More Double-Counting Identities
Section titled “More Double-Counting Identities”Binomial identities are often easier to understand by counting a concrete object. The goal is to identify what the summation index records: a chosen captain, the number chosen from one group, or the largest selected element.
Vandermonde’s identity is
Choose an -person committee from groups of sizes . The term with index counts those with exactly members from the first group. These cases are disjoint and exhaustive. Use the convention that a binomial coefficient is zero when its lower index is outside the allowed range.
Example. Evaluate .
The sum counts six-element subsets of a seventeen-element set split into groups of eight and nine. Therefore it equals .
The product inside each term records two independent selections; the sum combines the possible first-group sizes. This interpretation also confirms the bounds without expanding the coefficients.
The hockey-stick identity
counts -element subsets by their largest element. If the largest is , the remaining elements come from the first positions. A weighted variant can often be derived by adding a distinguished object to this same model.
For example, counts a subset with one distinguished member. Choose the member first, then independently choose any subset of the other elements. The method explains the weight , rather than treating it as an obstacle to algebraic simplification.
Permutations as Disjoint Cycles
Section titled “Permutations as Disjoint Cycles”A permutation can be viewed as a collection of directed cycles. A cycle has three written rotations but represents one cycle, so specified elements form cycles. Reversing a cycle generally changes the permutation.
This model is useful when a problem describes repeated application of a rearrangement, fixed points, or the number of cycles. A fixed point is a cycle of length one.
Example. How many permutations of five distinct elements have exactly two cycles?
The cycle sizes must be or . In the first case, choose the fixed element in five ways and arrange the other four into one cycle in ways, giving thirty.
In the second case, choose the two-element cycle’s members in ways. They form one cycle, while the remaining three form cycles. This gives twenty. The total is fifty.
The cases do not need division by two because the two cycle sizes are different and identify the roles uniquely.
Let count permutations of elements with cycles. The new element either forms its own cycle or is inserted immediately after one of the existing elements. Thus
This recurrence is another example of counting by an insertion rule. The same idea can solve problems where constructing the final object directly is awkward.
Symmetry and Burnside’s Lemma
Section titled “Symmetry and Burnside’s Lemma”For arrangements identified under rotations, division by the number of rotations works only when every arrangement has a full orbit. Repeated-color patterns can return to themselves after a smaller rotation, so their orbits have different sizes.
Burnside’s lemma repairs this. For a finite collection acted on by a finite symmetry group ,
To understand the average, count pairs consisting of an arrangement and a symmetry fixing it. An orbit of size has symmetries fixing each member, so the whole orbit contributes exactly pairs. Dividing the total pair count by therefore counts the orbits once each.
Example. Five beads form a circular necklace, each colored with one of three colors. Rotations are identified, but reflected necklaces remain different. Find the number of necklaces.
The identity rotation fixes all colorings. Since five is prime, every nonidentity rotation cycles through all five positions. A fixed coloring must therefore be monochromatic, giving three choices for each of those four rotations.
Burnside gives
Simply dividing by five would not even give an integer. The monochromatic necklaces are exactly the patterns with unusually small rotational orbits.
For a rotation by positions of an -bead necklace, the positions split into cycles. A fixed coloring is constant on each cycle, so with colors there are fixed colorings. This gives a general necklace formula by averaging over the rotations. If reflections are also identified, the symmetry group is larger and its reflections require their own fixed-coloring counts.