Permutations and Combinations

Counting: Permutations, Combinations and the Binomial Theorem

Learn the counting methods used throughout discrete mathematics and computer science. Count outcomes with the sum and product rules, case splits, complements, bijections and the division rule. Count arrangements and selections with permutations and combinations, including repeated letters, selections with repetition and distributions into boxes. Build Pascal's triangle, expand powers with the binomial theorem, prove identities with combinatorial arguments, and use the pigeonhole principle to prove that something must exist.

BeginnerLesson 7 of 10 in Discrete Mathematics Course

What you will learn

  1. 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 rules
      Count 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 complements
      Combine 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 rule
      Count 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.
  2. 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 permutations
      Use factorials and r-permutations to count ordered arrangements, including arrangements with restrictions and seatings around a table.
    • Count unordered selections with combinations
      Use 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 groups
      Count strings with repeated symbols, arrangements of words with repeated letters, and the ways to divide distinct objects into groups or boxes.
  3. 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 bars
      Count unordered selections from several types, with repeats allowed, by turning each selection into a row of stars and bars.
    • Solve integer equations and distribution problems
      Count integer solutions of equations and ways to put identical objects into distinct boxes, including lower and upper limits.
    • Choose the right counting model
      Decide 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.
  4. 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 identities
      Compute binomial coefficients, build Pascal's triangle with Pascal's identity, and explain its main patterns.
    • Expand powers with the binomial theorem
      State and explain the binomial theorem, use it to expand powers and find single coefficients, and substitute values to obtain identities.
  5. 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 counting
      Prove an identity by asking one counting question and answering it correctly in two different ways.
    • Prove identities with bijections and case splits
      Prove that two counts are equal by building an explicit bijection, or by splitting one set by a special element, and write the argument clearly.
  6. 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 principle
      State and prove the pigeonhole principle, choose suitable objects and boxes, and use it in short existence proofs.
    • Use the generalized pigeonhole principle
      Use the ceiling form of the pigeonhole principle to guarantee several objects in one box and find the smallest number of objects that forces this.

Permutations and Combinations study guide

6 chapters

1

Count 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 A, its size is written ∣A∣.

Add separate cases

The sum rule counts alternatives that cannot occur together. If A and B are disjoint, then ∣A∪B∣=∣A∣+∣B∣. 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 26j strings of length j, so the total is

26+262+263+264=26+676+17,576+456,976=475,254.
Multiply stages

The product rule applies when an outcome is built by making a sequence of choices. If the first stage has m choices and each first choice allows n second choices, there are mn outcomes. For finite sets, this gives ∣A×B∣=∣A∣∣B∣.

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

26⋅26⋅10⋅10⋅10=262⋅103=676,000.

The actual choices may change as you proceed. Choosing a president and a different secretary from 12 members gives 12⋅11=132 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-n string over k symbols has kn possibilities. Thus eight-bit strings number 28=256. Each element of an n-element set has two membership choices, in or out, so the set has 2n subsets, including the empty set.

A function from an m-element domain to an n-element codomain makes one image choice per domain element. It has nm possibilities. For a one-to-one function, used images become unavailable, giving n(n−1)⋯(n−m+1) when m≤n.

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: 12⋅11 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-n strings over k symbols number kn; an n-element set has 2n 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 27=128. Strings that start with 0 and end with 00 have five free positions, giving 25=32. The total is 128+32=160. 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 A of a finite universe U, the complement rule gives ∣U∖A∣=∣U∣−∣A∣. “At least one” often has the simpler opposite “none.”

A four-digit PIN allows zero at the start and repeated digits. There are 104=10,000 PINs. Avoiding 7 leaves nine choices at every position, giving 94=6,561. Therefore the number containing at least one 7 is 10,000−6,561=3,439.

Choosing a position for a 7 and freely filling the rest gives 4⋅103=4,000, 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 1,000, 900, 810 and 729. 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 72+256=328. 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:

265−26⋅25⋅24⋅23⋅22=11,881,376−7,893,600=3,987,776.

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 A to B matches every element of one finite set with exactly one element of the other. Therefore ∣A∣=∣B∣. Describe both the map and its inverse so that no match is missing or duplicated.

Map a subset of {1,…,n} to its membership bit string: position i is 1 exactly when i belongs to the subset. For n=3, {1,3} 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 2n strings count the subsets.

For a grid path from (0,0) to (5,3) 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 (83)=56 paths.

Divide only by a uniform multiplicity

Suppose every outcome in B has exactly k descriptions in a finite set A. The division rule gives

∣B∣=∣A∣k.

The constant k 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 10⋅9=90 ordered pairs of different people. Each handshake has exactly two ordered descriptions, (a,b) and (b,a). 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 6!=720. Each circular seating has six different rotations, so there are 720/6=120 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 24 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 ∣A∣≤∣B∣. 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.
2

Count 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 n, factorial means n!=n(n−1)⋯2⋅1, with 0!=1. There is one empty arrangement, which explains the value at zero. For example, 5!=120 and 10!=3,628,800.

Arranging all n distinct objects gives n! possibilities. An r-permutation fills r positions without using an object twice:

P(n,r)=n(n−1)⋯(n−r+1)=n!(n−r)!,0≤r≤n.

The notations nPr, nPr and the falling factorial nr‾ 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 8⋅7⋅6=336 results. Cancel factorials before multiplying. For example, P(52,3)=52⋅51⋅50=132,600; computing the whole of 52! 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 5!=120 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 6!=720 rows, giving 720−240=480. 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 3!=6 ways, giving 2⋅6=12 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 n distinct people are equal, fix one person and arrange everyone else relative to them. There are (n−1)! seatings. Six people give 5!=120. Clockwise and counterclockwise orders are different for a table. For n≥3 distinct beads on a ring, if flipping the ring also makes arrangements equal, divide by 2 to get (n−1)!/2.

Repetition changes the model

Three-letter codes have 263=17,576 possibilities with repetition, but 26⋅25⋅24=15,600 when all letters differ. The decreasing factors belong to selection without reuse. Keep factorial arithmetic intact as well: 6!/4!=6⋅5=30, not the factorial of 6/4.

Key Takeaways

  • Use P(n,r)=n!/(n−r)! for ordered choices without repetition.
  • Cancel factorials before multiplying; 0!=1.
  • 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 (n−1)! when rotations are equal.
  • If distinct-bead rings also identify reflections, divide by 2 for n≥3.

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 r-combination is an r-element subset of distinct elements, counted by the binomial coefficient “n choose r.”

Remove the order exactly once

Each r-element subset has r! orders, so

P(n,r)=(nr)r!,(nr)=n!r!(n−r)!.

The notations C(n,r), nCr and nCr are equivalent. The formula applies for 0≤r≤n; when r>n the count is zero. A three-person committee from 10 people has 10⋅9⋅8/(3⋅2⋅1)=120 possibilities. Giving its members three different offices produces 120⋅3!=720 assignments.

Taking r elements determines which n−r elements are left. Thus (nr)=(nn−r). Computing (2017) as (203)=1,140 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:

(73)(52)=35⋅10=350.

For four-person committees from six women and five men with at least one woman, subtract the all-men committees: (114)−(54)=330−5=325. 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 (525)=2,598,960 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 (43)=4 ways. Choose the pair's rank in 12 ways and its suits in (42)=6 ways. The product is 13⋅4⋅12⋅6=3,744. The rank roles differ, so exchanging their roles changes the hand.

For two pair, the two pair ranks play equal roles. Choose them as (132)=78, then choose two suits for each, giving 62=36 possibilities. The fifth card has any of 11 other ranks and any of four suits, giving 44 choices. The count is 78⋅36⋅44=123,552. 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 (104)=210 such strings. A grid path with five right steps and three up steps is determined by the three up positions among eight, giving (83)=56.

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 (nr)=n!/[r!(n−r)!] for unordered choices without repetition.
  • Choosing members and assigning roles are different counts.
  • Symmetry gives (nr)=(nn−r).
  • 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-r string over n types has nr outcomes when each position can use any type. A four-digit PIN therefore has 104=10,000 possibilities.

For a fixed collection of n objects containing n1,…,nk identical copies of each type, the distinct arrangements number

n!n1!n2!⋯nk!,n1+⋯+nk=n.

Imagine temporarily labeling all copies. There are n! labeled orders. Removing the temporary labels merges exactly n1!⋯nk! 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 11!/(1!4!4!2!)=34,650. Choosing the positions type by type gives the same result: (111)(104)(64)(22)=11⋅210⋅15=34,650.

BANANA has three As, two Ns and one B, giving 6!/(3!2!1!)=60. For just two symbol types, with r ones and n−r zeros, the expression reduces to (nr).

The same formula assigns distinct objects

The multinomial coefficient (nn1,…,nk)=n!/(n1!⋯nk!) 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 (105)(53)(22)=252⋅10=2,520, equal to 10!/(5!3!2!).

Names on groups matter

Six people assigned to three named rooms of two give 6!/(2!2!2!)=90 assignments. If the outcome is three unnamed pairs, the same pairs can be assigned the three room names in 3! ways. Remove those names by dividing again: 90/3!=15 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 35=243 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 nr.
  • A fixed multiset has n!/(n1!⋯nk!) 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 n distinct objects to k labeled boxes number kn.
3

Count 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 r items from n types, with enough of each type available. Write a star for each item and place n−1 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 r+n−1 symbols: r stars and n−1 bars. Choose the star positions, or equivalently the bar positions:

(n+r−1r)=(n+r−1n−1).

For six pastries from four kinds, there are nine positions containing six stars and three bars. The count is (96)=(93)=84. There are only three bars because four regions need three boundaries between them.

List a small case

Two items from types a,b,c give the six selections aa,bb,cc,ab,ac,bc. The formula gives (42)=6. The ordered strings would also distinguish ab from ba and give 32=9. Ordinary combinations would permit only ab,ac,bc and give (32)=3.

You cannot get the repeated-selection count by dividing nine ordered strings by 2!. An all-different pair appears in two orders, but aa 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 (65)=6 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 r items to be of one type. Each type therefore needs a supply of at least r. 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 r stars and n−1 bars for r items from n types.
  • The count is (n+r−1r)=(n+r−1n−1).
  • 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 xi is the count in box i, distributing r objects into n boxes means solving x1+⋯+xn=r in nonnegative integers.

Nonnegative and positive counts

Zeros are allowed in the stars-and-bars formula, giving (r+n−1n−1) solutions. For x1+x2+x3=10, this is (122)=66.

If every count must be positive, place one object in every box first. Set yi=xi−1. The new variables are nonnegative and have total r−n, giving (r−1n−1) when r≥n. For total 10 in three positive parts, the count is (92)=36. If r<n, there are no positive solutions.

Subtract lower bounds from the total

For x1+x2+x3=10 with x1≥2 and x3≥3, write y1=x1−2 and y3=x3−3. Then

y1+x2+y3=5,

with all three variables nonnegative. The count is (72)=21. 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 x1+x2+x3=10 nonnegative but require x1≤3. Start with all 66 solutions. The invalid ones have x1≥4; subtract 4 from that variable to get a nonnegative equation of total 6. There are (82)=28 invalid solutions, leaving 66−28=38.

A direct check fixes x1 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 x1≤3 and x2≤3 in the equation of total 10, choose their values freely from 0 through 3. Each pair leaves x3=10−x1−x2≥4. There are exactly 4⋅4=16 solutions.

Turn an inequality into an equation

For x1+x2+x3≤10, introduce the slack variable x4=10−(x1+x2+x3). It records the unused amount and is uniquely determined. Now four nonnegative counts sum to 10, giving (133)=286 solutions. Slack is not an extra free choice for a fixed original solution.

Twelve identical balls in four numbered bins give (153)=455 distributions. Requiring every bin to be nonempty reserves four balls and gives (113)=165. Numbered bins keep their identities even when they receive the same number of balls.

Key Takeaways

  • Nonnegative solutions of x1+⋯+xn=r number (r+n−1n−1).
  • 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 r choices from n distinct types:

OutcomeRepetition allowedNo repetition
OrderednrP(n,r)=n!/(n−r)!
Unordered(n+r−1r)(nr)

With four letters a,b,c,d 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 aa,bb,cc,dd 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 (134)=715 selections. A cone records the flavor order from bottom to top, so repeats give 104=10,000 sequences.

Requiring four different flavors changes the counts: the cup gives (104)=210, and the cone gives P(10,4)=10⋅9⋅8⋅7=5,040. 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:

(104)⋅4=210⋅4=840.

A second count chooses the chair first and then three of the other nine people: 10(93)=10⋅84=840. It counts the same committee-with-chair outcomes. Dividing the whole result by 4! 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, nr/r! fails because aa and ab have different numbers of orders.

For a small check, list every outcome for two choices from two types. The unordered repeated list is aa,ab,bb; the ordered list also contains ba. 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 r! cannot erase order when multiplicities differ.
4

Work 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 0≤k≤n, (nk)=n!/[k!(n−k)!]. The edge entries are (n0)=(nn)=1: take nothing or take everything. The next entries are (n1)=(nn−1)=n. Choosing what to omit gives (nk)=(nn−k).

For hand calculation, use the smaller lower index and cancel. For example, (129)=(123)=12⋅11⋅10/(3⋅2⋅1)=220.

Why neighboring entries add

Pascal's identity is

(n+1k)=(nk−1)+(nk),1≤k≤n.

Single out one element from n+1 elements. A k-subset either contains it or does not. If it does, choose its other k−1 members from the remaining n. If it does not, choose all k from those n. The cases are disjoint and exhaustive.

Number rows and positions from zero. Row n lists (n0) through (nn). 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 (nk) and (nk+1) produce (n+1k+1). The result has the larger of the two lower indices.

Read the patterns

Every row is symmetric. Its sum is 2n, 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 k=⌊n/2⌋, with a second equal maximum at k=⌈n/2⌉ for odd n.

The hockey-stick identity adds a diagonal:

∑i=rn(ir)=(n+1r+1),0≤r≤n.

For r=2 and n=5, it gives 1+3+6+10=20=(63). The lower index on the diagonal stays fixed; the answer's lower index increases by one. A counting explanation groups (r+1)-subsets by their largest element: if that element is i+1, choose the other r elements from the preceding i.

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 n consists of (n0) through (nn); numbering starts at zero.
  • Pascal's identity splits subsets by whether they contain one distinguished element.
  • Rows are symmetric, sum to 2n and peak in the middle.
  • The hockey-stick identity sums a fixed-index diagonal to (n+1r+1).

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 x,y and an integer n≥0,

(x+y)n=∑k=0n(nk)xn−kyk.

Choose which k of the n factors supply y. The other factors supply x, so each such choice produces xn−kyk. There are (nk) choices, which proves the coefficient. The n+1 terms have exponent sums n and coefficients from row n of Pascal's triangle.

For example, (x+y)4=x4+4x3y+6x2y2+4xy3+y4. Writing only x4+y4 misses the choices that mix terms from different factors.

Coefficients and signs belong to the powers

For (2x−3)4, use (4k)(2x)4−k(−3)k. The five terms are 16x4, −96x3, 216x2, −216x and 81. Thus

(2x−3)4=16x4−96x3+216x2−216x+81.

At x=1, both sides equal 1. The sign alternates because odd powers of −3 are negative. Raise the whole term: (2x)3=8x3, so a coefficient outside a variable cannot be left unchanged.

Find one term without expanding everything

In (2x−y)8, the general term is (8k)(2x)8−k(−y)k. For x3y5, match exponents to get k=5. The coefficient is

(85)⋅23⋅(−1)5=56⋅8⋅(−1)=−448.

For a constant term, collect the powers first. In (x+2/x)6, with x≠0, the general term is (6k)2kx6−2k. Setting the exponent to zero gives k=3, so the constant term is (63)23=20⋅8=160. A candidate value of k must be an integer between zero and the power.

Substitute values to obtain identities

Putting x=y=1 yields ∑k(nk)=2n. Putting x=1,y=−1 yields ∑k(−1)k(nk)=0 for n≥1. The even- and odd-index sums are therefore each 2n−1. Putting x=1,y=2 gives ∑k2k(nk)=3n.

For a small increment, early terms can give an approximation. Here 1.0110=(1+0.01)10≈1+10(0.01)+45(0.01)2=1.1045. The exact value begins 1.10462…; the omitted terms explain the difference. The approximation sign matters because those terms are small, not zero.

Key Takeaways

  • The coefficient (nk) chooses the factors supplying the second term.
  • In each term of (x+y)n, the exponents sum to n.
  • 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.
5

Prove 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 ∑k=0n(nk)=2n, count the subsets of an n-element set. Sorting subsets by size gives (nk) for each size k, hence the sum. Deciding independently whether each element belongs gives 2n. 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 1≤k≤n,

k(nk)=n(n−1k−1).

Count a committee of k people with one of its members designated chair. First choose the committee in (nk) ways, then the chair in k ways. Alternatively, choose the chair from all n people, then choose the other k−1 members from the remaining n−1.

The chair is part of the outcome on both sides. For n=5,k=2, the two counts are 2⋅10=20 and 5⋅4=20. 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

(m+nr)=∑k=0r(mk)(nr−k).

Take disjoint pools of m women and n men and count r-person groups. Direct selection gives the left side. If a group contains k women, choose them in (mk) ways and its r−k men in (nr−k) ways. The group has exactly one value of k, so the cases are disjoint and exhaustive. Impossible selections contribute zero.

Setting m=n=r and using symmetry gives ∑k=0n(nk)2=(2nn). With n=3, this is 1+9+9+1=20. 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 ∑k=1nk(nk). Choosing the chair first gives n choices, and every other person may independently join or stay out. This gives n2n−1, proving

∑k=1nk(nk)=n2n−1.

For n=3, 3+6+3=12=3⋅4. 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 ∣A∣=∣B∣ 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 (nk)=(nn−k), let S be an n-element set. Map each k-subset T to S∖T. Its image has size n−k. Complementing again returns T, so this map is its own inverse. This proves symmetry for every 0≤k≤n, 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 k ones corresponds to the k positions containing 1, giving (nk) strings of length n. Reconstructing the string from the positions supplies the inverse.

A grid path with a right steps and b up steps similarly corresponds to the subset of up-step positions among a+b 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 (a+bb).

Partition by a special element

For Pascal's identity, count k-subsets of {1,…,n+1}. Those containing n+1 choose k−1 further elements from the first n; those excluding it choose all k from the first n. This proves

(n+1k)=(nk−1)+(nk).

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 (r+1)-subsets of {1,…,n+1}. Directly, there are (n+1r+1). In a case whose largest element is i+1, choose the other r elements from the preceding i, giving (ir).

The largest element ranges from r+1 through n+1, so i ranges from r through n. Each subset has exactly one largest element. Adding gives ∑i=rn(ir)=(n+1r+1).

Algebra can prove the same identities: Pascal's two terms can be combined over the common denominator k!(n−k+1)!. 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.
6

Prove 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 k objects occupy k boxes, with k>0, at least one box has at least two objects. If every box held at most one, the total would be at most k, 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 n gives remainders 0,1,…,n−1. Any n+1 integers include two with the same remainder. Their difference is divisible by n: writing them as an+r and bn+r makes the difference (a−b)n. 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 {1,…,10}. Use the five boxes {1,2}, {3,4}, {5,6}, {7,8}, {9,10}. 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, 2 m. The boxes were chosen to control distance.

Use subsets as the objects

Take any 10 distinct two-digit positive integers. Their 210=1,024 subsets have sums from zero to at most 90+91+⋯+99=945. 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 N objects in k>0 boxes, some box contains at least ⌈N/k⌉ objects. The ceiling is the smallest integer greater than or equal to its argument: ⌈7/3⌉=3 and ⌈6/3⌉=2.

If every box held at most ⌈N/k⌉−1, each would have fewer than N/k objects. Their total would be less than N, a contradiction. Among 100 people, some birth month occurs at least ⌈100/12⌉=9 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 r objects, put at most r−1 in each of k boxes. This permits k(r−1) objects. One more forces a box to reach r:

N=k(r−1)+1.

The arrangement with exactly r−1 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 39+3=42 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 ⌈5/2⌉=3 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 ⌈N/k⌉ of N objects in k boxes.
  • The least unrestricted total forcing r in one of k boxes is k(r−1)+1.
  • 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

6 Walkthroughs

1

Build a count that includes each outcome once

12 steps
Work from stages and cases to complements, reversible encodings and equal overcounts.
  1. 1
    IntroductionDescribe 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.

  2. 2
    ExampleFill 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 4⋅3=12 labels. This is a product because every complete label needs both stages; the groups are indexed by the first choice.

  3. 3
    Key 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 8⋅7=56. 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.

  4. 4
    ChallengeCount 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 42=16 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.

  5. 5
    ExampleExclude the unwanted tags

    Now use four positions and symbols A, B, C and D. We want at least one A. All tags number 44=256. Tags with no A have three choices in each position, giving 34=81. Subtracting leaves 256−81=175 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.

  6. 6
    TipGive 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.

  7. 7
    ChallengeSeparate 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.

  8. 8
    ExplanationEncode a subset with bits

    For a subset of {1,2,3,4}, write 1 at a position when that element is included and 0 otherwise. The subset {2,4} becomes 0101. To reverse the map, read the 1 positions. Every four-bit string gives exactly one subset, so this bijection proves there are 24=16 subsets. The empty subset corresponds to 0000.

  9. 9
    ExampleFind the exact overcount

    Eight people each greet every other person once. Choosing a first and a different second person gives 8⋅7=56 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.

  10. 10
    ChallengeCheck 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 3⋅2=6 ordered pairs. Each unordered pair contains two different people, so it has exactly two orders. The count is 6/2=3. The division works because every outcome has the same number of descriptions.

  11. 11
    ChallengeCombine 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: 32−22=5. For length three, the same reasoning gives 33−23=19. Add the disjoint lengths to get 24 codes. The universe for each subtraction must keep that case’s length fixed.

  12. 12
    RecapAudit 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.

2

Distinguish positions, members and repeated copies

14 steps
Count rows and circles, committees and card hands, then arrangements with identical copies and unnamed groups.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionWhat does an exchange change?
  2. 2
    ExampleFill a row without reuse
  3. 3
    ExampleGlue an adjacent pair
  4. 4
    ChallengeRemove rotations
  5. 5
    ExplanationForget the order of a selection
  6. 6
    ChallengeRequire a member from one pool
  7. 7
    ExampleAssign the rank roles in a hand
  8. 8
    Key InsightTwo equal rank roles are different
  9. 9
    ExampleRemove labels on identical copies
  10. 10
    ConnectionUse the same count for group sizes
  11. 11
    ChallengeCount unnamed pairs
  12. 12
    TipKeep the choices attached to the objects
  13. 13
    ChallengeChoose members and then a role
  14. 14
    RecapKeep only the orders the outcome records
3

Turn repeated choices into count vectors

12 steps
Build stars-and-bars rows, adjust bounds, add slack and compare distinct-object models.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionRecord how many of each type
  2. 2
    ExampleEncode one bag
  3. 3
    Key InsightChoose the boundaries
  4. 4
    ChallengeSelect more items than types
  5. 5
    ExampleReserve the minimum amounts
  6. 6
    ExampleSubtract the first forbidden count
  7. 7
    ChallengeLeave room unused
  8. 8
    TipKeep overlapping violations separate
  9. 9
    ConnectionChange what the objects remember
  10. 10
    ChallengeTest a proposed division
  11. 11
    ChallengeCombine a lower and upper limit
  12. 12
    RecapMatch the objects and the constraints
4

Connect subset coefficients to algebra

11 steps
Build the triangle, locate coefficients and constant terms, and use substitutions to derive sums.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFrom subset choices to expansion terms
  2. 2
    ExampleBuild the next row
  3. 3
    Key InsightExplain one addition
  4. 4
    ChallengeSum a diagonal
  5. 5
    ExplanationChoose which factors supply y
  6. 6
    ExampleInclude powers of the coefficients
  7. 7
    ChallengeExtract one mixed term
  8. 8
    ExampleFind a constant by its exponent
  9. 9
    ConnectionTurn a power into a sum identity
  10. 10
    ChallengeReverse a coefficient calculation
  11. 11
    RecapChoose the index before calculating
5

Make both sides count the same outcomes

10 steps
Write double-counting and bijective proofs with explicit roles, inverse maps and complete cases.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionName the objects behind the symbols
  2. 2
    ExampleCount the committee first
  3. 3
    ConnectionCount the chair first
  4. 4
    ChallengeSplit a group across pools
  5. 5
    Key InsightLet the size vary without ordering it
  6. 6
    ExplanationShow the inverse explicitly
  7. 7
    ChallengeReconstruct a path
  8. 8
    ExampleGroup subsets by their largest element
  9. 9
    ChallengeFind the gap in a proof
  10. 10
    RecapMake every count checkable
6

Choose boxes and prove the guarantee

12 steps
Use remainders, geometric regions and capacity arguments to prove existence and least forcing totals.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake shared boxes imply the conclusion
  2. 2
    ExplanationWhy a pair must exist
  3. 3
    ExampleUse remainder classes
  4. 4
    ChallengeDesign pairs of numbers
  5. 5
    ConnectionGive subsets a sum box
  6. 6
    ExampleRound the average up
  7. 7
    ChallengeFind the least total
  8. 8
    TipA named suit can be delayed
  9. 9
    ExampleFind three with one relation to A
  10. 10
    Key InsightComplete the opposite case
  11. 11
    ChallengeConnect boxes to distance
  12. 12
    RecapProve both force and minimality

Permutations and Combinations practice questions

60 Practice Questions in 6 sets

Set 1: Arrange items, choose groups and count hands10 Practice Questions

Question 1 of 10

A committee of 3 people is chosen from 9, and one committee member becomes chair. How many committee-with-chair outcomes are possible?
  1. 84
  2. 252
  3. 504
  4. 756
Show answerHide answer
Answer: B
There are (93)=84 committees and three chair choices per committee, giving 252 outcomes. The count 504 assigns an order to all three people, but the two non-chair members have equal roles and can be exchanged without changing the outcome.

Question 2 of 10

Eight distinct people sit around a round table, with rotations equal and reflections different. Two specified people must sit together. How many seatings are possible?
  1. 1440
  2. 720
  3. 10080
  4. 2880
Show answerHide answer
Answer: A
Treat the adjacent pair as one block, leaving seven units around the circle. They have 6! cyclic orders, and the pair has two internal orders, giving 1,440. The count 720 omits the second internal order, which is distinct because reflections are not identified.

Question 3 of 10

A five-card hand from a standard 52-card deck must have exactly three cards of one rank and two singleton cards of different ranks from each other and the triple. How many hands are possible?
  1. 109824
  2. 59904
  3. 3744
  4. 54912
Show answerHide answer
Answer: D
Choose the triple rank and suits in 13(43) ways, then two other ranks in (122) ways and one suit for each in 42 ways. The product is 54,912. Using 12⋅11 for the singleton ranks gives 109,824 and counts each hand twice.

Question 4 of 10

Eight distinct players form four unnamed pairs. How many pairings are possible?
  1. 210
  2. 105
  3. 2520
  4. 1680
Show answerHide answer
Answer: B
Temporarily label the four pairs, giving 8!/(2!4)=2,520 assignments after removing the orders inside pairs. Each unnamed pairing receives those labels in 4! ways, so divide again to get 105. Stopping at 2,520 keeps group labels that the outcome does not have.

Question 5 of 10

A five-member team is chosen from 4 researchers and 8 technicians. How many teams include at least one researcher?
  1. 736
  2. 1320
  3. 56
  4. 792
Show answerHide answer
Answer: A
All teams number (125)=792, and the teams with no researcher number (85)=56, leaving 736. Choosing a researcher first and then four others overcounts teams with several researchers, since several first choices produce the same team.

Question 6 of 10

Eleven entrants compete for three distinct awards, and no entrant may win twice. How many assignments are possible?
  1. 990
  2. 165
  3. 66
  4. 1331
Show answerHide answer
Answer: A
The distinct awards give ordered roles with 11, 10 and 9 eligible entrants in sequence, yielding 990 assignments. Choosing an unordered set of three gives only 165 and loses which entrant receives which award.

Question 7 of 10

How many 5-element subsets does an 8-element set have?
  1. 70
  2. 40
  3. 56
  4. 6720
Show answerHide answer
Answer: C
An unordered five-element subset is counted by (85)=(83)=56. The ordered count P(8,5)=6,720 gives each subset all 5! internal orders, although none of those orders changes its membership.

Question 8 of 10

How many distinct arrangements use all letters of LEVEL?
  1. 120
  2. 20
  3. 30
  4. 60
Show answerHide answer
Answer: C
LEVEL contains two Ls, two Es and one V, so the count is 5!/(2!2!)=30. Dividing by only one 2! gives 60 and removes the duplicate copies of only one of the two repeated letter types.

Question 9 of 10

A panel has two members from 6 designers and three from 7 engineers, with no person in both pools. How many panels are possible?
  1. 1050
  2. 1287
  3. 525
  4. 50
Show answerHide answer
Answer: C
Choose the designers in (62)=15 ways and engineers in (73)=35 ways, then multiply to obtain 525. Adding to get 50 would count a designer selection or an engineer selection instead of a panel containing both.

Question 10 of 10

Eight distinct people are assigned to named teams A, B and C of sizes 3, 3 and 2. How many assignments are possible?
  1. 3360
  2. 56
  3. 280
  4. 560
Show answerHide answer
Answer: D
The group sizes give 8!/(3!3!2!)=560 assignments. The count 280 divides again by two for the equal-sized teams A and B, but those teams have names, so exchanging their members changes the assignment.
Set 2: Build outcomes and handle restrictions10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A label contains one of 7 letters followed by one of 6 digits. How many labels are possible?
  1. 36
  2. 13
  3. 42
  4. 49
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

How many functions map a 4-element set into a 3-element set?
  1. 64
  2. 81
  3. 12
  4. 24
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A code is either two symbols or four symbols long, using a 5-symbol alphabet with repetition allowed. How many codes are possible?
  1. 625
  2. 15625
  3. 650
  4. 125
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

How many length-five strings over the digits 0, 1 and 2 contain at least one 2?
  1. 80
  2. 242
  3. 162
  4. 211
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

How many length-six binary strings start with 1 or end with 11?
  1. 40
  2. 48
  3. 32
  4. 16
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Every pair of different participants exchanges one message in a group of 14 participants. How many messages are exchanged?
  1. 91
  2. 196
  3. 182
  4. 84
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

How many ways can 6 distinct books be arranged in a row?
  1. 64
  2. 720
  3. 36
  4. 120
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Seven distinct people sit around a round table. Rotations are equal and reflections are different. How many seatings are there?
  1. 2520
  2. 360
  3. 5040
  4. 720
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

How many four-digit numbers have different digits, using digits 0–9, and end in an even digit?
  1. 2520
  2. 2296
  3. 2268
  4. 2016
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A procedure counts all ordered pairs from {a, b, c}, allowing repeats, then erases order. What is the number of unordered outcomes, and why can the ordered count not be divided by 2?
  1. 6; repeated pairs have one order and different pairs have two.
  2. 3; deleting order also deletes pairs with repeated symbols.
  3. 6; every pair has two orders, including repeated pairs.
  4. 5; rounding 9/2 upward corrects the unequal orders.
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

A bag contains five identical-size beads chosen from three colors with unlimited supply. Only color counts matter. How many bags are possible?
  1. 243
  2. 21
  3. 15
  4. 10
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

How many nonnegative integer solutions satisfy a+b+c=7?
  1. 28
  2. 84
  3. 36
  4. 15
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Four identical counters are selected from six types with unlimited supply. Only the type counts matter. How many selections use at least one counter of type A?
  1. 84
  2. 126
  3. 216
  4. 56
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A device records a sequence of 4 symbols from 6 symbols, allowing repeats. A second device records only the counts of the same 4 symbols. How many outcomes can the second device record?
  1. 126
  2. 54
  3. 1296
  4. 15
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

How many integer solutions satisfy x+y+z=14 with x≥2, y≥1 and z≥4?
  1. 120
  2. 28
  3. 45
  4. 36
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Seven distinct files are assigned freely to four named folders. How many assignments are possible?
  1. 16384
  2. 35
  3. 2401
  4. 120
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

How many integer solutions satisfy x+y+z=12 with x≥2, y≥1, z≥0 and x≤5?
  1. 40
  2. 34
  3. 55
  4. 27
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

How many nonnegative integer solutions satisfy x+y+z≤8 and x≥2?
  1. 28
  2. 84
  3. 165
  4. 120
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

How many nonnegative integer solutions satisfy x+y+z=6 with x≤3 and y≤4?
  1. 19
  2. 20
  3. 16
  4. 18
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Ten distinct people are split into two unnamed groups of five, then each group chooses a leader. How many outcomes are possible?
  1. 1575
  2. 6300
  3. 3150
  4. 126
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

What is the row number of 1, 7, 21, 35, 35, 21, 7, 1 in Pascal’s triangle?
  1. 6
  2. 8
  3. 7
  4. 14
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

What is the coefficient of x3y2 in (x+y)5?
  1. 5
  2. 15
  3. 20
  4. 10
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What is (145)+(146) as a single binomial coefficient?
  1. (1411)
  2. (156)
  3. (2811)
  4. (155)
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What is (33)+(43)+(53)+(63)+(73)?
  1. 126
  2. 70
  3. 56
  4. 35
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

What is the coefficient of x2 in (3x−2)4?
  1. -216
  2. 144
  3. 216
  4. 54
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

What is ∑k=063k(6k)?
  1. 4096
  2. 64
  3. 729
  4. 4095
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

What is the coefficient of x4 in (2x2−1/x)8, for x≠0?
  1. 1120
  2. 1792
  3. 70
  4. -1120
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

What is the constant term in (x2+3/x)9, for x≠0?
  1. 61236
  2. 183708
  3. 2268
  4. 84
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

The sum of row n of Pascal’s triangle is 512. What is the sum of its odd-index entries?
  1. 128
  2. 255
  3. 512
  4. 256
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

The coefficient of x3 in (1+ax)5 is 270, with a>0. What is a?
  1. 9
  2. 3
  3. 27
  4. 30
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

For a fixed n-element set, what objects are counted by ∑k=0n(nk)?
  1. All nonempty subsets.
  2. All subsets of the set.
  3. All orderings of the set.
  4. Subsets of a fixed size.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Within a fixed set S, what operation reverses the map taking a subset T to its complement?
  1. Remove one element of S.
  2. Take the complement in S again.
  3. Sort the elements of the complement.
  4. Take the union of T with S.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What kind of outcome is counted by both 4(124) and 12(113)?
  1. An unordered committee with four interchangeable chairs.
  2. An ordered list of four members with a designated chair.
  3. A four-member committee with a member designated chair.
  4. A four-member committee with its chair outside the committee.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A path uses five right steps and four up steps. What inverse reconstructs the path from its subset of up-step positions?
  1. Keep the chosen positions and delete all other steps.
  2. Sort all U steps before all R steps.
  3. Place U in the chosen positions and R in all others.
  4. Place R in the chosen positions and U in all others.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A map sends each of 90 descriptions to one outcome, and every outcome has exactly 6 descriptions. How many outcomes are there?
  1. 84
  2. 540
  3. 96
  4. 15
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A group of n people forms any nonempty committee and selects two different members as chair and secretary. What expression counts the outcomes, for n≥2?
  1. n22n−2
  2. (n2)2n−2
  3. n(n−1)2n−1
  4. n(n−1)2n−2
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Two disjoint pools have 8 and 6 members. How many 5-person groups contain an odd number from the first pool?
  1. 1016
  2. 896
  3. 960
  4. 2002
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

How many 4-element subsets of {1, …, 11} have largest element 7, 8 or 9?
  1. 111
  2. 91
  3. 126
  4. 84
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

For 1≤r≤n, what set has size ∑k=1rk(nk)(nr−k) when two disjoint pools each have n members?
  1. r-member groups with one chair from each pool.
  2. r-member groups with any member as chair.
  3. r-member groups containing exactly one first-pool member.
  4. r-member groups with a chair from the first pool.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

How many subsets of an n-element set have even size, for n≥1?
  1. (n2)
  2. 2n−1
  3. 2n
  4. 2n−1−1
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

What is the least number of integers that guarantees two with the same remainder modulo 9?
  1. 9
  2. 8
  3. 10
  4. 18
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A system assigns 74 records to 8 slots. What is the strongest lower bound on the largest slot occupancy that always holds?
  1. 11
  2. 9
  3. 8
  4. 10
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What is the smallest number of cards from a standard deck that guarantees at least five cards of one suit?
  1. 16
  2. 14
  3. 20
  4. 17
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What is the smallest number of cards drawn from a standard deck that guarantees at least five spades?
  1. 43
  2. 45
  3. 44
  4. 17
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Seven points lie in a rectangle measuring 6 m by 4 m. What distance can always be guaranteed for at least one pair?
  1. At most 5 m.
  2. At most 2 m.
  3. At most 2 m.
  4. At most 22 m.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Nine distinct integers are chosen from {1, …, 16}. What relation must hold for some pair?
  1. Their sum is 17.
  2. Their sum is 18.
  3. Their sum is 19.
  4. Their sum is 16.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A collection has 5 red, 7 blue and 9 green tokens. What is the smallest blind draw that guarantees four tokens of one color and at least two red tokens?
  1. 18
  2. 10
  3. 17
  4. 19
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A five-card hand from a standard deck has all four suits and exactly two hearts. How many hands are possible?
  1. 371293
  2. 342732
  3. 171366
  4. 145002
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

How many integer triples satisfy x+y+z≤9 with x≥1, y≥2, z≥0 and x≤3?
  1. 84
  2. 64
  3. 56
  4. 74
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

What is the coefficient of x5 in (1+x)6(1+2x)2?
  1. 110
  2. 146
  3. 56
  4. 252
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

63 Key Terms, each with its definition

A

Alternating sum
An alternating sum adds terms with signs that switch between positive and negative in successive positions.
Setting the binomial inputs to 1 and −1 produces an alternating sum of binomial coefficients.

B

Bijection rule
The bijection rule states that two finite sets have equal cardinality when a one-to-one and onto map links them.
Matching a subset to its membership bit string transfers a subset count to a string count.
Bijective proof
A bijective proof establishes equal finite counts by constructing a one-to-one and onto correspondence with an inverse.
Complementing a subset twice returns it, which supplies the inverse in a bijective proof of binomial symmetry.
Binomial coefficient
A binomial coefficient (nr) counts r-element subsets of an n-element set and is read “n choose r.”
Choosing the three 1 positions in a seven-bit string uses the binomial coefficient (73).
Binomial symmetry
The binomial symmetry identity (nr)=(nn−r) pairs each selected subset with its complement.
Selecting all but two objects can be counted by choosing the two objects that are left out.
Binomial theorem
The binomial theorem expands a nonnegative integer power of a two-term sum using binomial coefficients.
Choosing which factors supply the second term explains every coefficient in the expansion.
Bit string
A bit string is an ordered sequence whose entries are 0 or 1; its length is the number of entries.
The bit strings 001 and 010 differ because their 1s occupy different positions in the sequence.
Block method
The block method treats required adjacent objects as a single unit, then also counts their internal arrangements.
Two adjacent books become one unit among the other books, but their two internal orders still matter.

C

Cardinality
The cardinality of a finite set is its number of elements, written ∣A∣ for a set A.
A set of five different symbols has cardinality five, regardless of the order used to list them.
Case analysis
A case analysis splits the outcomes into disjoint cases that cover the entire set, then counts and adds the cases.
Grouping codes by the position of their first 9 puts each code containing a 9 into one case.
Ceiling
The ceiling of a real number is the smallest integer greater than or equal to it, written ⌈x⌉.
The ceiling of 20/6 is 4 because 3 is below 20/6 and 4 is the next integer.
Circular arrangement
A circular arrangement records relative cyclic order, treating rotations as equal; distinct objects give (n−1)! orders.
Fixing one person as a reference removes rotational copies of the same round-table seating.
Coefficient
A coefficient is the numeric factor multiplying a specified monomial after like terms have been collected.
In −12x2y, the coefficient of x2y is −12, including the negative sign.
Combination
A combination is an unordered selection of distinct elements; selecting the same members in a different order changes nothing.
Choosing four delegates with equal roles gives a combination, while assigning four different offices does not.
Combination with repetition
A combination with repetition is an unordered selection from given types in which each type may appear several times.
Selecting several identical items of one type changes its count without creating an order of selection.
Combinatorial proof
A combinatorial proof justifies an identity by interpreting its two sides as equal counts of finite collections.
A counted committee must carry the same roles and restrictions in both interpretations of an identity.
Complement rule
The complement rule counts outcomes outside a subset by subtracting its size from the size of the finite universe.
Subtracting strings with all symbols different counts strings containing a repeated symbol.
Constant term
A constant term has total exponent zero in the variable being considered, so its value does not depend on that variable.
In a power involving x and 1/x, combine exponents before setting the exponent to zero.

D

Disjoint cases
Two disjoint cases share no outcomes, so adding their counts does not count any outcome twice.
The cases “starts with 0” and “starts with 1” are disjoint for a nonempty binary string.
Distinct objects
Distinct objects retain separate identities, so exchanging their destinations can create a different assignment.
Two numbered tokens remain distinct even if their shapes and colors are the same.
Distinguished element
A distinguished element is one fixed element singled out so cases can be defined by what happens to it.
Pascal’s proof separates subsets that contain the distinguished element from those that exclude it.
Division rule
The division rule divides a description count by the fixed number of descriptions representing each outcome.
An unordered pair of distinct people has two ordered descriptions, so its count uses division by two.
Double counting
Double counting proves an identity by describing one set of outcomes and counting every member once in two different ways.
Choose a committee then its chair, or choose its chair then the other members, to count the same set.

E

Exhaustive cases
Exhaustive cases together include every possible outcome in the set being counted, leaving no uncounted outcomes.
Every nonempty finite subset has a largest element, so splitting by that element is exhaustive.
Existence proof
An existence proof establishes that an object with the required property must occur, without necessarily identifying it.
A shared remainder is guaranteed even if the actual integers in the collection are unknown.

F

Factorial
The factorial of a positive integer is the product of that integer and all smaller positive integers; by definition, 0!=1.
The five factors in 5!=5⋅4⋅3⋅2⋅1 count the successive choices for five positions.
Forcing threshold
A forcing threshold is the smallest total that makes a desired property unavoidable in every allowed arrangement.
For five boxes, 16 objects force a box with four, while 15 could be spread three per box.
Full house
A full house is a five-card hand with three cards of one rank and two cards of a different rank.
The triple rank and the pair rank have different roles when counting full-house hands.

G

General term
A general term gives a formula for one indexed term of an expansion, allowing its powers and coefficient to be found.
The term (nk)an−kbk follows from choosing the second term in exactly k factors.
Generalized pigeonhole principle
The generalized pigeonhole principle guarantees some box with at least ⌈N/k⌉ of N objects in k>0 boxes.
Twenty objects spread across six boxes force one box to hold at least four objects.
Generalized product rule
The generalized product rule allows the available choices to change as long as their number at each stage stays constant.
Choosing a president changes who can be secretary, but always leaves one fewer eligible person.

H

Hockey-stick identity
The hockey-stick identity states that ∑i=rn(ir)=(n+1r+1) for 0≤r≤n.
Choosing a subset’s largest element groups the objects counted by the diagonal sum.

I

Inverse map
An inverse map reverses a correspondence, recovering the unique original input from each output.
Reading the 1 positions in a membership string reverses the map from subsets to bit strings.

L

Labeled boxes
Labeled boxes are destinations with distinct identities, so exchanging their contents can change an assignment.
Putting a letter in mailbox A differs from putting that same letter in mailbox B.
Lower bound
A lower bound specifies the least permitted value of a variable and can be removed by reserving that amount first.
A requirement of at least two items in the first bin reserves two items before distributing the rest.

M

Multinomial coefficient
A multinomial coefficient n!/(n1!⋯nk!) counts arrangements with fixed type totals summing to n.
A multinomial coefficient also counts ways to assign distinct people to named teams when the team sizes are fixed.
Multiplicity
The multiplicity of an outcome in a counting procedure is the number of counted descriptions that produce it.
A pair of identical symbols has fewer ordered versions than a pair of different symbols.
Multiset
A multiset is an unordered collection in which an element may appear more than once and each multiplicity is recorded.
The letters in BANANA form a multiset containing three As, two Ns and one B.

N

Nonnegative integer solution
A nonnegative integer solution assigns a whole number of zero or more to every variable while satisfying the equation.
An empty numbered bin is permitted when its variable is a nonnegative count.

O

Ordered selection
An ordered selection records positions or roles, so changing which selected item fills a position can change the outcome.
A sequence of flavors in a cone records an order even if the same flavors are used in a cup.

P

Pascal’s identity
Pascal’s identity states that (n+1k)=(nk−1)+(nk), adding two neighboring coefficients.
Splitting subsets by whether they contain a particular element explains the two terms.
Pascal’s triangle
Pascal’s triangle lists binomial coefficients by row, with edge entries 1 and each inner entry adding the two above it.
The row 1, 5, 10, 10, 5, 1 is row 5 because row numbering begins at zero.
Permutation
A permutation of distinct objects is an ordered arrangement using every object exactly once.
Moving a person from the first seat to the last changes the row permutation of a group.
Pigeonhole principle
The pigeonhole principle states that more than k objects in k boxes force at least one box to hold two objects.
Remainder classes provide five boxes when proving that six integers include a congruent pair modulo five.
Positive integer solution
A positive integer solution assigns an integer of at least one to every variable while satisfying the equation.
Reserving one item per box changes a positive-count problem into a nonnegative-count problem.
Product rule
The product rule multiplies stage counts when each earlier choice leaves the same number of choices at the next stage.
Choosing one symbol from each of three fixed alphabets builds a code in three successive stages.
Proof by contradiction
A proof by contradiction assumes the conclusion fails and derives a statement incompatible with the premises.
If every box held at most one object, more objects than boxes could not have been placed.

R

r-permutation
An r-permutation is an ordered selection of r distinct objects from n objects, counted by n!/(n−r)!.
Assigning three different awards among nine entrants is a three-permutation of the entrants.
Remainder class
A remainder class groups integers with the same remainder upon division by a fixed positive integer.
Two integers in one remainder class have a difference divisible by the divisor.
Repetition allowed
A selection with repetition allowed permits a type to be chosen more than once, subject to any stated supply limits.
A symbol can appear in several positions of a code when repeated symbols are permitted.
Row sum
A row sum in Pascal’s triangle adds all coefficients in one row; row n has sum 2n.
Grouping all subsets by size turns their total count into a row sum of binomial coefficients.

S

Slack variable
A slack variable is a nonnegative variable recording the unused amount that turns a sum inequality into an equality.
For a total of at most eight, the slack is eight minus the sum of the original counts.
Stars and bars
Stars and bars encodes nonnegative counts with identical stars for items and bars separating the fixed type regions.
The row “* | | **” records counts of one, zero and two for three types in a fixed order.
Sum rule
The sum rule counts outcomes in disjoint cases by adding the number of outcomes in each case.
Codes of two different lengths form disjoint cases, so their separate counts can be added.

T

Two pair
A two-pair hand contains two cards of each of two ranks and one card of a third rank.
The two pair ranks are an unordered choice because exchanging their names leaves the hand unchanged.
Type count
A type count records how many selected items belong to one type, including zero when that type is absent.
A repeated selection of six items from four types is determined by its four type counts.

U

Universe
A universe is the full set of possible outcomes under discussion, relative to which a complement is taken.
For five-digit codes, the universe includes codes starting with zero if the code rules allow them.
Unlabeled groups
Unlabeled groups have no names or roles distinguishing them, so rearranging the list of groups leaves the same grouping.
The pairing of A with B and C with D is unchanged when the two pairs are listed in reverse order.
Unordered selection
An unordered selection records the selected members or type counts, ignoring the order in which they were chosen.
Picking a blue item then a red item gives the same unordered selection as picking red then blue.
Upper bound
An upper bound specifies the greatest permitted value of a variable; larger integer values are forbidden.
If a bin holds at most four items, its first forbidden integer count is five.

V

Vandermonde’s identity
Vandermonde’s identity counts fixed-size subsets of two disjoint pools by summing over the contribution from one pool.
Each group has exactly one number of members from the first pool, so the cases do not overlap.

W

Weighted count
A weighted count multiplies each class size by the number of additional choices attached to each member of that class.
Multiplying the number of committees of size k by k counts a chair choice for each committee.
Worst-case arrangement
A worst-case arrangement delays the required outcome as long as possible and tests whether a proposed guarantee is minimal.
Drawing all non-hearts first delays a guaranteed third heart longer than a guarantee about any suit.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started