Permutation & combination · Lesson 1 of 2

Equations and harder arrangements

Solve equations in ⁿPᵣ and ⁿCᵣ, arrange objects that must stay together or letters that repeat, and count numbers made from given digits under conditions.

21 minYou should already know: Counting
  1. 1
  2. 2

General Maths gave you the tools (see counting): the multiplication rule, n!n!, nPr{}^nP_r for arrangements and nCr{}^nC_r for selections.

nPr=n!(n−r)!nCr=n!r! (n−r)!{}^nP_r = \frac{n!}{(n - r)!} \qquad {}^nC_r = \frac{n!}{r!\,(n - r)!}
selectionsarrangementsA, BABBAA, CACCAB, CBCCB³C₂ = 3 selections, × 2! = 6 = ³P₂ arrangements
Arrangements and selectionsEach selection of r gives r! arrangements: ⁿPᵣ = ⁿCᵣ × r!

Further Maths uses them with an unknown nn, and in arrangements with conditions.

Equations in ⁿPᵣ and ⁿCᵣ

Write each symbol as a product of whole numbers, cancel the factorials, then solve. For example, nP2=n(n−1){}^nP_2 = n(n - 1) and nC2=n(n−1)2{}^nC_2 = \frac{n(n - 1)}{2}. Keep only a positive whole-number answer that is at least rr.

Worked example · WAEC 2016

WAEC 2016 · Paper 2 · Q5 (a)

If nP5÷nC4=24{}^nP_5 \div {}^nC_4 = 24, find the value of nn.

  1. Write out each symbol

    • nP5=n!(n−5)!{{}^nP_5 = \frac{n!}{(n - 5)!}}.
    • nC4=n!4! (n−4)!{{}^nC_4 = \frac{n!}{4!\,(n - 4)!}}.
  2. Divide

    • n!(n−5)!×4! (n−4)!n!{\frac{n!}{(n - 5)!} \times \frac{4!\,(n - 4)!}{n!}}.
    • The n!n! cancels: 4! (n−4)!(n−5)!{\frac{4!\,(n - 4)!}{(n - 5)!}}.
    • (n−4)!=(n−4)×(n−5)!{(n - 4)! = (n - 4) \times (n - 5)!}, so this is 24(n−4){24(n - 4)}.

    Think first. Dividing by a fraction means multiplying by its reciprocal. What cancels?

  3. Solve

    • 24(n−4)=24{24(n - 4) = 24}, so n−4=1{n - 4 = 1}.
    • So n=5{n = 5}.

More: equations and expressions in ⁿCᵣ

Objects that must stay together

When some objects must stand together, glue them into one block. Arrange the blocks and single objects as units, then multiply by the number of ways to arrange the objects inside each block:

ABCDE4 units: 4! = 24 ordersCD or DC inside: × 2! = 48
Glue them togetherArrange the units, then arrange inside each block
Keep them togetherTick the subjects that must stay together
9units to arrange362,8809!
With no conditions, all 9 different books can go in any order: 9! = 362,880.

Worked example · WAEC 2016

WAEC 2016 · Paper 2 · Q13 (a)

Two different Mathematics books, 5 different Physics books and 3 different Chemistry books are to be arranged on a shelf. How many arrangements are possible if: (i) books on the same subject must stand together; (ii) only the Physics books must stand together?

  1. All subjects together

    • The three subject blocks can be ordered in 3!=6{3! = 6} ways.
    • Inside: Mathematics 2!=2{2! = 2}, Physics 5!=120{5! = 120}, Chemistry 3!=6{3! = 6}.
    • So 6×2×120×6=8640{6 \times 2 \times 120 \times 6 = 8640} arrangements.

    Think first. Three blocks. How many orders for the blocks? And inside each?

  2. Only Physics together

    • Glue the 5 Physics books: the units are 1 block, 2 Mathematics and 3 Chemistry books, 6 units.
    • The units: 6!=720{6! = 720} orders. Inside the block: 5!=120{5! = 120}.
    • So 720×120=86 400{720 \times 120 = 86\,400} arrangements.

    Think first. How many units are there now?

Letters that repeat

When some of the objects are identical, such as the letters of a word with repeated letters, swapping two identical letters gives the same word. Arrange them as if they were all different, then divide by the number of ways to shuffle each set of repeats. For nn objects with one letter repeated pp times, another qq times, and so on:

arrangements=n!p! q! ⋯\text{arrangements} = \frac{n!}{p!\,q!\,\cdots}
A's tagged: 3! = 6tags offA₁A₂BA₂A₁BAABA₁BA₂A₂BA₁ABABA₁A₂BA₂A₁BAAeach word counted 2! times: 3! ÷ 2! = 3 words
Take the tags offA, A, B: 3! orders with the A's tagged, but each word appears 2! times, so 3!/2! = 3

A letter that appears once has 1!=11! = 1, so it changes nothing.

Worked example

In how many ways can the letters of the word BANANA be arranged?
  1. Count the letters

    • BANANA has 6 letters.
    • A appears 3 times.
    • N appears 2 times, and B once.

    Think first. How many letters in all, and which of them repeat?

  2. As if all different

    • Tag the repeats: B,A1,N1,A2,N2,A3{\text{B}, \text{A}_1, \text{N}_1, \text{A}_2, \text{N}_2, \text{A}_3}.
    • These can be ordered in 6!=720{6! = 720} ways.

    Think first. If every letter were different, how many orders?

  3. Divide out the repeats

    • Shuffling the three A’s gives the same word: divide by 3!=6{3! = 6}.
    • Swapping the two N’s gives the same word: divide by 2!=2{2! = 2}.
    • So 7206×2=60{\frac{720}{6 \times 2} = 60} arrangements.

    Think first. How many times is each word counted among the 720?

More: letters that repeat

Numbers from given digits

Fill the most restricted place first. A number greater than 5000 restricts the first digit; an even number restricts the last digit. If both are restricted and they can clash (the same digit could be needed in both places), split into cases.

Worked example · WAEC 2019

WAEC 2019 · Paper 2 · Q1

How many even numbers greater than 5000 can be formed using the digits 1, 2, 4, 5, 6 if no digit is used more than once?

  1. Which numbers?

    • Every five-digit number from these digits is greater than 5000.
    • A four-digit number must start with 5 or 6.
    • Every number must end in an even digit: 2, 4 or 6.

    Think first. Can a five-digit number be less than 5000? What must a four-digit one start with?

  2. Four digits, starting with 5

    • The last digit: 2, 4 or 6, which is 3 choices.
    • The middle two from the 3 digits left: 3×2=6{3 \times 2 = 6}.
    • So 3×6=18{3 \times 6 = 18} numbers.

    Think first. How many choices for the last digit? Then the middle two?

  3. Four digits, starting with 6

    • The last digit: 2 or 4 (6 is used), which is 2 choices.
    • The middle two: 3×2=6{3 \times 2 = 6}.
    • So 2×6=12{2 \times 6 = 12} numbers.
  4. Five digits

    • The last digit: 3 choices. The other four digits in any order: 4!=24{4! = 24}.
    • So 3×24=72{3 \times 24 = 72} numbers.
    • The total is 18+12+72=102{18 + 12 + 72 = 102}.

More: arrangements

Your turn

WAEC 2016 · Paper 2 · Q11 (a)

  1. (a)

    If kP2=72{}^kP_2 = 72, find the value of kk.

Worked solution (try it first)

(a)

  1.  kP2=k(k−1)=72\,{}^kP_2 = k(k - 1) = 72, so k2−k−72=0k^2 - k - 72 = 0.
  2. Factorise: (k−9)(k+8)=0(k - 9)(k + 8) = 0.
  3. kk must be a positive whole number, so k=9k = 9.

Report a problem with this question