Skip to content
Combinatorics · Chapter 2

Combinations

When order doesn't matter, count the ordered picks and divide out the repeats: that's choosing.

You'll need
open on YouTube
2.10%

Combinations Fundamentals

In this section you will be able to count choices where order doesn't matter, by dividing the ordered picks by k!.

You grab 3 pencils from a box of 6 for a test. Grabbing the red one first and the blue one second gives the same 3 pencils as the other way round. So how many different handfuls are there?

In Chapter 1, order mattered. Now it doesn’t. The trick: count the ordered picks first, then divide by the number of ways to order each group. That’s k!k!.

Look:Choosing 2 of 6 things to keep is the same as choosing 4 of them to leave behind.

Exploreplay first, formulas later

Pick 3 of 5 balls in order: 60 ordered picks; each group shows up 6 times

balls n5
pick k3
ABC
ABD
ABE
ACB
ACD
ACE
ADB
ADC
ADE
AEB
AEC
AED
BAC
BAD
BAE
BCA
BCD
BCE
BDA
BDC
BDE
BEA
BEC
BED
CAB
CAD
CAE
CBA
CBD
CBE
CDA
CDB
CDE
CEA
CEB
CED
DAB
DAC
DAE
DBA
DBC
DBE
DCA
DCB
DCE
DEA
DEB
DEC
EAB
EAC
EAD
EBA
EBC
EBD
ECA
ECB
ECD
EDA
EDB
EDC
5 × 4 × 3 = 60 ordered picks

60 ordered picks of 3 from 5

Name it

Definition 2.1.1

A combination is a collection of items where the order of the items does not matter.

Remark 2.1.2

Usually, the words permute, order does matter, etc. imply a permutation, while the words choose, select, order doesn't matter, etc. imply a combination.

Theorem 2.1.3 · Combinations Formula

The number of ways to choose kk objects out of a total of nn objects is

(nk)=n!k! (n−k)!=n(n−1)(n−2)⋯(n−k+1)k!.\binom{n}{k} = \frac{n!}{k!\,(n-k)!} = \frac{n(n-1)(n-2)\cdots(n-k+1)}{k!}.

Remark 2.1.4

Look:

(nk)=(nn−k).\binom{n}{k} = \binom{n}{n-k}.

This is true because choosing the kk objects that are part of your selection (left-hand side) is the same as choosing the n−kn-k objects that are not part of your selection (right-hand side). For example,

(62)=(64).\binom{6}{2} = \binom{6}{4}.

Watch itpredict, then reveal

Example 2.1

How many ways can I select 3 pencils from 6 different pencils?

Pick 3 of 6 pencils in order: 120 ordered picks; each group shows up 6 times

pencils n6
pick k3
P1P2P3
P1P2P4
P1P2P5
P1P2P6
P1P3P2
P1P3P4
P1P3P5
P1P3P6
P1P4P2
P1P4P3
P1P4P5
P1P4P6
P1P5P2
P1P5P3
P1P5P4
P1P5P6
P1P6P2
P1P6P3
P1P6P4
P1P6P5
P2P1P3
P2P1P4
P2P1P5
P2P1P6
P2P3P1
P2P3P4
P2P3P5
P2P3P6
P2P4P1
P2P4P3
P2P4P5
P2P4P6
P2P5P1
P2P5P3
P2P5P4
P2P5P6
P2P6P1
P2P6P3
P2P6P4
P2P6P5
P3P1P2
P3P1P4
P3P1P5
P3P1P6
P3P2P1
P3P2P4
P3P2P5
P3P2P6
P3P4P1
P3P4P2
P3P4P5
P3P4P6
P3P5P1
P3P5P2
P3P5P4
P3P5P6
P3P6P1
P3P6P2
P3P6P4
P3P6P5
P4P1P2
P4P1P3
P4P1P5
P4P1P6
P4P2P1
P4P2P3
P4P2P5
P4P2P6
P4P3P1
P4P3P2
P4P3P5
P4P3P6
P4P5P1
P4P5P2
P4P5P3
P4P5P6
P4P6P1
P4P6P2
P4P6P3
P4P6P5
P5P1P2
P5P1P3
P5P1P4
P5P1P6
P5P2P1
P5P2P3
P5P2P4
P5P2P6
P5P3P1
P5P3P2
P5P3P4
P5P3P6
P5P4P1
P5P4P2
P5P4P3
P5P4P6
P5P6P1
P5P6P2
P5P6P3
P5P6P4
P6P1P2
P6P1P3
P6P1P4
P6P1P5
P6P2P1
P6P2P3
P6P2P4
P6P2P5
P6P3P1
P6P3P2
P6P3P4
P6P3P5
P6P4P1
P6P4P2
P6P4P3
P6P4P5
P6P5P1
P6P5P2
P6P5P3
P6P5P4
6 × 5 × 4 = 120 ordered picks

120 ordered picks of 3 from 6

  1. 1

    Let's first treat it like a permutation. How many choices for the 1st pencil, the 2nd pencil and the 3rd pencil, all multiplied together?

    Predict first:

Example 2.2

How many ways are there to choose a committee of 3 people from 6 people?

Pick 3 of 6 people in order: 120 ordered picks; each group shows up 6 times

people n6
pick k3
ABC
ABD
ABE
ABF
ACB
ACD
ACE
ACF
ADB
ADC
ADE
ADF
AEB
AEC
AED
AEF
AFB
AFC
AFD
AFE
BAC
BAD
BAE
BAF
BCA
BCD
BCE
BCF
BDA
BDC
BDE
BDF
BEA
BEC
BED
BEF
BFA
BFC
BFD
BFE
CAB
CAD
CAE
CAF
CBA
CBD
CBE
CBF
CDA
CDB
CDE
CDF
CEA
CEB
CED
CEF
CFA
CFB
CFD
CFE
DAB
DAC
DAE
DAF
DBA
DBC
DBE
DBF
DCA
DCB
DCE
DCF
DEA
DEB
DEC
DEF
DFA
DFB
DFC
DFE
EAB
EAC
EAD
EAF
EBA
EBC
EBD
EBF
ECA
ECB
ECD
ECF
EDA
EDB
EDC
EDF
EFA
EFB
EFC
EFD
FAB
FAC
FAD
FAE
FBA
FBC
FBD
FBE
FCA
FCB
FCD
FCE
FDA
FDB
FDC
FDE
FEA
FEB
FEC
FED
6 × 5 × 4 = 120 ordered picks

120 ordered picks of 3 from 6

  1. 1

    Does the order of the people in a committee matter?

    Predict first:
open on YouTube

Example 2.3

Evaluate (63)\dbinom{6}{3}

  1. 1

    What are nn and kk here?

    Predict first:

Example 2.4

Omega Learn

You are working on the Mastering AMC 8 Book, and you must choose 7 of the 10 combinatorics chapters to work on. How many ways are there to do this?

Pascal's triangle, rows 0 to 10

rows10
111121133114641151010511615201561172135352171182856705628811936841261268436911104512021025221012045101

Click a number (or tab to the triangle and use the arrow keys) to see where it comes from.

Pascal's triangle, rows 0 to 10

  1. 1

    Does the order of the 7 chapters matter?

    Predict first:
open on YouTube

Example 2.5

Omega Learn

You are working on the Mastering AMC 8 Book, and you must choose 7 of the 10 combinatorics chapters to work on. However, the first 2 chapters are required to understand the remaining chapters so they must be chosen. How many ways are there to do this?

  1. 1

    The first 2 chapters are already in. How many more chapters do you still need to choose?

    Predict first:
open on YouTube

Try it

Problem 2.4.1

If you have Alice, Betty, Chase, and Dave and you need to choose two of them to be the leaders of the math club, how many ways are there to do this?

Problem 2.4.2

Evaluate (84)\dbinom{8}{4} and (97)\dbinom{9}{7}

Problem 2.4.3

How many ways are there to select 3 fruits amongst 8 different fruits?

Problem 2.4.4

How many ways are there to choose 4 balls from a bag which contains 9 balls of different color?

Problem 2.4.5

Mrs. Jones is organizing a potluck and wants to serve 8 different dishes. Each family can bring 3 dishes. How many families can Mrs. Jones invite so that no two families bring the same combination of dishes?

Checkpoint for section 2.1

Get 2 of 3 right to master this section. One try each, no hints.
1

Evaluate (72)\dbinom{7}{2}.

2

A pizza shop has 5 different toppings. How many ways can you choose 3 different toppings for your pizza?

3

Evaluate (2018)\dbinom{20}{18}. (Look for a shortcut!)

2.20%

Binomial Identity

In this section you will be able to count every possible collection of n things at once, using take-it-or-leave-it choices.

Nihir is packing a picnic basket. He can take any of his 5 fruits, or none of them. How many different baskets could he bring? Guess first!

Each row of Pascal’s triangle lists the ways to choose 0, 1, 2, … things from a group. Add up a whole row and you count every possible choice at once.

Look:For each item you have just 2 choices: take it or leave it. So n items give 2 × 2 × … × 2 = 2ⁿ collections.

Exploreplay first, formulas later

Pascal's triangle, rows 0 to 6

rows6
111121133114641151010511615201561

Click a number (or tab to the triangle and use the arrow keys) to see where it comes from.

Pascal's triangle, rows 0 to 6

Name it

Theorem 2.2.1 · Binomial Identity

The binomial identity states that

(n0)+(n1)+⋯+(nn)=2n.\binom{n}{0} + \binom{n}{1} + \cdots + \binom{n}{n} = 2^n.

Remark 2.2.2

Both of the above methods (adding up (n0)+(n1)+⋯+(nn)\binom{n}{0} + \binom{n}{1} + \cdots + \binom{n}{n}, or just computing 2n2^n) can be used for calculating the number of ways of choosing any number of items from nn different items.

Watch itpredict, then reveal

Example 2.6

Nihir has an apple, orange, banana, pear, and raspberry. He wants to take a fruit basket to a picnic. How many different types of fruit baskets can he take using the fruits he has?

Pascal's triangle, rows 0 to 5

rows5
11112113311464115101051

Click a number (or tab to the triangle and use the arrow keys) to see where it comes from.

Pascal's triangle, rows 0 to 5

  1. 1

    One way: list the baskets with 0 fruits, 1 fruit, 2 fruits, and so on. Is there an easier way to solve this question?

Example 2.7

You have 5 different pencils and 3 different erasers and must choose some of them to take to the AMC 8. How many ways are there to do this?

Pascal's triangle, rows 0 to 8

rows8
11112113311464115101051161520156117213535217118285670562881

Click a number (or tab to the triangle and use the arrow keys) to see where it comes from.

Pascal's triangle, rows 0 to 8

  1. 1

    How many different things can you take or leave?

    Predict first:
open on YouTube

Contest cornerreal contest problems

Problem 2.4.8

AMC 10

Henry's Hamburger Haven offers its hamburgers with the following condiments: ketchup, mustard, mayonnaise, tomato, lettuce, pickles, cheese, and onions. A customer can choose one, two, or three meat patties and any collection of condiments. How many different kinds of hamburgers can be ordered?

Checkpoint for section 2.2

Get 2 of 3 right to master this section. One try each, no hints.
1

What is (60)+(61)+(62)+(63)+(64)+(65)+(66)\dbinom{6}{0} + \dbinom{6}{1} + \dbinom{6}{2} + \dbinom{6}{3} + \dbinom{6}{4} + \dbinom{6}{5} + \dbinom{6}{6}?

2

A sandwich shop has 4 different toppings. You may put any collection of them on your sandwich, even none. How many different sandwiches can you make?

3

Same shop, same 4 toppings, but now your sandwich must have at least one topping. How many sandwiches?

2.30%

Tricky Combinations Examples

In this section you will be able to break a tricky choosing problem into stages, and multiply the stages together.

A company has 13 job applicants. It needs 2 managers and 4 more workers, and the managers must be experienced. Where do you even start?

Big choosing problems are easier in stages. Choose one group, then choose the next group from whoever is left. Every choice in one stage goes with every choice in the next, so you multiply.

Look:When the order is forced (like digits in increasing order), you only need to choose which items to use.

Exploreplay first, formulas later

Committee of 4 from 6 experienced and 7 new, no rule: C(13,4) = 715

experienced6
new7
committee size4
Rule on experienced:

Build one committee: tap 4 people.

0 of 4 picked
  • 0 experienced + 4 newC(6,0) × C(7,4) = 1 × 35 = 35 ✓
  • 1 experienced + 3 newC(6,1) × C(7,3) = 6 × 35 = 210 ✓
  • 2 experienced + 2 newC(6,2) × C(7,2) = 15 × 21 = 315 ✓
  • 3 experienced + 1 newC(6,3) × C(7,1) = 20 × 7 = 140 ✓
  • 4 experienced + 0 newC(6,4) × C(7,0) = 15 × 1 = 15 ✓
35 + 210 + 315 + 140 + 15 = 715 committeesSame as choosing 4 of all 13: C(13,4) = 715

Committees of 4, no rule: 715

Watch itpredict, then reveal

Example 2.8

Omega Learn

There are 6 experienced applicants and 7 inexperienced applicants applying for a job. Out of the experienced applicants, 2 managers are selected. Out of all of the other applicants who aren't selected for a manager (both experienced and inexperienced), 4 other employees are selected. How many ways are there to do this?

  1. 1

    First, how many ways are there to select the 2 managers?

    Predict first:

Example 2.9

Omega Learn

You have 12 different energy bars that you need to give to 3 people: Alice, Betty, and Chase. Alice needs 3 bars, Betty needs 4 bars, and Chase needs 5 bars. How many ways are there to distribute the 12 bars to satisfy their requirements?

  1. 1

    Start with Alice. How many ways can you pick her 3 bars?

    Predict first:
open on YouTube

Example 2.10

EMCC

How many ways are there to place 4 balls into a 4×64 \times 6 grid such that no column or row has more than one ball in it? (Rotations and reflections are considered distinct.)

One possible placement.
  1. 1

    There are 4 rows and 4 balls, with at most one ball per row. How many balls go in each row?

    Predict first:
open on YouTube

Example 2.11

AIME

Robert has 4 indistinguishable gold coins and 4 indistinguishable silver coins. Each coin has an engraving of one face on one side, but not on the other. He wants to stack the eight coins on a table into a single stack so that no two adjacent coins are face to face. Find the number of possible distinguishable arrangements of the 8 coins.

  1. 1

    First, deal with the colours. How many ways are there to arrange the 4 gold and 4 silver coins in the stack?

    Predict first:

Contest cornerreal contest problems

Problem 2.4.7

AMC 10

A set of 25 square blocks is arranged into a 5×55 \times 5 square. How many different combinations of 3 blocks can be selected from that set so that no two are in the same row or column?

Checkpoint for section 2.3

Get 2 of 3 right to master this section. One try each, no hints.
1

How many integers between 2020 and 2400 have four distinct digits arranged in increasing order? (For example, 2347 is one integer.)

2

How many 5 digit positive integers exist such that the third digit is 8, the first 3 digits ascending, and last 3 digits are descending?

3

There are 12 astronauts who applied to go on a mission to explore Mars. 2 different rockets will be sent from Earth: one carrying 3 people and another carrying 4. Out of the 12 astronauts, 4 of them are very experienced so they must go on either rocket. How many ways are there to place the astronauts in the rockets?

2.4

Practice Problems

In this section you will be able to mix every idea from this chapter on practice problems.

Time to mix it all up! These problems use combinations, symmetry, take-it-or-leave-it choices and stages. Every problem has three hints if you get stuck.

Want every problem from this chapter on one page? Open the problem set.

Mixed practice

Problem 2.4.6

There are 9 different flavors of ice cream at an ice cream shop. Joe wants to buy 2 or 3 scoops of different ice cream flavors. He doesn't like 2 of the flavors Mango and Chocolate together so won't buy them together. How many ways can he buy ice cream?