- Learn
- Mathematics
- University Math
- Discrete Mathematics
- Permutations and Combinations
Permutations and Combinations
Counting: Permutations, Combinations and the Binomial Theorem
BeginnerLesson 7 of 10 in Discrete Mathematics Course
What you will learn
- Break a counting problem into stages or disjoint cases, count each part with the sum and product rules, and use bijections and the division rule when a set is easier to count indirectly.
- Use the sum and product rulesCount outcomes that fall into separate cases with the sum rule and outcomes built in stages with the product rule.
- Split problems into cases and count complementsCombine the basic rules by dividing a problem into disjoint cases or by counting what you do not want, and avoid counting any outcome twice.
- Count with bijections and the division ruleCount a set by matching it one-to-one with a set that is easier to count, and correct for outcomes that were counted the same number of times.
- Use the sum and product rules
- Decide whether order matters and whether items repeat, then count arrangements with permutations and unordered selections with combinations, including words with repeated letters and splits into groups.
- Count arrangements with factorials and permutationsUse factorials and r-permutations to count ordered arrangements, including arrangements with restrictions and seatings around a table.
- Count unordered selections with combinationsUse binomial coefficients to count subsets, committees, card hands and strings, and combine them with the sum, product and complement rules.
- Arrange repeated items and split objects into groupsCount strings with repeated symbols, arrangements of words with repeated letters, and the ways to divide distinct objects into groups or boxes.
- Count arrangements with factorials and permutations
- Count unordered selections in which items may repeat, solve integer-equation and distribution problems with stars and bars, and choose the right counting model for a problem.
- Count combinations with repetition using stars and barsCount unordered selections from several types, with repeats allowed, by turning each selection into a row of stars and bars.
- Solve integer equations and distribution problemsCount integer solutions of equations and ways to put identical objects into distinct boxes, including lower and upper limits.
- Choose the right counting modelDecide whether order matters, whether repeats are allowed and whether objects or boxes are distinct, then pick the matching formula and check it on a small case.
- Count combinations with repetition using stars and bars
- Build Pascal's triangle from Pascal's identity, read patterns in it, and use the binomial theorem to expand powers, find coefficients and derive identities.
- Build Pascal's triangle and use its identitiesCompute binomial coefficients, build Pascal's triangle with Pascal's identity, and explain its main patterns.
- Expand powers with the binomial theoremState and explain the binomial theorem, use it to expand powers and find single coefficients, and substitute values to obtain identities.
- Build Pascal's triangle and use its identities
- Prove identities by showing that both sides count the same set, either by counting one set in two ways or by matching two sets with a bijection.
- Prove identities by double countingProve an identity by asking one counting question and answering it correctly in two different ways.
- Prove identities with bijections and case splitsProve that two counts are equal by building an explicit bijection, or by splitting one set by a special element, and write the argument clearly.
- Prove identities by double counting
- Use the pigeonhole principle and its generalized form to prove that some box, value or pattern must occur, and find the smallest number that guarantees it.
- Apply the pigeonhole principleState and prove the pigeonhole principle, choose suitable objects and boxes, and use it in short existence proofs.
- Use the generalized pigeonhole principleUse the ceiling form of the pigeonhole principle to guarantee several objects in one box and find the smallest number of objects that forces this.
- Apply the pigeonhole principle
Permutations and Combinations study guide
1Count with the basic counting rules
Counting starts by deciding what one outcome is. You can then build outcomes in stages, separate them into cases, or replace an awkward count with an easier one. These rules explain why later formulas work. The main checks are whether every outcome is included, whether any outcome is counted twice, and whether every branch of a procedure offers the same number of choices.
1.1 Count cases and choices in stages
A count starts with a precise description of one outcome. A password is a sequence of symbols; a committee is a set of people. Changing that description changes which results count as different. For a finite set of outcomes , its size is written .
Add separate cases
The sum rule counts alternatives that cannot occur together. If and are disjoint, then . With several cases, every outcome must appear in exactly one case.
Consider strings of 1 to 4 lowercase letters, with repetition allowed. The four lengths are separate cases. There are strings of length , so the total is
Multiply stages
The product rule applies when an outcome is built by making a sequence of choices. If the first stage has choices and each first choice allows second choices, there are outcomes. For finite sets, this gives .
A code with two letters followed by three digits has five stages. Each letter has 26 choices and each digit has 10. Repetition is allowed, giving
The actual choices may change as you proceed. Choosing a president and a different secretary from 12 members gives assignments. The remaining people depend on the president, but the number remaining is always 11. This is the generalized product rule; the choices need not be independent.
Turn familiar objects into choices
A length- string over symbols has possibilities. Thus eight-bit strings number . Each element of an -element set has two membership choices, in or out, so the set has subsets, including the empty set.
A function from an -element domain to an -element codomain makes one image choice per domain element. It has possibilities. For a one-to-one function, used images become unavailable, giving when .
When one product fails
For four-bit strings with no consecutive 1s, choosing a 1 changes the number of choices at the next stage. After a 0 either bit is allowed; after a 1 only 0 is allowed. A tree or case split is needed. The complete list is 0000, 0001, 0010, 0100, 0101, 1000, 1001, 1010: eight strings.
Do not decide between addition and multiplication from the word “or” or “and” alone. Identify whether you are joining disjoint cases or building each outcome in stages. Also check what the stages distinguish: counts two different offices. For two equal co-chairs it counts each pair twice, because exchanging the two choices leaves the same pair.
Key Takeaways
- Add counts for cases that are disjoint and exhaustive.
- Multiply stage counts when each earlier choice leaves the same number of next choices.
- Length- strings over symbols number ; an -element set has subsets.
- Check whether the procedure counts one outcome more than once.
1.2 Make cases disjoint or count the complement
Restrictions often make a direct count awkward. Two useful approaches are to split the valid outcomes into separate cases or to count all outcomes and subtract the invalid ones. Both require a clearly defined whole set.
Cases must cover the set exactly once
Choose a property that gives each valid outcome one case. Then count within each case and add. For example, eight-bit strings that start with 1 or end with 00 cannot be counted by adding those two descriptions: some strings meet both.
Make the cases disjoint: strings that start with 1 number . Strings that start with 0 and end with 00 have five free positions, giving . The total is . Every valid string either starts with 1 or starts with 0, so the cases also cover all valid strings.
Count the opposite condition
For a subset of a finite universe , the complement rule gives . “At least one” often has the simpler opposite “none.”
A four-digit PIN allows zero at the start and repeated digits. There are PINs. Avoiding 7 leaves nine choices at every position, giving . Therefore the number containing at least one 7 is .
Choosing a position for a 7 and freely filling the rest gives , which overcounts. The PIN 7707 is produced three times, once for each possible designated 7. Different PINs have different numbers of 7s, so a single division will not repair this count.
A valid case split uses the first 7. Its position gives counts , , and . Before that position there are nine choices per digit; afterward there are ten. Their sum is again 3,439.
Let the restrictions decide the order
Count three-digit even numbers with all digits different. Fill the final digit first, because it controls whether zero has already been used.
- Final digit 0: the first digit has 9 choices and the middle has 8, giving 72.
- Final digit 2, 4, 6 or 8: there are 4 final choices, 8 nonzero first choices different from the last, and 8 middle choices, giving 256.
The total is . A uniform product would miss the fact that the first position loses a choice only in the second case.
Repetition as a complement
Five-letter strings with some repeated letter are all strings minus strings with every letter different:
This counts strings with several repeated letters once each. A direct split by “the repeated letter” would need more care, since one string can repeat several letters. Check a smaller instance by listing outcomes, and compare each restricted count with its unrestricted total; a subset cannot be larger than its universe.
Key Takeaways
- Choose cases so each valid outcome belongs to exactly one.
- For “at least one,” try subtracting the count with none from the unrestricted total.
- Fill a restricted position early when its value changes later choice counts.
- A designated repeated item can count the same outcome several times.
- Check a restricted count against its total and, when practical, a smaller listed case.
1.3 Match outcomes and correct equal overcounts
An awkward set may have the same size as a simpler set. Another route is to count several descriptions of each outcome, then correct the overcount. The first route needs a reversible match; the second needs a constant number of descriptions per outcome.
A reversible match preserves the count
A bijection from to matches every element of one finite set with exactly one element of the other. Therefore . Describe both the map and its inverse so that no match is missing or duplicated.
Map a subset of to its membership bit string: position is 1 exactly when belongs to the subset. For , becomes 101 and the empty set becomes 000. To reverse the map, collect the positions containing 1. Every bit string has exactly one such subset, so the strings count the subsets.
For a grid path from to using only right and up unit steps, record R or U for each step. This gives five Rs and three Us, for instance RRURRUUR. Reading the letters reconstructs the path. Choosing the three U positions among eight steps gives paths.
Divide only by a uniform multiplicity
Suppose every outcome in has exactly descriptions in a finite set . The division rule gives
The constant belongs to each outcome, not just an average. It must count all its descriptions.
If 10 people each shake hands once with every other person, there are ordered pairs of different people. Each handshake has exactly two ordered descriptions, and . Dividing gives 45 handshakes. There is no division by 10: choosing the first person did not create ten descriptions of each handshake.
Rotations can create an equal overcount
Seat six distinct people around a table, treating rotations as the same seating. Temporarily label six chair positions. The labeled arrangements number . Each circular seating has six different rotations, so there are circular seatings. Fixing one person and arranging the other five gives the same count directly.
Repeated patterns can break the division rule
For four-bit patterns where rotations count as the same, dividing by 4 fails. The pattern 0000 has only one distinct rotation, 0101 has two, and 0001 has four. The rotation classes are represented by 0000, 0001, 0011, 0101, 0111 and 1111: six classes.
A one-to-one map alone also falls short of equal size if it misses elements of the target. It proves only . An inverse defined on every target element checks that the map is onto as well as one-to-one.
Key Takeaways
- A bijection has an inverse and proves that two finite sets have equal size.
- The division rule needs exactly the same number of descriptions for every outcome.
- For distinct people around a table, rotations give an equal overcount; repeated patterns can have different rotation counts.
2Count arrangements and selections
Arrangements record positions or roles; selections record membership. This difference controls whether factorials and permutations or combinations fit a problem. Repeated copies introduce another kind of overcount, and names on groups can change what the outcome records. Worked examples connect the formulas to seats, committees, card hands and assignments to tasks.
2.1 Arrange distinct items with restrictions
An arrangement records order or roles. Swapping two chosen objects changes an arrangement when the positions have different meanings. Choosing medal winners in rank order is therefore different from choosing a team of the same people.
Factorials and partial arrangements
For a nonnegative integer , factorial means , with . There is one empty arrangement, which explains the value at zero. For example, and .
Arranging all distinct objects gives possibilities. An -permutation fills positions without using an object twice:
The notations , and the falling factorial mean the same count. Positions can also be viewed as a domain: assigning a different object to each position is a one-to-one function.
Gold, silver and bronze among eight runners give results. Cancel factorials before multiplying. For example, ; computing the whole of adds unnecessary arithmetic.
Keep a pair together
For six people in a row with Ana and Ben adjacent, regard them as one block. The block and the four other people make five units, with orders. Inside the block, AB and BA are different, so multiply by 2. There are 240 rows with the pair together.
To keep them apart, subtract those rows from all rows, giving . The complement counts every row with the pair apart once, even when several people stand between them.
Fill fixed positions first
For arrangements of PRIME that start and end with a vowel, I and E must occupy the ends. They have two possible orders. The consonants P, R and M fill the middle in ways, giving arrangements. Filling an unrestricted middle position first would hide which letters remain for the restricted ends.
Around a circle
When rotations of a seating of distinct people are equal, fix one person and arrange everyone else relative to them. There are seatings. Six people give . Clockwise and counterclockwise orders are different for a table. For distinct beads on a ring, if flipping the ring also makes arrangements equal, divide by 2 to get .
Repetition changes the model
Three-letter codes have possibilities with repetition, but when all letters differ. The decreasing factors belong to selection without reuse. Keep factorial arithmetic intact as well: , not the factorial of .
Key Takeaways
- Use for ordered choices without repetition.
- Cancel factorials before multiplying; .
- Treat required adjacent items as a block, then count their internal orders.
- Fill restricted positions before unrestricted ones when this simplifies the choices.
- Circular arrangements of distinct objects number when rotations are equal.
- If distinct-bead rings also identify reflections, divide by 2 for .
2.2 Choose subsets, committees and card hands
A selection ignores order. Exchanging the order in which members were chosen leaves the same committee. An -combination is an -element subset of distinct elements, counted by the binomial coefficient “ choose .”
Remove the order exactly once
Each -element subset has orders, so
The notations , and are equivalent. The formula applies for ; when the count is zero. A three-person committee from 10 people has possibilities. Giving its members three different offices produces assignments.
Taking elements determines which elements are left. Thus . Computing as shortens the calculation.
Combine selections
Choose three women from seven and two men from five. The groups are disjoint, so every pair of selections gives one committee:
For four-person committees from six women and five men with at least one woman, subtract the all-men committees: . Choosing a woman first and then three others overcounts: a committee with several women can be produced with several different first choices.
Count ranks and suits separately
A standard deck has 52 cards: 13 ranks and four suits. An unordered five-card hand is one of hands.
A full house has a triple of one rank and a pair of another. Choose the triple's rank in 13 ways and its three suits in ways. Choose the pair's rank in 12 ways and its suits in ways. The product is . The rank roles differ, so exchanging their roles changes the hand.
For two pair, the two pair ranks play equal roles. Choose them as , then choose two suits for each, giving possibilities. The fifth card has any of 11 other ranks and any of four suits, giving 44 choices. The count is . Choosing the pair ranks in order would double this count.
Choose positions when objects are strings
A ten-bit string with exactly four 1s is determined by its four 1 positions. There are such strings. A grid path with five right steps and three up steps is determined by the three up positions among eight, giving .
The swap test applies in each setting: swapping chosen members changes a ranking, but not a committee. Swapping the positions of a 1 and a 0 changes a string, which is why the selected objects in its combination count are positions.
Key Takeaways
- Use for unordered choices without repetition.
- Choosing members and assigning roles are different counts.
- Symmetry gives .
- Multiply counts for separate parts of a selection; use a complement for “at least one.”
- Distinguish rank roles in card counts: a triple and a pair differ; two pair ranks do not.
- Bit strings and grid paths can be counted by choosing positions.
2.3 Account for identical copies and group labels
Two different situations involve repetition. You may freely choose a type at every position, or you may rearrange a fixed collection containing identical copies. The first counts all strings; the second fixes how often each type appears.
Free repetition or fixed totals
A length- string over types has outcomes when each position can use any type. A four-digit PIN therefore has possibilities.
For a fixed collection of objects containing identical copies of each type, the distinct arrangements number
Imagine temporarily labeling all copies. There are labeled orders. Removing the temporary labels merges exactly labeled orders into each visible arrangement. This uniform overcount justifies the division.
MISSISSIPPI has 11 letters: one M, four Is, four Ss and two Ps. The count is . Choosing the positions type by type gives the same result: .
BANANA has three As, two Ns and one B, giving . For just two symbol types, with ones and zeros, the expression reduces to .
The same formula assigns distinct objects
The multinomial coefficient also counts assignments of distinct objects to labeled groups with fixed sizes. Here the denominator removes order inside each group, while the group labels remain meaningful.
Assign 10 people to three named tasks needing five, three and two people. Choose the first task's five people, then the second task's three, and put the remaining two on the last task. This gives , equal to .
Names on groups matter
Six people assigned to three named rooms of two give assignments. If the outcome is three unnamed pairs, the same pairs can be assigned the three room names in ways. Remove those names by dividing again: pairings. Divide by permutations of equal-sized groups only when those groups are interchangeable in the outcome.
With no size requirements, each distinct object independently chooses a labeled box. Five different letters into three mailboxes give assignments. The base is the number of boxes; the exponent is the number of objects making choices. Identical objects do not make distinguishable choices: the arrangements AAB, ABA and BAA number three, not six.
Key Takeaways
- Free repetition in ordered positions gives .
- A fixed multiset has distinct arrangements.
- The multinomial coefficient also assigns distinct objects to labeled groups of prescribed sizes.
- Removing names from interchangeable equal-sized groups requires another division.
- Unrestricted assignments of distinct objects to labeled boxes number .
3Count selections with repetition and distributions
Repeated unordered choices are best recorded as counts of each type. Stars and bars turns those counts into a row of symbols, linking selections, integer equations and distributions. Minimum amounts, limited supplies and unused capacity change that row in different ways. Choosing a model also requires deciding whether the objects and their destinations have identities.
3.1 Count repeated selections with stars and bars
An unordered selection may include several copies of a type. Its outcome records how many of each type you take. Choosing two of one type and one of another gives the same selection however the items were picked.
Record the counts in a fixed type order
Suppose you choose items from types, with enough of each type available. Write a star for each item and place bars between the types. The counts between bars give the selection. Types have a fixed order, so an empty region means zero of that type.
For six pastries from four kinds, the row “** | * | | ***” represents two of the first kind, one of the second, none of the third and three of the fourth. Adjacent bars are allowed. A bar at the start or end likewise allows zero of the first or last kind.
To reverse the construction, read the number of stars in each of the four regions. There is exactly one row for each selection and exactly one selection for each row. This stars-and-bars bijection turns a repeated selection into a position choice.
Choose the star or bar positions
The row contains symbols: stars and bars. Choose the star positions, or equivalently the bar positions:
For six pastries from four kinds, there are nine positions containing six stars and three bars. The count is . There are only three bars because four regions need three boundaries between them.
List a small case
Two items from types give the six selections . The formula gives . The ordered strings would also distinguish from and give . Ordinary combinations would permit only and give .
You cannot get the repeated-selection count by dividing nine ordered strings by . An all-different pair appears in two orders, but appears in only one. The multiplicity is not constant.
More items than types
The selection size can exceed the number of types. Choosing five coins from two kinds gives selections: take zero through five coins of the first kind, with the remaining coins of the second kind. Ordinary combinations without repetition would give zero here, since five distinct types cannot be selected from two.
Supply limits change the count
The unrestricted formula permits all items to be of one type. Each type therefore needs a supply of at least . If a kind has fewer available, some star rows describe impossible selections. A count with one limited type can be found by subtracting the rows that exceed its supply. A requirement to take at least one of every type also changes the row conditions: first reserve those items, then distribute the remainder.
Key Takeaways
- An unordered selection with repetition records a count for each type.
- Use stars and bars for items from types.
- The count is .
- Zero counts are represented by empty regions; the selection size may exceed the number of types.
- Limited supplies or minimum counts require an adjustment.
3.2 Count solutions with bounds and spare capacity
A distribution of identical objects into labeled boxes is determined by the number in each box. If is the count in box , distributing objects into boxes means solving in nonnegative integers.
Nonnegative and positive counts
Zeros are allowed in the stars-and-bars formula, giving solutions. For , this is .
If every count must be positive, place one object in every box first. Set . The new variables are nonnegative and have total , giving when . For total 10 in three positive parts, the count is . If , there are no positive solutions.
Subtract lower bounds from the total
For with and , write and . Then
with all three variables nonnegative. The count is . Adding the reserved amounts back recovers exactly one original solution, so the substitution preserves the count. Changing the variables without changing the total would count too many objects.
One upper bound
Keep nonnegative but require . Start with all 66 solutions. The invalid ones have ; subtract 4 from that variable to get a nonnegative equation of total 6. There are invalid solutions, leaving .
A direct check fixes at 0, 1, 2 or 3. The other two counts have 11, 10, 9 or 8 possible pairs, totaling 38. The invalid threshold is 4, because 3 itself is allowed.
Several upper bounds
Invalid cases can overlap. Subtracting each separately can remove a solution twice. Use disjoint cases. If both and in the equation of total 10, choose their values freely from 0 through 3. Each pair leaves . There are exactly solutions.
Turn an inequality into an equation
For , introduce the slack variable . It records the unused amount and is uniquely determined. Now four nonnegative counts sum to 10, giving solutions. Slack is not an extra free choice for a fixed original solution.
Twelve identical balls in four numbered bins give distributions. Requiring every bin to be nonempty reserves four balls and gives . Numbered bins keep their identities even when they receive the same number of balls.
Key Takeaways
- Nonnegative solutions of number .
- Subtract each lower bound from its variable and from the total.
- For one upper bound, subtract solutions starting at the first forbidden value.
- Handle overlapping upper-bound violations with disjoint cases.
- A slack variable records the unused amount in an inequality.
- Identical objects in labeled boxes correspond to integer count vectors.
3.3 Choose a model from what makes outcomes different
Counting formulas describe different kinds of outcomes. Decide what the outcome records before putting numbers into a formula. “Choose four” alone does not tell you whether order matters or whether a type may be used repeatedly.
Two questions separate four models
Ask whether swapping two chosen items changes the outcome, and whether repetition is allowed. For choices from distinct types:
| Outcome | Repetition allowed | No repetition |
|---|---|---|
| Ordered | ||
| Unordered |
With four letters and two choices, the counts are 16 ordered pairs with repetition, 12 ordered pairs without repetition, six unordered distinct pairs, and ten unordered pairs with repetition. The last count adds to the six distinct pairs.
Use the meaning of the positions
Consider four scoops from 10 ice-cream flavors. A cup records only the number of scoops of each flavor. With repeats it gives selections. A cone records the flavor order from bottom to top, so repeats give sequences.
Requiring four different flavors changes the counts: the cup gives , and the cone gives . Neither the word “scoops” nor the number of flavors chooses the formula; the equality of outcomes does.
A problem can use more than one model
Choose four members from 10 people, then choose one of those members as chair. The committee is unordered, but the chair has a distinct role:
A second count chooses the chair first and then three of the other nine people: . It counts the same committee-with-chair outcomes. Dividing the whole result by would incorrectly erase the chair's role as well as member order.
Distinct objects and labeled boxes
For distributions, ask two additional questions. Are the objects distinguishable? Are the destinations named? Distinct objects each choose a destination, giving a power when there are no size limits. Identical objects leave only a count per labeled box, giving stars and bars. Prescribed box sizes use a multinomial coefficient.
Three named rooms containing two of six people give 90 assignments; three unnamed pairs give 15. Removing names changes the outcome. Do not divide by a number of orders unless every outcome really has that many descriptions. For repeated selections, fails because and have different numbers of orders.
For a small check, list every outcome for two choices from two types. The unordered repeated list is ; the ordered list also contains . Such a list tests the model itself before large arithmetic obscures a mistake.
Key Takeaways
- The swap test determines whether order matters.
- Check repetition separately from order.
- A committee with a chair combines an unordered selection with a role assignment.
- Distributions also depend on object identities and destination labels.
- Dividing by cannot erase order when multiplicities differ.
4Work with binomial coefficients and the binomial theorem
Binomial coefficients connect subset counts with algebraic expansions. Pascal's triangle organizes those coefficients through a case split, while the binomial theorem explains how choosing terms from factors produces each coefficient. These connections let you compute a single coefficient, locate a constant term or derive an identity without multiplying out an entire power.
4.1 Read Pascal's triangle and its patterns
Binomial coefficients count subsets, but they also form a number pattern. Pascal's triangle builds each row from the previous one. Its structure gives fast computations and records identities that can be explained by counting subsets.
Compute the edges and use symmetry
For , . The edge entries are : take nothing or take everything. The next entries are . Choosing what to omit gives .
For hand calculation, use the smaller lower index and cancel. For example, .
Why neighboring entries add
Pascal's identity is
Single out one element from elements. A -subset either contains it or does not. If it does, choose its other members from the remaining . If it does not, choose all from those . The cases are disjoint and exhaustive.
Number rows and positions from zero. Row lists through . Rows 0 through 6 are:
- 1
- 1, 1
- 1, 2, 1
- 1, 3, 3, 1
- 1, 4, 6, 4, 1
- 1, 5, 10, 10, 5, 1
- 1, 6, 15, 20, 15, 6, 1
Each inner entry is the sum of the two entries just above it. Thus adjacent entries and produce . The result has the larger of the two lower indices.
Read the patterns
Every row is symmetric. Its sum is , because grouping all subsets by size counts every subset once. Row 6 sums to 64. Entries grow toward the middle and then decrease. The maximum is at , with a second equal maximum at for odd .
The hockey-stick identity adds a diagonal:
For and , it gives . The lower index on the diagonal stays fixed; the answer's lower index increases by one. A counting explanation groups -subsets by their largest element: if that element is , choose the other elements from the preceding .
The row “1, 4, 6, 4, 1” is row 4, not row 5. Its five entries correspond to subset sizes zero through four. Counting the number of entries as the row number shifts every coefficient by one.
Key Takeaways
- Row consists of through ; numbering starts at zero.
- Pascal's identity splits subsets by whether they contain one distinguished element.
- Rows are symmetric, sum to and peak in the middle.
- The hockey-stick identity sums a fixed-index diagonal to .
4.2 Expand powers and find a single coefficient
Multiplying a binomial power means choosing one term from every factor. Many different choices produce the same powers of the variables. Binomial coefficients count how often each resulting term appears.
The theorem and its meaning
For real numbers and an integer ,
Choose which of the factors supply . The other factors supply , so each such choice produces . There are choices, which proves the coefficient. The terms have exponent sums and coefficients from row of Pascal's triangle.
For example, . Writing only misses the choices that mix terms from different factors.
Coefficients and signs belong to the powers
For , use . The five terms are , , , and . Thus
At , both sides equal 1. The sign alternates because odd powers of are negative. Raise the whole term: , so a coefficient outside a variable cannot be left unchanged.
Find one term without expanding everything
In , the general term is . For , match exponents to get . The coefficient is
For a constant term, collect the powers first. In , with , the general term is . Setting the exponent to zero gives , so the constant term is . A candidate value of must be an integer between zero and the power.
Substitute values to obtain identities
Putting yields . Putting yields for . The even- and odd-index sums are therefore each . Putting gives .
For a small increment, early terms can give an approximation. Here . The exact value begins ; the omitted terms explain the difference. The approximation sign matters because those terms are small, not zero.
Key Takeaways
- The coefficient chooses the factors supplying the second term.
- In each term of , the exponents sum to .
- Raise numeric coefficients and signs together with the variables.
- For a single coefficient, match exponents before evaluating.
- A constant term has total variable exponent zero.
- Substitution gives identities and small increments permit approximations.
5Prove identities with combinatorial arguments
Counting can prove an identity as well as evaluate a number. One approach describes a single set and counts it in two ways; another matches two sets with a reversible map. The work is in justifying every factor, every case and every inverse. Committees with roles, complementary subsets and paths provide models for writing arguments that hold for every allowed input.
5.1 Prove an identity by counting the same objects twice
A combinatorial identity can express two ways to count one set. A double-counting proof explains what the objects are and why each side counts every object exactly once. Computing matching values for a few inputs checks examples but leaves other inputs unproved.
Start with a set of outcomes
For , count the subsets of an -element set. Sorting subsets by size gives for each size , hence the sum. Deciding independently whether each element belongs gives . Both descriptions count the same subsets.
A useful proof names the set, explains the left count, explains the right count, and concludes equality. Every factor must have a role, and every summed case must be disjoint from the others.
Committees with a chair
For ,
Count a committee of people with one of its members designated chair. First choose the committee in ways, then the chair in ways. Alternatively, choose the chair from all people, then choose the other members from the remaining .
The chair is part of the outcome on both sides. For , the two counts are and . Counting ordinary committees on one side and committees with a chair on the other would compare different sets.
Split a selection between two pools
Vandermonde's identity is
Take disjoint pools of women and men and count -person groups. Direct selection gives the left side. If a group contains women, choose them in ways and its men in ways. The group has exactly one value of , so the cases are disjoint and exhaustive. Impossible selections contribute zero.
Setting and using symmetry gives . With , this is . The square arises from choosing equally sized complementary contributions from two equal pools, after applying symmetry.
Let the committee size vary
Count a nonempty committee of any size with a chair. Grouping by its size gives . Choosing the chair first gives choices, and every other person may independently join or stay out. This gives , proving
For , . The empty committee contributes nothing because it has no possible chair. No extra ordering of the other members belongs in either count.
Key Takeaways
- Name a single set that both sides count.
- Explain each factor and verify that summed cases are disjoint and exhaustive.
- Keep roles and ordering the same on both sides.
- Vandermonde groups selections by how many members come from one of two pools.
- Testing numerical instances is a check, while a general counting argument proves the identity.
5.2 Prove equal counts with an inverse or a case split
Two counts can be equal because their objects have a reversible correspondence. A related method partitions a set by a property such as whether it contains a special element. Both methods expose the structure behind an identity.
Define the map and its inverse
To prove by a bijection, specify the input and output sets, describe the map, and show that every output has exactly one input. Giving an inverse usually checks both uniqueness and complete coverage.
For , let be an -element set. Map each -subset to . Its image has size . Complementing again returns , so this map is its own inverse. This proves symmetry for every , including the empty and full subsets.
Merely assigning an output to each input is insufficient. A map could merge inputs or miss outputs. The inverse must start from an arbitrary member of the target set and recover a valid member of the input set.
Encode a path as a subset
A bit string with exactly ones corresponds to the positions containing 1, giving strings of length . Reconstructing the string from the positions supplies the inverse.
A grid path with right steps and up steps similarly corresponds to the subset of up-step positions among positions. Given that subset, write U there and R elsewhere, then follow the steps. The result always has the required endpoint. Hence the number of paths is .
Partition by a special element
For Pascal's identity, count -subsets of . Those containing choose further elements from the first ; those excluding it choose all from the first . This proves
No subset lies in both cases, and every subset lies in one. These two checks justify adding the counts.
Partition by the largest element
To prove the hockey-stick identity, count -subsets of . Directly, there are . In a case whose largest element is , choose the other elements from the preceding , giving .
The largest element ranges from through , so ranges from through . Each subset has exactly one largest element. Adding gives .
Algebra can prove the same identities: Pascal's two terms can be combined over the common denominator . A counting proof instead makes the meaning of each term visible, which can help discover the identity before manipulating its symbols.
Key Takeaways
- A bijective proof specifies a map into the target set and an inverse.
- Complementation proves binomial symmetry because applying it twice returns the input.
- Step-position encoding gives a reversible correspondence between grid paths and subsets.
- A special-element split proves Pascal’s identity; a largest-element split proves the hockey-stick identity.
6Prove existence with the pigeonhole principle
Existence arguments ask what must happen even when the actual arrangement is unknown. The pigeonhole principle forces objects to share a category when there are too few categories to keep them separate. Its stronger form guarantees larger groups. The central skill is designing useful boxes, then checking exactly what a shared box proves and how many objects are needed to force it.
6.1 Find boxes that force two objects together
Some questions ask whether a pattern must exist, not how many patterns there are. The pigeonhole principle answers them by placing objects into fewer boxes. The boxes may be categories, remainder classes or regions of space.
State and prove the principle
If more than objects occupy boxes, with , at least one box has at least two objects. If every box held at most one, the total would be at most , a contradiction. In function language, a map from a larger finite set to a smaller one cannot be one-to-one.
Thirteen people have only 12 possible birth months, so two share a month. Including February 29 gives 366 possible birthdays, so 367 people force a shared birthday. The conclusion names an existing collision; it need not identify the people or the month. With only 12 people, all 12 months could differ.
Remainders are natural boxes
Dividing integers by a positive integer gives remainders . Any integers include two with the same remainder. Their difference is divisible by : writing them as and makes the difference . Thus any six integers contain two whose difference is a multiple of five.
Design boxes to force a useful relation
Choose six distinct numbers from . Use the five boxes , , , , . Two chosen numbers must occupy one box, so they are consecutive. A common divisor of consecutive integers divides their difference, 1; the pair is therefore relatively prime.
For five points in a square of side 2 m, divide it into four squares of side 1 m. Assign a boundary point to one adjacent region consistently, so every point goes into exactly one box. Two points share a region, and their distance is at most its diagonal, m. The boxes were chosen to control distance.
Use subsets as the objects
Take any 10 distinct two-digit positive integers. Their subsets have sums from zero to at most . There are at most 946 sum values, so two different subsets have equal sums.
The subsets may overlap. Remove their common elements from both. Their remaining sums stay equal, and the remaining subsets are disjoint. Neither can be empty: if one were empty, the other's positive sum would have to be zero; if both were empty, the original subsets would have been equal. Thus two disjoint nonempty subsets have the same sum.
The proof depends on a well-defined assignment and a strict excess of objects over boxes. It guarantees at least one crowded box, not that every box is occupied or that every pair of objects shares a box.
Key Takeaways
- More objects than boxes force at least one repeated box.
- Name the objects, the boxes and a unique assignment to a box.
- Equal remainders force a difference divisible by the modulus.
- Choose boxes so sharing one implies the relation you need.
- Equal-sum subsets can be made disjoint by removing their common elements.
6.2 Guarantee a larger group and prove the threshold
A box can be forced to hold more than two objects. Compare the average occupancy with the next available integer to find a guaranteed group size. To prove the smallest forcing total, also show an arrangement that avoids the conclusion just below it.
Use the ceiling of the average
For objects in boxes, some box contains at least objects. The ceiling is the smallest integer greater than or equal to its argument: and .
If every box held at most , each would have fewer than objects. Their total would be less than , a contradiction. Among 100 people, some birth month occurs at least times. In a hash table with 1,000 records and 300 slots, some slot receives at least four records.
Rounding down gives too weak a result when the average is not an integer. The conclusion concerns at least one box. Other boxes may be empty.
Find the least forcing total
To avoid a box holding objects, put at most in each of boxes. This permits objects. One more forces a box to reach :
The arrangement with exactly objects in every box shows that this threshold is smallest when that arrangement is possible. For four card suits, eight drawn cards could be two of each suit. Nine cards therefore guarantee three of one suit, and eight do not.
A named box has a different worst case
To guarantee three hearts from a standard deck, the draw might first include all 39 non-hearts. It then needs three hearts, giving cards. Nine cards guarantee three of some suit, which could be spades. The conclusion “some box” cannot be replaced with a chosen box.
A proof about mutual relationships
In any six-person group, three people all know one another or three are all mutual strangers, where knowing is mutual. Fix a person A. The other five divide into those who know A and those who do not. One class has at least members.
If three members know A, either two of those three know each other, making a knowing triple with A, or no pair among them knows each other, making a stranger triple. If three do not know A, either two of them are strangers, making a stranger triple with A, or every pair among them knows each other, making a knowing triple.
The first pigeonhole step only supplies three people with the same relation to A. Examining the relations within that trio completes the proof; three people who all know A need not all know one another.
Key Takeaways
- Some box holds at least of objects in boxes.
- The least unrestricted total forcing in one of boxes is .
- To prove minimality, give a configuration with one fewer object that avoids the conclusion.
- A guarantee about a named box requires its own worst-case argument.
- The six-person argument also checks relationships within the trio supplied by pigeonhole.
Permutations and Combinations examples
1Build a count that includes each outcome once
12 steps
- 1IntroductionDescribe one outcome first
Imagine a system generating labels. Before counting, decide what makes two labels different: their symbols, their length and their order. That decision defines the outcome set. We will count complete labels by stages, handle a restriction with a complement, then examine whether a counting procedure describes each outcome exactly once.
- 2ExampleFill two positions
A label uses one of four letters followed by one of three symbols. For each letter, all three symbols remain available. The outcomes form four groups of three, so there are labels. This is a product because every complete label needs both stages; the groups are indexed by the first choice.
- 3Key InsightAvailable items can change
Choose a coordinator and a different recorder from eight people. Once the coordinator is selected, that person is unavailable, but seven people always remain. The count is . The generalized product rule needs a constant number of choices at each stage, even though the identities of those choices depend on the earlier selection.
- 4ChallengeCount two possible lengths
A tag has either one or two positions, each filled from four symbols with repetition. How many tags exist?
---reveal---
There are four one-symbol tags and two-symbol tags, giving 20. The product counts positions within the two-symbol case; addition joins the two different lengths. Multiplying four by sixteen would count a pair of tags.
- 5ExampleExclude the unwanted tags
Now use four positions and symbols A, B, C and D. We want at least one A. All tags number . Tags with no A have three choices in each position, giving . Subtracting leaves valid tags. A tag containing several As is still removed from the unrestricted total only if it contains none, so there is no repeated counting.
- 6TipGive each tag one case
A direct count can instead classify tags by their first A. The counts are 64, 48, 36 and 27: before the first A, only B, C and D are allowed; afterward, all four symbols are allowed. Their sum is 175. Designating just any A creates overlap, because a tag with several As has several possible designated positions.
- 7ChallengeSeparate an overlapping description
How many length-five binary strings start with 0 or end with 0?
---reveal---
Count the sixteen strings starting with 0, then the eight starting with 1 and ending with 0. The total is 24. These cases do not overlap and include every valid string. Adding sixteen for each original description would count strings with 0 at both ends twice.
- 8ExplanationEncode a subset with bits
For a subset of , write 1 at a position when that element is included and 0 otherwise. The subset becomes 0101. To reverse the map, read the 1 positions. Every four-bit string gives exactly one subset, so this bijection proves there are subsets. The empty subset corresponds to 0000.
- 9ExampleFind the exact overcount
Eight people each greet every other person once. Choosing a first and a different second person gives ordered pairs. Each greeting appears twice, once from each person’s direction. Dividing by that constant multiplicity gives 28 greetings. The divisor comes from the descriptions of each greeting, not from the number of people.
- 10ChallengeCheck the divisor
Three distinct people form an unordered pair. How many pairs are there, and why may the ordered count be divided by two?
---reveal---
There are ordered pairs. Each unordered pair contains two different people, so it has exactly two orders. The count is . The division works because every outcome has the same number of descriptions.
- 11ChallengeCombine cases and a complement
A code has either two or three symbols from A, B and C, allows repetition, and contains an A. How many codes exist?
---reveal---
For length two, subtract the no-A codes: . For length three, the same reasoning gives . Add the disjoint lengths to get 24 codes. The universe for each subtraction must keep that case’s length fixed.
- 12RecapAudit the counting procedure
Check three things before accepting a count: every constructed result is valid, every valid outcome is constructed, and every outcome has the intended number of descriptions. Stages with constant branch counts multiply; disjoint cases add. A complement removes unwanted outcomes, a bijection transfers a count, and division removes an equal overcount.
2Distinguish positions, members and repeated copies
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionWhat does an exchange change?
- 2ExampleFill a row without reuse
- 3ExampleGlue an adjacent pair
- 4ChallengeRemove rotations
- 5ExplanationForget the order of a selection
- 6ChallengeRequire a member from one pool
- 7ExampleAssign the rank roles in a hand
- 8Key InsightTwo equal rank roles are different
- 9ExampleRemove labels on identical copies
- 10ConnectionUse the same count for group sizes
- 11ChallengeCount unnamed pairs
- 12TipKeep the choices attached to the objects
- 13ChallengeChoose members and then a role
- 14RecapKeep only the orders the outcome records
3Turn repeated choices into count vectors
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionRecord how many of each type
- 2ExampleEncode one bag
- 3Key InsightChoose the boundaries
- 4ChallengeSelect more items than types
- 5ExampleReserve the minimum amounts
- 6ExampleSubtract the first forbidden count
- 7ChallengeLeave room unused
- 8TipKeep overlapping violations separate
- 9ConnectionChange what the objects remember
- 10ChallengeTest a proposed division
- 11ChallengeCombine a lower and upper limit
- 12RecapMatch the objects and the constraints
4Connect subset coefficients to algebra
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFrom subset choices to expansion terms
- 2ExampleBuild the next row
- 3Key InsightExplain one addition
- 4ChallengeSum a diagonal
- 5ExplanationChoose which factors supply y
- 6ExampleInclude powers of the coefficients
- 7ChallengeExtract one mixed term
- 8ExampleFind a constant by its exponent
- 9ConnectionTurn a power into a sum identity
- 10ChallengeReverse a coefficient calculation
- 11RecapChoose the index before calculating
5Make both sides count the same outcomes
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionName the objects behind the symbols
- 2ExampleCount the committee first
- 3ConnectionCount the chair first
- 4ChallengeSplit a group across pools
- 5Key InsightLet the size vary without ordering it
- 6ExplanationShow the inverse explicitly
- 7ChallengeReconstruct a path
- 8ExampleGroup subsets by their largest element
- 9ChallengeFind the gap in a proof
- 10RecapMake every count checkable
6Choose boxes and prove the guarantee
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake shared boxes imply the conclusion
- 2ExplanationWhy a pair must exist
- 3ExampleUse remainder classes
- 4ChallengeDesign pairs of numbers
- 5ConnectionGive subsets a sum box
- 6ExampleRound the average up
- 7ChallengeFind the least total
- 8TipA named suit can be delayed
- 9ExampleFind three with one relation to A
- 10Key InsightComplete the opposite case
- 11ChallengeConnect boxes to distance
- 12RecapProve both force and minimality
Permutations and Combinations practice questions
Set 1: Arrange items, choose groups and count hands10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Build outcomes and handle restrictions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Count repeated selections and bounded distributions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Use binomial coefficients and expansions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Build and inspect combinatorial proofs10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 6: Prove guarantees and combine counting methods10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Alternating sum
B
Bijection rule
Bijective proof
Binomial coefficient
Binomial symmetry
Binomial theorem
Bit string
Block method
C
Cardinality
Case analysis
Ceiling
Circular arrangement
Coefficient
Combination
Combination with repetition
Combinatorial proof
Complement rule
Constant term
D
Disjoint cases
Distinct objects
Distinguished element
Division rule
Double counting
E
Exhaustive cases
Existence proof
F
Factorial
Forcing threshold
Full house
G
General term
Generalized pigeonhole principle
Generalized product rule
H
Hockey-stick identity
I
Inverse map
L
Labeled boxes
Lower bound
M
Multinomial coefficient
Multiplicity
Multiset
N
Nonnegative integer solution
O
Ordered selection
P
Pascal’s identity
Pascal’s triangle
Permutation
Pigeonhole principle
Positive integer solution
Product rule
Proof by contradiction
R
r-permutation
Remainder class
Repetition allowed
Row sum
S
Slack variable
Stars and bars
Sum rule
T
Two pair
Type count
U
Universe
Unlabeled groups
Unordered selection
Upper bound
V
Vandermonde’s identity
W
Weighted count
Worst-case arrangement
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.