Back to homeMathematics · AP Statistics · Change subject
Start for free
AP Stats · Mathematics
Combinatorics · Combinatorics

"Combinations: Counting Unordered Selections"

Before you start, make sure you know: Quadratic equations (Math 8 (Pre-Algebra))

Emma and five friends are at a pizza party. Everyone high-fives everyone else exactly once. How many high-fives is that? Counting them one by one gets messy fast. By the end of this page you'll count them in one line, and you'll handle much harder "choose a group" problems too.

Combinations and the binomial coefficient

A combination is a selection where order does not matter: a committee, a hand of cards, the toppings on a pizza. Choosing Ava, then Ben, then Chloe gives the same group as choosing Chloe, then Ava, then Ben.

Why divide by $k!$? Count ordered lists first: there are $n(n-1)\cdots(n-k+1)$ of them. Every group of $k$ items shows up as $k!$ different lists (all its orderings), so each group has been counted $k!$ times. Dividing by $k!$ fixes that.

The six orderings of the letters A, B, C all describe the same single group, so six ordered lists count as one combination. 6 ordered lists = 3! orderings of the same group ABC ACB BAC BCA CAB CBA 1 group: {A, B, C}

Card problems are choosing problems too. A standard US deck has 52 cards in 4 suits (hearts, diamonds, clubs, spades) of 13 cards each. A few problems here use a 40-card deck (sometimes called a "Spanish deck") with 4 suits of 10 cards each, and one of its suits is named "coins." Treat any suit exactly like hearts: it is just a group of 10 cards. Drawing cards "simultaneously" (or being dealt a hand) means order does not matter, so you use a combination.

Practice★☆☆Not started
To prepare a salad, you have $8$ different ingredients available (lettuce, tomato, carrot, onion, cucumber, tuna, corn, and olives). Calculate how many different salads…

To prepare a salad, you have $8$ different ingredients available (lettuce, tomato, carrot, onion, cucumber, tuna, corn, and olives). Calculate how many different salads of $4$ ingredients you can make.

Solve
Practice★☆☆Not started
An exam consists of $10$ questions. The teacher indicates that students must choose and answer only $6$ of them. Determine in how many different ways a student can…

An exam consists of $10$ questions. The teacher indicates that students must choose and answer only $6$ of them. Determine in how many different ways a student can select the questions to answer.

Solve
Practice★☆☆Not started
$3$ cards are drawn simultaneously at random from a $40$-card Spanish deck. Determine how many different results can be obtained.

$3$ cards are drawn simultaneously at random from a $40$-card Spanish deck. Determine how many different results can be obtained.

Solve

Counting pairs: handshakes and games

"Everyone plays everyone once" and "everyone shakes hands with everyone" are the same problem: count the pairs of people. A pair $\{A, B\}$ is the same as $\{B, A\}$, so order does not matter.

Six people drawn as dots on a circle with a line joining every pair, showing 15 pairs in total. 6 people: 6 · 5 ÷ 2 = 15 pairs

Back to the pizza party: 6 friends give $\binom{6}{2}=\dfrac{6\cdot 5}{2}=15$ high-fives. That is exactly the 15 lines in the figure.

Practice★☆☆Not started
$14$ players are taking part in a chess tournament. If each player must face everyone else exactly once, determine the total number of games that will be played in the…

$14$ players are taking part in a chess tournament. If each player must face everyone else exactly once, determine the total number of games that will be played in the tournament.

Solve
Practice★☆☆Not started
There are $12$ people in a business meeting. At the end, everyone says goodbye by shaking hands exactly once. Calculate how many handshakes take place in total.

There are $12$ people in a business meeting. At the end, everyone says goodbye by shaking hands exactly once. Calculate how many handshakes take place in total.

Solve

Counting segments, diagonals, and triangles

Geometry problems are choosing problems in disguise. Two points determine a segment, and three non-collinear points determine a triangle.

A hexagon with its 6 sides drawn solid and its 9 diagonals drawn dashed, together making the 15 segments between 6 points. all segments: C(6,2) = 15 diagonals: 15 − 6 sides = 9
Practice★☆☆Not started
$7$ points are marked on a circle. Calculate how many different line segments can be drawn by joining two of these points.

$7$ points are marked on a circle. Calculate how many different line segments can be drawn by joining two of these points.

Solve
Practice★★☆Not started
Calculate the total number of diagonals that can be drawn in a regular polygon of $10$ sides (decagon).

Calculate the total number of diagonals that can be drawn in a regular polygon of $10$ sides (decagon).

Solve
Practice★★★Not started
On a grid formed by $9$ points distributed in $3$ rows and $3$ columns, determine how many different triangles can be formed using these points as vertices. Keep in mind…

On a grid formed by $9$ points distributed in $3$ rows and $3$ columns, determine how many different triangles can be formed using these points as vertices. Keep in mind that three collinear points do not form a triangle.

Solve

Properties of binomial coefficients

Binomial coefficients follow patterns you can use to avoid long calculations.

Pascal's triangle from row 0 to row 5, highlighting that 4 plus 6 in row 4 gives 10 in row 5. n=0 n=1 n=2 n=3 n=4 n=5 1 11 121 1331 14641 15101051 Add the two above: 4 + 6 = 10
Practice★☆☆Not started
Find the value of $x$ in the following equality between binomial coefficients, knowing that $x \neq 4$: $\binom{x}{4} = \binom{x}{7}$

Find the value of $x$ in the following equality between binomial coefficients, knowing that $x \neq 4$:

$\binom{x}{4} = \binom{x}{7}$

Solve
Practice★☆☆Not started
Calculate the value of the following expression using the properties of binomial coefficients: $\binom{8}{3} + \binom{8}{4}$

Calculate the value of the following expression using the properties of binomial coefficients:

$\binom{8}{3} + \binom{8}{4}$

Solve

Combinatorial equations

When the unknown appears inside a binomial coefficient, expand the factorial formula, simplify, and solve. The result is often a linear or quadratic equation, so you may need to factor or use the quadratic formula.

Four-step process for solving a combinatorial equation: expand, simplify, solve, and check that n is a whole number. 1. Expand 2. Simplify 3. Solve 4. Check n Keep only whole numbers n ≥ k

When an equation has two coefficients, expand both, put them over a common denominator, and combine like terms before solving. Often a lot of cancellation happens.

Practice★★☆Not started
Solve the following equation to find the value of the natural number $n$: $C_{n, 2} = 45$

Solve the following equation to find the value of the natural number $n$:

$C_{n, 2} = 45$

Solve
Practice★★★Not started
Find the value of $x$ that satisfies the following combinatorial equation: $\binom{x}{2} + \binom{x-1}{2} = 25$

Find the value of $x$ that satisfies the following combinatorial equation:

$\binom{x}{2} + \binom{x-1}{2} = 25$

Solve

Choosing from groups: multiply the blocks

Many selections have conditions like "2 juniors and 3 seniors" or "exactly 3 of a certain kind." Split the problem into independent blocks, count each block with a combination, and multiply.

A student council of 5 is split into two blocks, 2 juniors chosen from 9 and 3 seniors chosen from 7, whose counts 36 and 35 are multiplied to give 1,260. council of 5 2 juniors chosen from 9 C(9,2) = 36 · 3 seniors chosen from 7 C(7,3) = 35 36 · 35 = 1,260

When a problem says "exactly $k$ of a special kind," split everything into "special" and "other." Choose $k$ from the special group and the rest from the other group. In a lottery problem, for example, the "special" numbers are the winning ones. In a card problem, the "special" cards might be all the cards of one suit.

Practice★★☆Not started
A company needs to form a project team consisting of $3$ engineers and $2$ economists. If there are $8$ engineers and $5$ economists available on the staff, calculate…

A company needs to form a project team consisting of $3$ engineers and $2$ economists. If there are $8$ engineers and $5$ economists available on the staff, calculate how many different teams can be formed.

Solve
Practice★★☆Not started
$5$ cards are drawn simultaneously from a $40$-card Spanish deck (divided into $4$ suits of $10$ cards each). Determine in how many of the possible results there are…

$5$ cards are drawn simultaneously from a $40$-card Spanish deck (divided into $4$ suits of $10$ cards each). Determine in how many of the possible results there are exactly $3$ cards of the coins suit.

Solve
Practice★★★Not started
A lottery game consists of choosing $6$ numbers from a total of $49$. If the winning combination of $6$ numbers is already known, calculate how many different possible…

A lottery game consists of choosing $6$ numbers from a total of $49$. If the winning combination of $6$ numbers is already known, calculate how many different possible bets would obtain exactly $4$ correct numbers.

Solve

Required members and "at least"

Two more kinds of conditions show up all the time.

Required members. If some items must be chosen, they are already in the group. Choose the rest from the remaining items.

"At least." You have two strategies.

  • Add the cases: "at least 3" means exactly 3, exactly 4, and so on. Add those counts.

  • Complement: "at least 1" means everything minus "none." Count all the groups, then subtract the groups that fail.

A bar representing all 330 committees of 4 people, split into 15 committees with no boys and 315 committees with at least one boy. all 4-person committees: C(11,4) = 330 at least 1 boy: 315 no boys: C(6,4) = 15 subtract these from the total
Practice★★☆Not started
On a test with $12$ questions, you must answer a total of $8$. However, the first $3$ questions are required. Determine the number of different ways you can complete…

On a test with $12$ questions, you must answer a total of $8$. However, the first $3$ questions are required. Determine the number of different ways you can complete your selection of questions.

Solve
Practice★★★Not started
A hospital must form a night shift team of $5$ people, selected from a group of $7$ doctors and $6$ nurses. Calculate how many different teams can be formed if…

A hospital must form a night shift team of $5$ people, selected from a group of $7$ doctors and $6$ nurses. Calculate how many different teams can be formed if regulations require the team to contain at least $3$ doctors.

Solve
Practice★★★Not started
An urn contains $6$ red balls, $5$ blue balls, and $4$ green balls. $4$ balls are drawn simultaneously. Calculate how many different outcomes contain exactly $2$ red…

An urn contains $6$ red balls, $5$ blue balls, and $4$ green balls. $4$ balls are drawn simultaneously. Calculate how many different outcomes contain exactly $2$ red balls and at least $1$ blue ball.

Solve

Paths on a grid

Combinations also count routes. Suppose a robot (or you, walking city blocks) must go from $A$ to $B$ moving only right or up. If the trip needs $m$ steps right and $p$ steps up, every route is a sequence of $m+p$ steps. A route is determined once you decide which of those steps go right.

A grid with 5 columns and 3 rows of blocks, with a highlighted route from A to B passing through point C using only right and up steps. A B C 5 steps right + 3 steps up = 8 steps choose which 3 of the 8 steps go up
Practice★★☆Not started
A robot moves along a grid from point $A$ to point $B$. It can only move to the right or upward, advancing one intersection at each step. Calculate the number of…

A robot moves along a grid from point $A$ to point $B$. It can only move to the right or upward, advancing one intersection at each step. Calculate the number of different paths it can follow.

A B
Solve
Practice★★★Not started
A robot moves along a grid from node $A$ to node $B$, moving only to the right and upward. It must pass through node $C$ to pick up a package. Determine how many valid…

A robot moves along a grid from node $A$ to node $B$, moving only to the right and upward. It must pass through node $C$ to pick up a package. Determine how many valid routes exist.

A B C
Solve

Combinations with repetition

What if you may pick the same item more than once? At a frozen yogurt shop you can order 3 scoops from 4 flavors, and "two vanilla and one mint" is allowed. Order still does not matter, but now repeats are possible.

Stars and bars picture of choosing 3 scoops from 4 flavors: two stars, two bars, one star, one bar encode 2 vanilla, 0 chocolate, 1 mint, 0 strawberry. vanilla chocolate mint strawberry 2 0 1 0 3 stars (scoops) + 3 bars (dividers)

The same formula counts ways to give identical items to different people. For each item you decide who gets it, and since the items are identical, only the totals matter. The people play the role of the "types."

Dominoes: unordered pairs with repeats

A domino tile has two halves, each showing a value. The tile $[2|5]$ is the same tile as $[5|2]$, so order does not matter. But both halves may show the same value (a "double" like $[3|3]$), so repeats are allowed. A set of dominoes is therefore a count of unordered pairs with repeats: $k=2$, and $n$ is the number of different values on a half.

To count the non-doubles, notice that they are the pairs with two different values. That is an ordinary combination, $\binom{n}{2}$. You can also get it by subtracting: total tiles minus the $n$ doubles.

Practice★★☆Not started
A bakery sells $6$ different types of cakes. Determine in how many different ways $4$ cakes can be bought, keeping in mind that several of the same type can be chosen.

A bakery sells $6$ different types of cakes. Determine in how many different ways $4$ cakes can be bought, keeping in mind that several of the same type can be chosen.

Solve
Practice★★☆Not started
You have $8$ identical tickets for a concert and you want to divide them among your $4$ best friends. Calculate how many ways you can distribute them, knowing that a…

You have $8$ identical tickets for a concert and you want to divide them among your $4$ best friends. Calculate how many ways you can distribute them, knowing that a friend can receive several tickets or even none.

Solve
Practice★★★Not started
The traditional game of dominoes goes up to double-six (the values range from $0$ to $6$). A manufacturer decides to create a "super dominoes" set that goes up to…

The traditional game of dominoes goes up to double-six (the values range from $0$ to $6$). A manufacturer decides to create a "super dominoes" set that goes up to double-nine (the values range from $0$ to $9$). Calculate how many total tiles this new set will have and how many of them will not be doubles.

Solve

Repetition with a minimum

What if each type must appear at least once? Do it in two steps. First reserve one item of each type, so the requirement is satisfied. Then distribute what is left with no restrictions.

Reserving one cookie for each of 4 kids leaves 6 cookies to distribute freely. 10 cookies, 4 kids, at least 1 each 1 cookie reserved for each kid: 4 used, 6 left spread the 6 left freely: C(9,6) = 84
Practice★★★Not started
An ice cream parlor offers $5$ different flavors. You want to buy $8$ tubs of ice cream for a party, but you want to make sure you get at least one tub of each of the…

An ice cream parlor offers $5$ different flavors. You want to buy $8$ tubs of ice cream for a party, but you want to make sure you get at least one tub of each of the $5$ flavors. Calculate how many different ways you can place your order.

Solve

Summary

See all the exercises in this section