Counting · Lesson 1 of 1

Arrangements and selections

Counting without listing: the multiplication rule, factorials, permutations (order matters) and combinations (order doesn't), repeated letters, and committees.

18 minYou should already know: Probability
  1. 1

When the list of outcomes is too long to write out, we count it instead. This topic comes up mostly in JAMB, and it’s the counting behind many probability questions.

The multiplication rule

If one choice can be made in aa ways and, after it, a second choice in bb ways, the two together can be made in a×ba \times b ways.

A PIN has 3 digits, each 0 to 9: 10×10×10=100010 \times 10 \times 10 = 1000 PINs. If the digits must be different: 10×9×8=72010 \times 9 \times 8 = 720, because each digit used is no longer available.

1st10×2nd9×3rd810 × 9 × 8 = 720
One box per choiceMultiply the number of choices for each place

More: the multiplication rule

Factorials

Arranging nn different things in a row: nn choices for the first place, n−1n - 1 for the second, and so on down to 1. That product is nn factorial:

n!=n×(n−1)×⋯×2×1n! = n \times (n - 1) \times \cdots \times 2 \times 1

So 5 people can stand in a row in 5!=1205! = 120 ways. By agreement, 0!=10! = 1.

Arrangements: order matters

The number of ways to arrange rr things chosen from nn different things is

nPr=n×(n−1)×⋯ (r factors)=n!(n−r)!{}^nP_r = n \times (n - 1) \times \cdots \ (r \text{ factors}) = \frac{n!}{(n - r)!}

Use it when swapping two chosen things gives a different result: first and second prize, a president and a secretary, seats in a row, digits in a number.

More: arrangements

Selections: order doesn’t matter

The number of ways to choose rr things from nn, when only which things are chosen matters, is

nCr=n!r! (n−r)!{}^nC_r = \frac{n!}{r!\,(n - r)!}

Use it for a committee, a team, a hand of cards, subjects for an exam: choosing Ade and Bola is the same as choosing Bola and Ade.

Why ⁿPᵣ = ⁿCᵣ × r!

Arrange or select?Change n and r
ABABBA
ACACCA
ADADDA
BCBCCB
BDBDDB
CDCDDC
6selections, ⁿCᵣ = 4! ÷ (2! × 2!)2orders of each, 2!12arrangements, ⁿPᵣ = 4! ÷ 2!
Order matters (a president and a secretary, a PIN, a word): each selection gives 2 different arrangements, so 6 × 2 = 12. That is ⁿPᵣ = ⁿCᵣ × r!.
selectionsarrangementsA, BABBAA, CACCAB, CBCCB³C₂ = 3 selections, × 2! = 6 = ³P₂ arrangements
Selections and arrangementsEach selection of r things gives r! orders

Each row is one selection. With Order matters chosen, the row unfolds into all the ways of ordering it, and every selection unfolds into the same number of arrangements, r!r!. So

nPr=nCr×r!andnCr=nPrr!{}^nP_r = {}^nC_r \times r! \qquad\text{and}\qquad {}^nC_r = \frac{{}^nP_r}{r!}

More: selections

Committees with conditions

When a committee needs so many from one group and so many from another, choose from each group separately and multiply.

Worked example · JAMB 2010

JAMB 2010 · UTME · Q49

In how many ways can a committee of 2 women and 3 men be chosen from 6 men and 5 women?

  1. The women

    5C2=5×42=10{}^5C_2 = \frac{5 \times 4}{2} = 10.

    Think first. Choose 2 women from 5: how many ways?

  2. The men

    6C3=6×5×43×2×1=20{}^6C_3 = \frac{6 \times 5 \times 4}{3 \times 2 \times 1} = 20.

    Think first. Choose 3 men from 6: how many ways?

  3. Together

    Any choice of women goes with any choice of men: 10×20=20010 \times 20 = 200. (B)

For “at least one man and at least one woman”, either add the separate cases (1 man and 2 women, 2 men and 1 woman), or take the total and subtract the cases that break the rule (all men, all women).

More: committees with conditions

Letters that repeat

Arranging the letters of a word where some letters are the same: swapping two identical letters gives the same word, so divide by the factorial of each repeat.

arrangements=n!p! q!⋯\text{arrangements} = \frac{n!}{p!\,q!\cdots}

where the letters repeat pp times, qq times, ….

Worked example · JAMB 2012

JAMB 2012 · UTME · Q48

In how many ways can the letters of the word TOTALITY be arranged?

  1. Count the letters

    T, O, T, A, L, I, T, Y: 8 letters, and T appears 3 times. The others appear once.

    Think first. How many letters? Which ones repeat?

  2. Divide out the repeats

    8!3!=40 3206=6720\frac{8!}{3!} = \frac{40\,320}{6} = 6720

    (A)

More: letters that repeat

Round a table

For nn people round a circular table, only their positions relative to each other matter. Fix one person’s seat and arrange the rest: (n−1)!(n - 1)!. Six people: 5!=1205! = 120 ways.

ABCDABCD=a turn changes nothing: fix A, arrange the rest
Round a tableTurning the table gives the same seating

More: round a table

Your turn

JAMB 1992 · UME · Q49

Five people are to be arranged in a row for a group photograph. How many arrangements are there if a married couple in the group insist on sitting next to each other?

Worked solution (try it first)
  1. Tie the couple together and treat them as one unit.
  2. Then there are 4 units to arrange in a row: 4!=244! = 24 ways.
  3. Inside the unit the couple can swap places: 2!=22! = 2 ways.
  4. Multiply: 24×2=4824 \times 2 = 48 arrangements, option A.

Report a problem with this question

More past questions like this