Loading

Chapter 6

Permutations and Combinations

How many 3-digit sequences might open a forgotten number lock, how many words can the letters of DAUGHTER make, and how many ways are there to pick a committee or a hand of cards? This chapter counts arrangements and selections without listing them: the fundamental principle of counting, factorials, permutations with and without repetition and with alike objects, and combinations, with Pascal's rule and many conditions such as "together", "at least" and dictionary order.

  • The fundamental principle of counting, and when to add instead of multiply
  • Filling vacant places, starting with the most restricted place
  • Factorials: n!, 0! = 1, and cancelling factorials
  • Permutations of different objects: ⁿPᵣ = n!/(n − r)!
  • Arrangements with repetition: n to the power r
  • Arrangements with alike objects: n!/(p₁! p₂! ... pₖ!)
  • Conditions: fixed places, letters together or apart, and dictionary order
  • Combinations: ⁿCᵣ = n!/(r!(n − r)!), ⁿCᵣ = ⁿCₙ₋ᵣ and Pascal's rule
  • Selecting and then arranging, and questions with "at least" and "at most"
Class 11, MathematicsOpen the original PDF

StartBefore you start: twelve ideas you already know

This chapter is about counting: counting the ways to arrange things, and the ways to choose them, without writing every way down. It needs only ideas you have met before. Each one is refreshed below with a small example. Read them once now; each comes back many times.

1. Counting by listing

The surest way to count is to write every case down, in an order that misses none. Example: the two-digit numbers made from the digits 1, 2, 3 with no digit used twice are 12, 13, 21, 23, 31 and 32: six numbers. Writing them in order (all starting with 1, then all starting with 2, then 3) is what makes sure none is missed. Listing works well for small counts and becomes slow very quickly. This chapter is about counting without listing.

2. Tree diagrams (Class 9, Chapter 7)

A tree diagram shows an experiment with several steps: each step branches into its possible results. Example: tossing a coin twice gives the branches H and T, and each of them branches again into H and T. The ends of the tree are HH, HT, TH and TT: four outcomes. Notice that 4 = 2 × 2: two branches, each splitting into two.

3. Digits, place value and the first digit

A three-digit number such as 507 has a hundreds digit (5), a tens digit (0) and a units digit (7). Its first digit can never be 0: the string 092 is really the two-digit number 92. So when we count three-digit numbers, a first digit of 0 must be left out. Example: the three-digit numbers run from 100 to 999, which is 900 numbers.

4. Even numbers, and division by 5 and 10

A whole number is even when its units digit is 0, 2, 4, 6 or 8, and odd otherwise. It is divisible by 5 when its units digit is 0 or 5, and by 10 when its units digit is 0. Example: 3746 is even, 3745 is divisible by 5, and 3740 is divisible by 10. So a question about even numbers is really a question about the units place.

5. Products and powers

A product of equal factors is written as a power: 4 × 4 × 4 = 4³ = 64, read "4 cubed" or "4 to the power 3". Example: 10 × 10 × 10 × 10 = 10⁴ = 10,000. Powers will count arrangements in which a thing may be used again and again.

6. Order matters, or it does not (Chapters 1 and 2)

An ordered pair (2, 3) is different from (3, 2): the order carries meaning, as in a point of the plane. A set {2, 3} is the same as {3, 2}: a set only says which things are in it. This difference is the whole difference between the two halves of this chapter. Arrangements are like ordered pairs; selections are like sets.

7. Subsets (Chapter 1)

A set with n elements has 2ⁿ subsets, counting the empty set and the set itself. Example: {a, b} has the 2² = 4 subsets ∅, {a}, {b} and {a, b}. Choosing a subset is choosing, for each element, "in" or "out": 2 choices for each element.

8. Cancelling in fractions

A factor that appears both above and below the line can be cancelled. Example: (7 × 6 × 5)/5 = 7 × 6 = 42. Long products will often cancel this way, so look for common factors before multiplying anything out.

9. Solving a quadratic equation by factorising (Class 10, Chapter 4)

To solve n² − 7n − 30 = 0, split the middle term: n² − 10n + 3n − 30 = n(n − 10) + 3(n − 10) = (n − 10)(n + 3). A product is zero only when a factor is zero, so n = 10 or n = −3. In counting, n stands for a number of objects, so it must be a natural number: we keep n = 10 and reject n = −3.

10. Vowels, consonants and "words"

The vowels of the English alphabet are A, E, I, O and U; the other 21 letters are consonants. In counting questions, a "word, with or without meaning" is any arrangement of letters: REOS counts as a word just as ROSE does. Example: the word DAUGHTER has the vowels A, U and E and the consonants D, G, H, T and R.

11. Dictionary order

A dictionary lists words by comparing their first letters; when the first letters are the same, it compares the second letters, and so on. Example: AN, ANT, AT and BAT are already in dictionary order. AN comes before ANT because a word that runs out first comes first, and ANT comes before AT because N comes before T.

12. A pack of playing cards (Class 9, Chapter 7, and Class 10, Chapter 14)

A pack has 52 cards in 4 suits of 13: spades and clubs are black, hearts and diamonds are red, so 26 cards are red and 26 black. Each suit has an ace, a king, a queen, a jack and the cards 2 to 10. Kings, queens and jacks are the face cards: 3 in each suit, 12 in all. There are 4 aces and 4 kings.

Words you will meet

WordMeaning
Fundamental principle of countingif one thing can be done in m ways and, after it, another in n ways, the two can be done in m × n ways
Permutationan arrangement of objects in a definite order
Combinationa selection of objects in which order does not matter
Factorial, n!the product 1 × 2 × 3 × ... × n, read "n factorial"
ⁿPᵣthe number of permutations of n different objects taken r at a time
ⁿCᵣthe number of combinations of n different objects taken r at a time
With repetitionan object may be used again after it is used once
Objects of the same kindobjects that cannot be told apart, such as the two O's of ROOT

By the end of this chapter you will be able to

  • count the ways of doing several things one after another with the fundamental principle of counting;
  • use the factorial notation n! and simplify expressions with factorials;
  • count arrangements with and without repetition, using ⁿPᵣ = n!/(n − r)! and nʳ;
  • count arrangements when some of the objects are alike, using n!/(p₁! p₂! ... pₖ!);
  • count selections with ⁿCᵣ = n!/(r!(n − r)!), and use ⁿCᵣ = ⁿCₙ₋ᵣ and ⁿCᵣ + ⁿCᵣ₋₁ = ⁿ⁺¹Cᵣ;
  • decide in each question whether order matters, and handle conditions such as "together", "never together", "at least" and "at most";
  • solve story problems on numbers, words, flags, teams, committees, cards and seating.

6.1Permutations and combinations: introduction

A thought to begin with

The chapter opens with a line the book credits to Charles Darwin: "Every body of discovery is mathematical in form because there is no other guidance we can have." Counting is one of the oldest parts of that mathematics.

Jacob Bernoulli (1654 to 1705), whose book Ars Conjectandi, published in 1713, was the first complete treatment of permutations and combinations (the book's portrait).

The book begins with a puzzle. You have a suitcase with a number lock. The lock has 4 wheels, and each wheel shows the 10 digits 0 to 9. The lock opens when 4 particular digits, all different, are set in a particular order. You have forgotten the order. You remember only that the first digit is 7. How many sequences of 3 digits might you have to try on the other wheels?

You could start writing them all down: 012, 013, 014, and so on. This is tedious, because the number of sequences may be large, and it is easy to miss one or count one twice. This chapter teaches counting techniques: ways to find how many arrangements or selections there are without listing them. The first step is one principle, the most basic idea of the whole subject. Section 6.2 states it, and with it the lock puzzle takes one line.

Worked example 1

List all the two-letter arrangements of the letters A, B and C, with no letter used twice. How many are there?

What we know: Three letters; an arrangement uses two of them in order; AB and BA are different arrangements.

What we need: The full list, and its size.

The plan: List in order: first everything starting with A, then B, then C, so that nothing is missed.

  1. Starting with A: AB, AC (the second letter is B or C).
  2. Starting with B: BA, BC.
  3. Starting with C: CA, CB.

6 arrangements: AB, AC, BA, BC, CA, CB.

Check: Each first letter is followed by exactly 2 others, and there are 3 first letters, so the list has 3 × 2 = 6 entries. This product is the idea of section 6.2.

Worked example 2

Listing the lock's 3-digit sequences takes about 5 seconds each. Section 6.2 will show there are 504 of them. How long would listing take?

What we know: 504 sequences, 5 seconds each.

What we need: The total time.

The plan: Multiply, then change seconds into minutes.

  1. 504 × 5 = 2520 seconds.
  2. 2520 ÷ 60 = 42 minutes.

About 42 minutes of steady listing, with every chance of a slip.

Check: A four-wheel lock with any digits on all wheels has 10 × 10 × 10 × 10 = 10,000 settings: listing those would take almost 14 hours. Counting without listing is not a luxury.

The big idea of the chapter

Do not list: count the choices at each step and multiply. Then ask one question in every problem: does the order matter? If it does, you are counting permutations (arrangements); if it does not, combinations (selections).

When you are stuck: the introduction

Try a small case by listing: two letters instead of five, three digits instead of ten. A small list shows the pattern that the formula will use.

Write the list in a fixed order (by first letter, then second), so that no case is missed or counted twice.

Worked example 3

Does order matter? Decide for each: (a) the first three batters of a cricket team, in batting order; (b) three fruits picked for a fruit chaat; (c) a 4-digit OTP sent to a phone; (d) two friends chosen to share a taxi.

What we know: Order matters when swapping two of the chosen things gives a different outcome.

What we need: A yes or no for each situation, with the reason.

The plan: Swap two of the chosen items in each situation and ask whether anything changes.

  1. (a) Swapping the first and second batters changes who faces the first ball: order matters.
  2. (b) Apple, banana and guava make the same chaat in any order: order does not matter.
  3. (c) The OTP 4829 does not work if typed as 2849: order matters, and digits may repeat.
  4. (d) Riya and Sana sharing a taxi is the same as Sana and Riya: order does not matter.

Order matters in (a) and (c); it does not in (b) and (d). (a) and (c) are arrangements; (b) and (d) are selections.

Check: The swap test is the whole decision. A useful habit is to write "order matters" or "order does not matter" at the top of every counting problem before doing anything else.

Worked example 4

In how many ways can three friends, Aman, Bela and Chirag, sit on three chairs in a row? List the ways, then count them without listing.

What we know: 3 different people, 3 chairs in a row; a seating is the order of the three names.

What we need: The list and its size.

The plan: List in a fixed order (by who sits first), then count by places.

  1. With A, B, C for the three friends: ABC, ACB (A first); BAC, BCA (B first); CAB, CBA (C first).
  2. By places: the first chair 3 ways, then the second 2 ways, then the third 1 way: 3 × 2 × 1 = 6.

6 ways, and the list and the count agree.

Check: With 10 friends the same counting gives 10 × 9 × ... × 1 = 36,28,800 seatings, far too many to list. The counting methods of this chapter exist for exactly this reason.

Your turn

List the two-digit numbers that can be made from the digits 4, 5 and 6 if a digit may be used twice. How many are there?Tap to reveal
  1. Starting with 4: 44, 45, 46.
  2. Starting with 5: 54, 55, 56.
  3. Starting with 6: 64, 65, 66.

9 numbers. Each of the 3 first digits has 3 second digits, and 3 × 3 = 9.

Is a phone's 4-digit PIN an arrangement or a selection?Tap to reveal
  1. The PIN 1234 does not open a phone set to 4321.
  2. So the order of the digits matters.

An arrangement: the order matters, as in a permutation.

In one line

Counting techniques find how many arrangements or selections there are without listing them, and the first question is always whether order matters.

6.2The fundamental principle of counting

Why we need it

Mohan has 3 pants and 2 shirts. In how many different ways can he wear a pant and a shirt together? You could list the pairs. But the question has a pattern that works for any numbers, and the pattern is what this section is about.

He can choose a pant in 3 ways, because there are 3 pants. Then he can choose a shirt in 2 ways. For every choice of pant there are 2 choices of shirt. So there are 2 pairs with the first pant, 2 with the second and 2 with the third: 2 + 2 + 2 = 3 × 2 = 6 pairs.

See it

Name the pants P1, P2, P3 and the shirts S1, S2. The six pairs are P1S1, P1S2, P2S1, P2S2, P3S1 and P3S2. The book draws them as a tree in Fig 6.1: each pant branches into the two shirts.

Book Figure 6.1: The 6 possible pairs of a pant and a shirt, for Mohan's 3 pants P1, P2, P3 and 2 shirts S1, S2 (the book labels this figure only with its number).

Here is a second problem of the same type. Sabnam has 2 school bags, 3 tiffin boxes and 2 water bottles. In how many ways can she carry one of each? A bag can be chosen in 2 ways. After a bag is chosen, a tiffin box can be chosen in 3 ways, so there are 2 × 3 = 6 pairs of a bag and a box. For each of these 6 pairs a bottle can be chosen in 2 ways. So there are 6 × 2 = 12 ways. Name the bags B1, B2, the boxes T1, T2, T3 and the bottles W1, W2: the book draws the 12 ways as a tree in Fig 6.2.

Book Figure 6.2: The 12 ways in which Sabnam can carry one each of her 2 school bags B1, B2, 3 tiffin boxes T1, T2, T3 and 2 water bottles W1, W2 (the book labels this figure only with its number).

The idea in plain words

When a job is done in steps, one after another, count the ways for each step and multiply. This works when the number of ways for a step is always the same, whatever was chosen in the earlier steps. The choices themselves may change; their number must not.

The fundamental principle of counting

If an event can occur in m different ways, following which another event can occur in n different ways, then the total number of occurrences of the two events in the given order is m × n.

For three events: if the first can occur in m ways, following which a second in n ways, following which a third in p ways, the three can occur in that order in m × n × p ways. The same holds for any finite number of events.

It is also called the multiplication principle. "Following which" means: for each way of the first event, the second can occur in n ways.

The fundamental principle of counting

Read it as "m one times m two times ... times m k": the job has k steps, and step 1 can be done in m₁ ways, step 2 (after step 1) in m₂ ways, and so on.

For two steps it is m × n; for three steps, m × n × p.

Why it is true

  1. List the ways by the first step: there are m groups, one for each way of doing the first step.
  2. Each group contains the n ways of doing the second step after that first step.
  3. So the total is n + n + ... + n, with m equal terms.
  4. Adding n to itself m times gives m × n. With a third step, each of these m × n ways splits again into p ways, giving m × n × p.

The tree shows the same thing: the first step gives m branches, and each branch splits into n. The ends of the tree, which are the possible results, number m × n.

In both problems the events could have been taken in another order: Sabnam could choose the bottle first. The count does not change, but we must fix one order and count the ways in that order.

ACB3 roads4 roads
Three roads from A to B and four from B to C: every road to B can be followed by every road on to C, so there are 3 × 4 = 12 routes from A to C through B.

Five kinds of worked example

Worked example 5

Direct: a café offers 4 kinds of sandwich and 3 kinds of juice. How many different meals of one sandwich and one juice are there?

What we know: Step 1: a sandwich, 4 ways. Step 2: a juice, 3 ways, whatever the sandwich.

What we need: The number of meals.

The plan: Two steps one after another: multiply.

  1. Number of meals = 4 × 3, by the fundamental principle.
  2. 4 × 3 = 12.

12 meals.

Check: List by sandwich: each of the 4 sandwiches goes with 3 juices, giving 3 + 3 + 3 + 3 = 12.

Worked example 6

Story: a thali at a dhaba in Amritsar comes with one sabzi (from 3), one bread (roti or naan) and one sweet (from 4). How many different thalis can be served?

What we know: Three steps: sabzi 3 ways, bread 2 ways, sweet 4 ways; no choice limits the others.

What we need: The number of different thalis.

The plan: Multiply the ways for the three steps.

  1. Number of thalis = 3 × 2 × 4.
  2. 3 × 2 = 6, and 6 × 4 = 24.

24 different thalis.

Check: Fix the sabzi: 2 breads × 4 sweets = 8 thalis for each sabzi, and 3 sabzis give 3 × 8 = 24.

Worked example 7

Picture: in the figure above, three roads join A to B and four roads join B to C. In how many ways can a person go from A to C through B?

What we know: Step 1: A to B, 3 roads. Step 2: B to C, 4 roads, whichever road was used to reach B.

What we need: The number of routes from A to C.

The plan: A route is a road to B followed by a road on to C: multiply.

  1. Routes = 3 × 4, by the fundamental principle.
  2. 3 × 4 = 12.

12 routes.

Check: Each of the 3 roads to B leads to the same 4 choices onward: 4 + 4 + 4 = 12. A return journey C to A by a different route each way is a new question; try it in Your turn.

Worked example 8

Reverse: a shop sells a T-shirt in 5 colours and in several sizes. It has 20 different kinds (one colour and one size). How many sizes are there?

What we know: Kinds = colours × sizes, and 20 = 5 × s, where s is the number of sizes.

What we need: s.

The plan: Use the principle backwards: divide.

  1. 5 × s = 20.
  2. s = 20 ÷ 5 = 4.

4 sizes.

Check: 5 colours × 4 sizes = 20 kinds.

Worked example 9

Exam: the number lock of section 6.1 has 4 wheels with the digits 0 to 9. The 4 digits of the code are all different, and the first is 7. How many 3-digit sequences may have to be tried on the other three wheels?

What we know: The digit 7 is used, so 9 digits remain for the other wheels, and no digit may repeat.

What we need: The number of possible sequences for wheels 2, 3 and 4.

The plan: Fill the three wheels in order and multiply.

  1. Wheel 2: any of the 9 remaining digits.
  2. Wheel 3: any of the 8 digits not yet used.
  3. Wheel 4: any of the 7 digits still unused.
  4. Sequences = 9 × 8 × 7 = 504.

504 sequences.

Check: If repetition were allowed, the three wheels would give 10 × 10 × 10 = 1000 settings: more, as it should be, because fewer rules means more cases.

Another way: Section 6.3 will name this count ⁹P₃, the number of arrangements of 9 different digits taken 3 at a time.

The book's examples

Example 1 (from the book)

Find the number of 4-letter words, with or without meaning, which can be formed out of the letters of the word ROSE, where repetition of the letters is not allowed.

41st×32nd×23rd×14th= 24
Example 1 as four vacant places: 4 letters can go first, then 3, then 2, then 1, so 4 × 3 × 2 × 1 = 24 words.

What we know: 4 different letters R, O, S, E; a word uses each once.

What we need: The number of arrangements of the 4 letters.

The plan: There are as many words as ways of filling 4 vacant places with the 4 letters, one after another.

  1. The first place can be filled in 4 ways (any of R, O, S, E).
  2. Following which, the second place in 3 ways (any of the 3 letters left).
  3. Following which, the third place in 2 ways, and the fourth in 1 way.
  4. By the multiplication principle, the number of words = 4 × 3 × 2 × 1 = 24.

24 words.

Check: Words starting with R: the other 3 letters fill 3 places in 3 × 2 × 1 = 6 ways (ROSE, ROES, RSOE, RSEO, REOS, RESO). Each of the 4 first letters gives 6 words: 4 × 6 = 24.

The book's Note: with repetition

If the letters may be repeated, each of the 4 places can be filled in 4 ways, whatever went before. The number of words is then 4 × 4 × 4 × 4 = 256. Words such as RRRR and ROOS are now allowed, which is why the count grows from 24 to 256.

Example 2 (from the book)

Given 4 flags of different colours, how many different signals can be generated, if a signal requires the use of 2 flags one below the other?

What we know: 4 different flags; a signal is an upper flag and a lower flag; a flag cannot be in two places at once.

What we need: The number of signals.

The plan: Fill the 2 places, upper then lower, and multiply.

  1. The upper place can be filled in 4 ways.
  2. Following which, the lower place in 3 ways (by any of the other 3 flags).
  3. Signals = 4 × 3 = 12.

12 signals.

Check: Red above green and green above red are different signals, so order matters here. With flags R, G, B, Y: RG, RB, RY, GR, GB, GY, BR, BG, BY, YR, YG, YB: 12.

Example 3 (from the book)

How many 2-digit even numbers can be formed from the digits 1, 2, 3, 4, 5 if the digits can be repeated?

5tens place×2units placeany of 52 or 4 (first)5 × 2 = 10
Example 3: the units place is filled first, because only 2 or 4 may go there; the tens place may take any of the 5 digits.

What we know: Digits 1 to 5, repetition allowed; an even number ends in an even digit, here 2 or 4.

What we need: The number of such even numbers.

The plan: Start with the units place, because it has a condition; then the tens place.

  1. The units place can be filled in 2 ways (2 or 4).
  2. Following which, the tens place in 5 ways, because digits may repeat.
  3. Numbers = 2 × 5 = 10.

10 even numbers.

Check: They are 12, 22, 32, 42, 52, 14, 24, 34, 44, 54: ten, all even.

Fill the most restricted place first

Example 3 starts with the units place because it is the only place with a condition. Starting with the restricted place keeps every later count the same for every earlier choice, which is exactly what the principle needs.

Example 4 (from the book)

Find the number of different signals that can be generated by arranging at least 2 flags in order (one below the other) on a vertical staff, if five different flags are available.

What we know: 5 different flags; a signal uses 2, 3, 4 or 5 of them, in order.

What we need: The total number of signals.

The plan: Count the signals of each size separately by the multiplication principle, then add the four numbers, because a signal has exactly one size.

  1. 2-flag signals: 5 × 4 = 20.
  2. 3-flag signals: 5 × 4 × 3 = 60.
  3. 4-flag signals: 5 × 4 × 3 × 2 = 120.
  4. 5-flag signals: 5 × 4 × 3 × 2 × 1 = 120.
  5. Total = 20 + 60 + 120 + 120 = 320.

320 signals.

Check: The 4-flag and 5-flag counts are equal: once 4 flags are in place, the fifth place can take only the one flag left, in 1 way.

A loose end: when to add and when to multiply

Example 4 multiplies inside each case but adds the cases. The book does this without naming it. The rule is the addition principle: if a job can be done in one of several separate cases, which never overlap, the number of ways is the sum of the numbers for the cases. "And then" (steps one after another) multiplies; "or" (separate cases) adds. Example: to go from Pune to Mumbai you may take one of 5 buses or one of 3 trains; that is 5 + 3 = 8 ways, not 5 × 3, because you take a bus or a train, not both.

Worked example 10

A path that fails: how many 3-digit numbers have all three digits different?

What we know: Digits 0 to 9; a 3-digit number cannot start with 0; no digit repeats.

What we need: The number of such numbers.

The plan: First try filling the places from the units end, then see what goes wrong.

  1. The path that fails: units place 10 ways, tens 9 ways, hundreds 8 ways, giving 10 × 9 × 8 = 720.
  2. Why it fails: the hundreds place may not be 0, but how many of its 8 choices are allowed depends on whether 0 was already used. Sometimes all 8 are allowed, sometimes only 7. The principle needs a fixed count, so 720 is wrong: it includes 72 strings such as 092 that start with 0.
  3. The right path: fill the restricted place first. Hundreds place: 9 ways (1 to 9).
  4. Tens place: 9 ways (the 9 digits not used, now including 0).
  5. Units place: 8 ways.
  6. Numbers = 9 × 9 × 8 = 648.

648 numbers.

Check: 720 strings minus the 72 that start with 0 (9 × 8 = 72 ways to fill the last two places after a leading 0) gives 720 − 72 = 648, the same answer.

Another way: Count all 3-digit strings with different digits and subtract the bad ones, as in the check. The book uses this "all minus bad" idea in Example 11.

Common mistakes

  • Adding when you should multiply. Mohan's 3 pants and 2 shirts give 3 × 2 = 6 outfits, not 3 + 2 = 5. Add only for separate cases joined by "or".
  • Reusing an object when repetition is not allowed. ROSE without repetition gives 4 × 3 × 2 × 1 = 24, not 4 × 4 × 4 × 4 = 256.
  • Letting 0 lead a number. 092 is a 2-digit number, so the first place of a 3-digit number never takes 0.
  • Leaving the restricted place to the end. Fill a place with a condition (even, odd, not zero, a vowel) first.

When you are stuck: the fundamental principle of counting

Draw the vacant places as boxes and write under each box how many choices it has. Multiply the numbers.

Find the place with a condition and fill it first.

If the counts depend on earlier choices, split into separate cases (and add them), or count everything and subtract the bad cases.

Check with a small list: shrink the numbers until listing is quick, and see if your method gives the list's count.

Worked example 11

Story: a coaching centre in Kota gives every student a roll number made of one letter from A to E followed by two digits from 00 to 99, such as C07. How many roll numbers are possible?

What we know: Three places: a letter (5 choices), then a digit (10 choices), then a digit (10 choices); digits may repeat, as in C77.

What we need: The number of roll numbers.

The plan: Three steps one after another: multiply.

  1. Letter: 5 ways.
  2. First digit: 10 ways.
  3. Second digit: 10 ways.
  4. Roll numbers = 5 × 10 × 10 = 500.

500 roll numbers.

Check: For each letter, the two digits run from 00 to 99, which is 100 numbers; 5 letters give 5 × 100 = 500. A centre with 600 students would need a longer roll number.

Worked example 12

How many 4-digit odd numbers can be made from the digits 1 to 9 if digits may be repeated?

What we know: Nine digits (no 0), repetition allowed; an odd number ends in 1, 3, 5, 7 or 9.

What we need: The count.

The plan: Fill the units place first (it has the condition), then the other three places.

  1. Units place: 5 ways (1, 3, 5, 7, 9).
  2. Thousands, hundreds and tens places: 9 ways each.
  3. Numbers = 5 × 9 × 9 × 9 = 5 × 729 = 3645.

3645.

Check: All 4-digit numbers from these digits: 9⁴ = 6561. Five of the nine digits are odd, so 5/9 of them are odd: (5/9) × 6561 = 3645.

Worked example 13

How many numbers of one, two or three digits can be made from the digits 1, 2, 3, 4, 5 if no digit is repeated?

What we know: Numbers of three separate lengths; no repetition.

What we need: The total.

The plan: Count each length with the multiplication principle, then add (addition principle), because a number has exactly one length.

  1. One digit: 5.
  2. Two digits: 5 × 4 = 20.
  3. Three digits: 5 × 4 × 3 = 60.
  4. Total = 5 + 20 + 60 = 85.

85 numbers.

Check: This is the shape of Example 4: multiply inside each case, add across the cases.

Worked example 14

A path that fails: how many 3-digit numbers with all digits different are divisible by 5?

What we know: Divisible by 5 means the units digit is 0 or 5; no repeats; the hundreds digit is not 0.

What we need: The count.

The plan: Try the obvious product first, then see why it fails and split into cases.

  1. The path that fails: units 2 ways (0 or 5), hundreds 8 ways, tens 8 ways, giving 2 × 8 × 8 = 128.
  2. Why it fails: the number of choices for the hundreds place depends on the units digit. If the units digit is 0, the hundreds place has 9 choices (1 to 9); if it is 5, only 8 (not 0, not 5).
  3. Case units = 0: hundreds 9 ways, tens 8 ways: 72.
  4. Case units = 5: hundreds 8 ways, tens 8 ways: 64.
  5. Total = 72 + 64 = 136.

136.

Check: A quick listing check: those ending in 0 are 9 × 8 = 72 numbers such as 120, 980; those ending in 5 include 105 (allowed) but not 055 or 505. The total 136 is more than 128, because the failing path undercounted the case ending in 0.

Another way: When a later count depends on an earlier choice, split into cases so that inside each case every count is fixed.

Worked example 15

Exam: how many positive divisors does 360 have?

What we know: 360 = 2³ × 3² × 5. Every divisor is 2ᵃ × 3ᵇ × 5ᶜ with a from 0 to 3, b from 0 to 2 and c from 0 to 1.

What we need: The number of divisors.

The plan: Building a divisor is three steps: choose a, then b, then c. Multiply.

  1. a: 4 ways (0, 1, 2 or 3).
  2. b: 3 ways (0, 1 or 2).
  3. c: 2 ways (0 or 1).
  4. Divisors = 4 × 3 × 2 = 24.

24 divisors.

Check: a = b = c = 0 gives the divisor 1, and a = 3, b = 2, c = 1 gives 360 itself. Each choice gives a different divisor, because a number has only one prime factorisation.

Worked example 16

Story: a quiz in a Guwahati school has 10 multiple-choice questions with 4 options each. A student may also leave a question blank. In how many ways can the answer sheet be filled?

What we know: Each question has 5 possible marks on the sheet: one of the 4 options, or blank.

What we need: The number of different answer sheets.

The plan: 10 steps, 5 ways each: multiply.

  1. 5 × 5 × ... × 5 (10 factors) = 5¹⁰.
  2. 5¹⁰ = 97,65,625.

97,65,625 sheets.

Check: Without blanks there would be 4¹⁰ = 10,48,576 sheets. Allowing a blank adds one choice to every question, which multiplies the count about nine times over.

Worked example 17

How many 3-digit numbers contain at least one digit 7?

What we know: There are 900 three-digit numbers (100 to 999).

What we need: Those with at least one 7.

The plan: "At least one" has many cases (one 7, two 7s, three 7s). The opposite has just one: no 7 at all. Count it and subtract.

  1. No 7: hundreds digit 8 ways (1 to 9 except 7), tens 9 ways (0 to 9 except 7), units 9 ways.
  2. No-7 numbers = 8 × 9 × 9 = 648.
  3. At least one 7 = 900 − 648 = 252.

252.

Check: A listing of 100 to 999 finds exactly 252 numbers with a 7 in them, such as 107, 170, 777.

Worked example 18

Story: five footpaths lead up a hill near Mahabaleshwar. In how many ways can a hiker go up and come down (i) by any paths, (ii) by a different path coming down?

What we know: Going up: 5 paths. Coming down: 5 paths in (i), but only 4 in (ii).

What we need: Two counts.

The plan: Two steps: multiply. In (ii) the second step has one choice fewer.

  1. (i) Up 5 ways, down 5 ways: 5 × 5 = 25.
  2. (ii) Up 5 ways, down by one of the other 4 paths: 5 × 4 = 20.

(i) 25; (ii) 20.

Check: The 5 trips that use the same path both ways make up the difference: 25 − 5 = 20.

Worked example 19

How many 4-digit numbers have no two neighbouring digits equal (such as 1219, but not 1229)?

What we know: Digits 0 to 9; the first digit is not 0; each digit must differ from the one just before it.

What we need: The count.

The plan: Fill the places from left to right. The digits allowed in a place depend on the digit before it, but their number does not, so the principle still applies.

  1. First digit: 9 ways (1 to 9).
  2. Second digit: any of the 10 digits except the first: 9 ways.
  3. Third digit: any except the second: 9 ways.
  4. Fourth digit: any except the third: 9 ways.
  5. Numbers = 9 × 9 × 9 × 9 = 6561.

6561.

Check: A computer listing of 1000 to 9999 finds exactly 6561 such numbers. The example shows the principle's real condition: the count of choices must be fixed, even when the choices themselves change.

Your turn

Priya has 4 kurtas and 3 dupattas. In how many ways can she wear one kurta with one dupatta?Tap to reveal
  1. Kurta: 4 ways; following which, dupatta: 3 ways.
  2. 4 × 3 = 12.

12 ways.

Use the roads of the figure: 3 from A to B and 4 from B to C. A person goes from A to C through B and comes back to A through B. Coming back, neither stretch may use the road used on the way out. In how many ways can the round trip be made?Tap to reveal
  1. Going: 3 × 4 = 12 ways.
  2. Coming back C to B: 3 roads left (not the one used); B to A: 2 roads left.
  3. Coming back: 3 × 2 = 6 ways for each way of going.
  4. Total = 12 × 6 = 72.

72 ways.

To reach Mumbai from Pune you can take one of 5 buses or one of 3 trains. How many choices of transport do you have?Tap to reveal
  1. You take a bus or a train, not both: the cases are separate.
  2. Addition principle: 5 + 3 = 8.

8 choices.

In one line

Steps done one after another multiply (m × n); separate cases add; fill the most restricted place first.

Ex 6.1Exercise 6.1, solved in full

Every answer below agrees with the book's answer key. Each one draws the vacant places, writes the number of choices for each place, and multiplies, filling any place with a condition first.

1. How many 3-digit numbers can be formed from the digits 1, 2, 3, 4 and 5 assuming that (i) repetition of the digits is allowed? (ii) repetition of the digits is not allowed?Tap to reveal

What we know: Five digits, none of them 0, so every place may take any allowed digit; a 3-digit number has hundreds, tens and units places.

The plan: Fill the three places one after another and multiply. In (i) each place has all 5 digits; in (ii) each digit used leaves one fewer.

  1. (i) Hundreds: 5 ways. Tens: 5 ways. Units: 5 ways. Numbers = 5 × 5 × 5 = 125.
  2. (ii) Hundreds: 5 ways. Tens: 4 ways (not the digit already used). Units: 3 ways. Numbers = 5 × 4 × 3 = 60.

(i) 125; (ii) 60.

Check: In (ii), count the numbers starting with 1: the tens and units take 2 of the other 4 digits in 4 × 3 = 12 ways. Each of the 5 starting digits gives 12, and 5 × 12 = 60. Since 0 is not among the digits, no number has to be thrown away for a leading zero.

2. How many 3-digit even numbers can be formed from the digits 1, 2, 3, 4, 5, 6 if the digits can be repeated?Tap to reveal

What we know: Six digits, repetition allowed; an even number ends in 2, 4 or 6.

The plan: Fill the units place first, because it is the only place with a condition; then the tens and hundreds.

  1. Units place: 3 ways (2, 4 or 6).
  2. Tens place: 6 ways (any digit, since digits may repeat).
  3. Hundreds place: 6 ways.
  4. Numbers = 3 × 6 × 6 = 108.

108.

Check: Without the condition there would be 6 × 6 × 6 = 216 three-digit numbers. Exactly half of the six digits are even, so exactly half of the numbers are even: 216 ÷ 2 = 108. The two counts agree.

Another way: Fix the tens and hundreds first in 6 × 6 = 36 ways; each of these 36 pairs can end in 3 even digits: 36 × 3 = 108.

3. How many 4-letter codes can be formed using the first 10 letters of the English alphabet, if no letter can be repeated?Tap to reveal

What we know: The letters A to J, ten in all; a code is 4 letters in order; no repeats.

The plan: Fill 4 places one after another; each letter used leaves one fewer.

  1. First letter: 10 ways.
  2. Second letter: 9 ways.
  3. Third letter: 8 ways.
  4. Fourth letter: 7 ways.
  5. Codes = 10 × 9 × 8 × 7 = 5040.

5040 codes.

Check: 10 × 9 = 90, 90 × 8 = 720, and 720 × 7 = 5040. The order matters: ABCD and DCBA are different codes, so we are counting arrangements, as the multiplication of shrinking numbers assumes.

Another way: In the notation of Theorem 1 below, this is ¹⁰P₄ = 5040.

4. How many 5-digit telephone numbers can be constructed using the digits 0 to 9 if each number starts with 67 and no digit appears more than once?Tap to reveal

What we know: The first two digits are fixed as 6 and 7; the other 3 places take digits from 0 to 9 except 6 and 7; no repeats.

The plan: Only the last 3 places are free. Count the digits left for them and multiply.

  1. Digits left: 10 − 2 = 8 (0, 1, 2, 3, 4, 5, 8, 9).
  2. Third place: 8 ways. Fourth place: 7 ways. Fifth place: 6 ways.
  3. Telephone numbers = 8 × 7 × 6 = 336.

336.

Check: A leading zero is no problem here, because every number starts with 6. The fixed digits 6 and 7 must not appear again, which is why only 8 digits are left for the third place.

Another way: Without the rule against repeats, the last 3 places could be any digits: 10 × 10 × 10 = 1000 numbers, many more than 336.

5. A coin is tossed 3 times and the outcomes are recorded. How many possible outcomes are there?Tap to reveal
HTHTHTHTHTHTHTHHHHHTHTHHTTTHHTHTTTHTTTstart1st toss2nd toss3rd toss
Three tosses of a coin: 2 branches, each splitting into 2, each splitting into 2 again, so 2 × 2 × 2 = 8 outcomes.

What we know: Each toss gives H or T, whatever happened before; an outcome is the ordered record of the three tosses.

The plan: Three steps, 2 ways each: multiply. The tree at the start of this answer shows them all.

  1. First toss: 2 ways. Second toss: 2 ways. Third toss: 2 ways.
  2. Outcomes = 2 × 2 × 2 = 8.

8 outcomes: HHH, HHT, HTH, HTT, THH, THT, TTH, TTT.

Check: The tree in the figure at the start of this answer ends in exactly 8 branches. Here a result may repeat (H may come up every time), so this is an arrangement with repetition: 2³ = 8.

6. Given 5 flags of different colours, how many different signals can be generated if each signal requires the use of 2 flags, one below the other?Tap to reveal

What we know: 5 different flags; a signal is an upper and a lower flag; one flag cannot be used twice.

The plan: Fill the upper place, then the lower place, and multiply.

  1. Upper place: 5 ways.
  2. Lower place: 4 ways (any flag except the upper one).
  3. Signals = 5 × 4 = 20.

20 signals.

Check: Book Example 2 with 4 flags gave 4 × 3 = 12; one more flag gives 5 × 4 = 20, which is also the 2-flag count of Example 4.

When you are stuck: Exercise 6.1

Draw the places and write the choices under each one before multiplying.

Spot the condition (even, starts with 67, no repeats) and deal with it first.

Ask whether a used digit or flag can come back: that decides between 5 × 5 × 5 and 5 × 4 × 3.

6.3Permutations, and the number of them

Why we need it

In Example 1 we counted the words ROSE, REOS, ... made from four different letters. Each word is a different arrangement, because the order of the letters matters. Counting arrangements happens so often that it has its own name and its own formula.

Permutation (Definition 1)

A permutation is an arrangement in a definite order of a number of objects taken some or all at a time.

ROSE, REOS, and the rest are the permutations of 4 different letters taken all at a time. NUM, NMU, MUN, NUB, ... are permutations of the 6 different letters of NUMBER taken 3 at a time.

The number of 3-letter words, with or without meaning, made from the letters of NUMBER without repeating a letter is 6 × 5 × 4 = 120, by the multiplication principle. If repetition were allowed, the number would be 6 × 6 × 6 = 216.

6.3.1 Permutations when all the objects are different

Theorem 1

The number of permutations of n different objects taken r at a time, where 0 < r ≤ n and the objects do not repeat, is n(n − 1)(n − 2) ... (n − r + 1).

It is written ⁿPᵣ and read "n P r". The n says how many different objects there are; the r says how many places are filled.

Theorem 1: permutations of n different objects, r at a time

There are r factors, starting at n and going down by 1 each time.

The condition 0 < r ≤ n says that we fill at least one place and never more places than there are objects.

Why it is true

nn − 1n − 2n − r + 11st2nd3rdr th××× ... ×
Theorem 1 as r vacant places: n choices for the first place, n − 1 for the second, and so on, down to n − r + 1 for the r th.
  1. There are as many permutations as ways of filling r vacant places with the n objects, one object to a place.
  2. The first place can be filled in n ways, by any of the objects.
  3. Following which, the second place in n − 1 ways, because one object is already used.
  4. Following which, the third place in n − 2 ways, and so on.
  5. When we reach the r th place, r − 1 objects are already used, so it can be filled in n − (r − 1) = n − r + 1 ways.
  6. By the multiplication principle, the number of ways is n(n − 1)(n − 2) ... (n − r + 1).

A small case shows it working: 4 objects A, B, C, D taken 2 at a time give 4 × 3 = 12 permutations: AB, AC, AD, BA, BC, BD, CA, CB, CD, DA, DB, DC.

The last factor is n − r + 1, not n − r

For ⁷P₃ the factors are 7, 6 and 5: three factors, ending at 7 − 3 + 1 = 5. Stopping at 7 − 3 = 4 would multiply four numbers and count arrangements of 4 objects, not 3.

Five kinds of worked example

Worked example 20

Direct: find ⁷P₃.

What we know: n = 7, r = 3: three factors starting at 7.

What we need: The value.

The plan: Multiply 7, 6 and 5.

  1. ⁷P₃ = 7 × 6 × 5.
  2. 7 × 6 = 42, and 42 × 5 = 210.

⁷P₃ = 210.

Check: The last factor is 7 − 3 + 1 = 5, and there are 3 factors, as there should be.

Worked example 21

Story: Ananya has 8 different storybooks and room for 5 on her shelf in Kochi. In how many ways can she arrange 5 of them in a row?

What we know: 8 different books; 5 places on the shelf; order matters (left to right).

What we need: The number of arrangements.

The plan: Permutations of 8 different objects taken 5 at a time.

  1. ⁸P₅ = 8 × 7 × 6 × 5 × 4.
  2. 8 × 7 = 56, 56 × 6 = 336, 336 × 5 = 1680, 1680 × 4 = 6720.

6720 ways.

Check: The last factor is 8 − 5 + 1 = 4, and there are 5 factors. The 3 books left over do not change the count: each arrangement on the shelf is still different.

Worked example 22

Picture: 10 runners race; a podium has three steps for 1st, 2nd and 3rd. In how many ways can the podium be filled?

What we know: 10 different runners; 3 ordered places (gold, silver, bronze).

What we need: The number of ways to fill the podium.

The plan: Picture the three steps as vacant places: permutations of 10 taken 3 at a time.

  1. Gold: 10 ways; silver: 9 ways; bronze: 8 ways.
  2. ¹⁰P₃ = 10 × 9 × 8 = 720.

720 ways.

Check: Swapping the gold and silver winners gives a different podium, so order matters, and permutations are right.

Worked example 23

Reverse: if ⁿP₂ = 56, find n.

What we know: ⁿP₂ = n(n − 1).

What we need: n.

The plan: Write the equation, then look for two consecutive numbers whose product is 56.

  1. n(n − 1) = 56.
  2. n² − n − 56 = 0, which factorises as (n − 8)(n + 7) = 0.
  3. n = 8 or n = −7; n counts objects, so n = 8.

n = 8.

Check: ⁸P₂ = 8 × 7 = 56.

Worked example 24

Exam: how many 4-letter words, with or without meaning, can be formed from the letters of PENCIL if no letter is repeated?

What we know: PENCIL has 6 different letters; a word uses 4 of them in order.

What we need: The number of words.

The plan: Permutations of 6 different letters taken 4 at a time.

  1. ⁶P₄ = 6 × 5 × 4 × 3.
  2. 6 × 5 = 30, 30 × 4 = 120, 120 × 3 = 360.

360 words.

Check: The last factor is 6 − 4 + 1 = 3, and there are 4 factors.

When you are stuck: permutations

Count the factors: ⁿPᵣ has exactly r of them, starting at n.

Make sure the objects are all different and are not repeated. If they may repeat, the answer is n × n × ... × n instead (Theorem 2, section 6.3.3).

Test the order: if swapping two objects gives a different result, it is a permutation.

Worked example 25

Story: at a wedding in Udaipur, 8 people, including the bride and the groom, sit in a row for a photograph. In how many ways can they sit if (i) the bride and groom sit at the two ends? (ii) the bride and groom sit next to each other?

What we know: 8 different people in 8 places.

What we need: Two counts.

The plan: (i) Place the couple at the ends first, then the other 6. (ii) Glue the couple into one block.

  1. (i) The couple at the ends: 2 ways (bride left or right). The other 6 people in the middle: 6! = 720. Total = 2 × 720 = 1440.
  2. (ii) The couple as one block: the block and 6 others make 7 objects: 7! = 5040. Inside the block: 2 ways. Total = 5040 × 2 = 10,080.

(i) 1440; (ii) 10,080.

Check: With no condition there are 8! = 40,320 seatings. The bride and groom alone can take 2 of the 8 seats in 8 × 7 = 56 ways. In 2 of these they are at the two ends, and in 14 they are side by side (7 neighbouring pairs of seats, in 2 orders). So (i) is 40,320 × 2/56 = 1440 and (ii) is 40,320 × 14/56 = 10,080, the same answers.

Worked example 26

In how many arrangements of the letters of SUNDAY do the vowels sit only in odd places (1st, 3rd, 5th)?

What we know: SUNDAY has 6 different letters; the vowels are U and A; the odd places are 1, 3 and 5.

What we need: The number of arrangements.

The plan: Place the 2 vowels in 2 of the 3 odd places (order matters), then the 4 consonants in the 4 places left.

  1. Vowels: ³P₂ = 3 × 2 = 6 ways.
  2. Consonants S, N, D, Y in the other 4 places: 4! = 24 ways.
  3. Total = 6 × 24 = 144.

144.

Check: All arrangements: 6! = 720. The vowels' places are 2 of the 6 places; the chance that both are odd is (3/6) × (2/5) = 1/5, and 720/5 = 144.

Worked example 27

LOGARITHM has 9 different letters. How many 4-letter words can be made from them? How many of these begin with L? How many contain the letter G?

What we know: 9 different letters, 4 places, no repetition.

What we need: Three counts.

The plan: All: ⁹P₄. Begin with L: fix L, then ⁸P₃. Contain G: all minus those without G (⁸P₄).

  1. All: ⁹P₄ = 9 × 8 × 7 × 6 = 3024.
  2. Begin with L: ⁸P₃ = 8 × 7 × 6 = 336.
  3. Without G: ⁸P₄ = 8 × 7 × 6 × 5 = 1680; with G: 3024 − 1680 = 1344.

3024; 336 begin with L; 1344 contain G.

Check: With G, by places: G can take any of the 4 places, and the other 3 places take 3 of the 8 other letters in ⁸P₃ = 336 ways: 4 × 336 = 1344.

Worked example 28

Story: a ship in Visakhapatnam harbour has 6 flags of different colours. A signal is 1 or more flags hung one below another. How many different signals can be made?

What we know: Signals of 1, 2, 3, 4, 5 or 6 different flags, in order.

What we need: The total number of signals.

The plan: Count each size with ⁶Pᵣ and add (as in Example 4).

  1. ⁶P₁ = 6, ⁶P₂ = 30, ⁶P₃ = 120, ⁶P₄ = 360, ⁶P₅ = 720, ⁶P₆ = 720.
  2. Total = 6 + 30 + 120 + 360 + 720 + 720 = 1956.

1956 signals.

Check: ⁶P₅ = ⁶P₆ because once 5 flags are placed, the last flag has only one place: the same pattern as Example 4.

Worked example 29

Of the arrangements of the letters of DELHI, how many begin with D and end with I? In how many is H in the middle?

What we know: DELHI has 5 different letters.

What we need: Two counts.

The plan: Fix the given letters, then arrange the rest.

  1. D first and I last: E, L, H fill the 3 middle places in 3! = 6 ways.
  2. H in the middle (place 3): the other 4 letters fill 4 places in 4! = 24 ways.

6 and 24.

Check: H is in the middle in one fifth of all 5! = 120 arrangements: 120/5 = 24.

Worked example 30

Story: Ishita has 4 different maths books and 3 different science books. In how many ways can she arrange them on a shelf so that the books of each subject stay together?

What we know: Two subject blocks; inside each block the books can be arranged freely.

What we need: The count.

The plan: Arrange the 2 blocks, then the books inside each: multiply.

  1. The two blocks: 2! = 2 ways (maths first or science first).
  2. Maths books inside their block: 4! = 24.
  3. Science books inside theirs: 3! = 6.
  4. Total = 2 × 24 × 6 = 288.

288 ways.

Check: Try smaller numbers: 2 maths books M1, M2 and 1 science book S give 2! × 2! × 1! = 4 shelves: M1 M2 S, M2 M1 S, S M1 M2 and S M2 M1, exactly the four a listing finds.

Worked example 31

Story: four married couples sit in a row of 8 seats at a family function in Patna, each couple side by side. In how many ways?

What we know: 4 couples; each couple is a block of 2 people who can sit in 2 orders.

What we need: The count.

The plan: Arrange the 4 blocks, then each couple inside its block.

  1. The 4 couple-blocks in a row: 4! = 24 ways.
  2. Inside each block: 2 ways, and there are 4 blocks: 2 × 2 × 2 × 2 = 2⁴ = 16.
  3. Total = 24 × 16 = 384.

384 ways.

Check: A listing of all 8! = 40,320 seatings finds exactly 384 with every couple together, about 1 in 105.

Your turn

Find ⁹P₁, ⁵P₅ and ⁴P₄.Tap to reveal
  1. ⁹P₁ has one factor: 9.
  2. ⁵P₅ = 5 × 4 × 3 × 2 × 1 = 120.
  3. ⁴P₄ = 4 × 3 × 2 × 1 = 24, the ROSE count.

9, 120 and 24.

A club of 10 members elects a president, a secretary and a treasurer, all different people. In how many ways?Tap to reveal
  1. Three different posts: order matters.
  2. ¹⁰P₃ = 10 × 9 × 8 = 720.

720 ways.

In one line

ⁿPᵣ = n(n − 1) ... (n − r + 1) counts arrangements of r objects from n different ones, without repetition: r factors, starting at n.

6.3.2The factorial notation

Why we need it

The formula ⁿPᵣ = n(n − 1)(n − 2) ... (n − r + 1) is long to write. Products of consecutive numbers such as 5 × 4 × 3 × 2 × 1 appear all through this chapter, so mathematics gives them a short name. The notation is n!, read "n factorial" or "factorial n".

Factorial

For a natural number n, n! is the product of the first n natural numbers: n! = 1 × 2 × 3 × ... × (n − 1) × n.

So 1! = 1, 2! = 1 × 2 = 2, 3! = 1 × 2 × 3 = 6, 4! = 1 × 2 × 3 × 4 = 24, and so on.

We define 0! = 1.

Factorials

The second form says: to go from one factorial to the next, multiply by the next number. 5! = 5 × 4! = 5 × 24 = 120.

It can be used more than once: n! = n(n − 1)(n − 2)! when n ≥ 2, and n! = n(n − 1)(n − 2)(n − 3)! when n ≥ 3.

The book writes 5! = 5 × 4! = 5 × 4 × 3! = 5 × 4 × 3 × 2! = 5 × 4 × 3 × 2 × 1!. Each step peels one number off the front and leaves a smaller factorial behind.

n12345678910
n!12624120720504040,3203,62,88036,28,800

Factorials grow very fast: 10! is more than 36 lakh, and 13! = 6,22,70,20,800, more than 600 crore. This is why we cancel factorials before multiplying anything out.

Why 0! is 1

  1. The rule n! = n × (n − 1)! holds for n = 2, 3, 4, ...: for example 3! = 3 × 2!.
  2. We want it to hold for n = 1 as well: 1! = 1 × 0!.
  3. Since 1! = 1, this needs 1 = 1 × 0!, so 0! = 1.
  4. The counting meaning agrees: there is exactly one way to arrange no objects, namely to do nothing. Section 6.3.3 uses this when it counts ⁿP₀.

Cancelling factorials

Write the larger factorial as a product that ends in the smaller one, then cancel. Example: 7!/5! = (7 × 6 × 5!)/5! = 7 × 6 = 42. Nothing larger than 42 is ever multiplied.

The book's examples

Example 5 (from the book)

Evaluate (i) 5! (ii) 7! (iii) 7! − 5!.

What we know: n! is the product 1 × 2 × ... × n.

What we need: Three values.

The plan: Multiply; in (iii) subtract the two values, because 7! − 5! is not (7 − 5)!.

  1. (i) 5! = 1 × 2 × 3 × 4 × 5 = 120.
  2. (ii) 7! = 1 × 2 × 3 × 4 × 5 × 6 × 7 = 5040.
  3. (iii) 7! − 5! = 5040 − 120 = 4920.

(i) 120; (ii) 5040; (iii) 4920.

Check: 7! = 7 × 6 × 5! = 42 × 120 = 5040, agreeing with (ii). And (7 − 5)! = 2! = 2, nothing like 4920: factorials do not subtract like that.

Example 6 (from the book)

Compute (i) 7!/5! (ii) 12!/((10!)(2!)).

What we know: A larger factorial can be written as a product ending in a smaller one.

What we need: The two values.

The plan: Write 7! = 7 × 6 × 5! and 12! = 12 × 11 × 10!, then cancel.

  1. (i) 7!/5! = (7 × 6 × 5!)/5! = 7 × 6 = 42.
  2. (ii) 12!/((10!)(2!)) = (12 × 11 × 10!)/((10!) × 2) = (12 × 11)/2 = 6 × 11 = 66.

(i) 42; (ii) 66.

Check: In (ii), 12 × 11 = 132 and 132 ÷ 2 = 66. Cancelling first kept every number small.

Example 7 (from the book)

Evaluate n!/(r!(n − r)!) when n = 5, r = 2.

What we know: n = 5, r = 2, so n − r = 3.

What we need: 5!/(2! × 3!).

The plan: Substitute, write 5! = 5 × 4 × 3!, and cancel 3!.

  1. 5!/(2!(5 − 2)!) = 5!/(2! × 3!).
  2. = (5 × 4 × 3!)/(2 × 3!) = (5 × 4)/2 = 20/2 = 10.

10.

Check: 120/(2 × 6) = 120/12 = 10. Section 6.4 will show that this is ⁵C₂, the number of ways to choose 2 things from 5.

Example 8 (from the book)

If 1/8! + 1/9! = x/10!, find x.

What we know: 9! = 9 × 8! and 10! = 10 × 9 × 8!.

What we need: x.

The plan: Write every factorial in terms of 8!, then multiply both sides by 8!.

  1. 1/8! + 1/(9 × 8!) = x/(10 × 9 × 8!).
  2. Multiply both sides by 8!: 1 + 1/9 = x/(10 × 9).
  3. The left side is 10/9, so 10/9 = x/90.
  4. Multiply both sides by 90: x = 100.

x = 100.

Check: 1/8! = 90/10! and 1/9! = 10/10!, so the left side is 100/10!. Then x = 100.

Another way: Multiply both sides by 10! straight away: 10!/8! + 10!/9! = x, that is 10 × 9 + 10 = 90 + 10 = 100.

Five kinds of worked example

Worked example 32

Direct: find 6! and 6!/4!.

What we know: 6! = 1 × 2 × 3 × 4 × 5 × 6.

What we need: Two values.

The plan: Multiply for the first; cancel for the second.

  1. 6! = 120 × 6 = 720 (since 5! = 120).
  2. 6!/4! = (6 × 5 × 4!)/4! = 30.

6! = 720 and 6!/4! = 30.

Check: 720/24 = 30, since 4! = 24.

Worked example 33

Story: five friends in Jaipur line up in a row for a photograph. In how many orders can they stand?

What we know: 5 different people, 5 places in the row.

What we need: The number of orders.

The plan: Fill the 5 places one after another: 5 × 4 × 3 × 2 × 1, which is 5!.

  1. First place: 5 ways; second: 4; third: 3; fourth: 2; fifth: 1.
  2. 5 × 4 × 3 × 2 × 1 = 5! = 120.

120 orders.

Check: If the photographer took one picture every 30 seconds, all the orders would take 120 × 30 = 3600 seconds, a full hour.

Worked example 34

Picture: in the vacant-places figure of Example 1, the four boxes hold 4, 3, 2 and 1. Write the count with factorial notation, and do the same for 6 boxes holding 6, 5, 4, 3, 2 and 1.

What we know: A product of all the numbers from 1 to n is n!.

What we need: The two counts as factorials.

The plan: Recognise the products.

  1. 4 × 3 × 2 × 1 = 4! = 24.
  2. 6 × 5 × 4 × 3 × 2 × 1 = 6! = 720.

4! = 24 and 6! = 720: n different objects in n places can be arranged in n! ways.

Check: Each picture of n boxes counting down to 1 is n!.

Worked example 35

Reverse: find n if (n + 1)! = 12 × (n − 1)!.

What we know: (n + 1)! = (n + 1) × n × (n − 1)!.

What we need: n, a natural number.

The plan: Write (n + 1)! so that it ends in (n − 1)!, then cancel.

  1. (n + 1) × n × (n − 1)! = 12 × (n − 1)!.
  2. Cancel (n − 1)!: n(n + 1) = 12.
  3. n² + n − 12 = 0, so (n + 4)(n − 3) = 0.
  4. n = 3 (n = −4 is not a natural number).

n = 3.

Check: 4! = 24 and 12 × 2! = 12 × 2 = 24.

Worked example 36

Exam: show that (n + 1)!/(n − 1)! = n(n + 1), and use it to find 10!/8!.

What we know: (n + 1)! = (n + 1) × n × (n − 1)!.

What we need: The simplified form, then a value.

The plan: Cancel (n − 1)!, then put n = 9.

  1. (n + 1)!/(n − 1)! = ((n + 1) × n × (n − 1)!)/(n − 1)! = n(n + 1).
  2. With n = 9: 10!/8! = 9 × 10 = 90.

n(n + 1); 10!/8! = 90.

Check: 10!/8! = 36,28,800/40,320 = 90.

Common mistakes

  • Adding factorials as if they were numbers to add first. 3! + 4! = 6 + 24 = 30, but 7! = 5040.
  • Multiplying the same way. 4! × 3! = 24 × 6 = 144, but 12! is over 47 crore.
  • Doubling inside. (2 × 3)! = 6! = 720, but 2 × 3! = 12.
  • Taking 0! as 0. 0! = 1, and a 0 in a denominator would make the formulas break.

When you are stuck: factorials

Write the bigger factorial until it reaches the smaller one: 9!/6! = 9 × 8 × 7.

If there are sums of fractions with factorials, rewrite each in terms of the smallest factorial (Example 8) and clear the fractions.

If an equation has factorials of n, n − 1, n + 1, divide by the smallest one to get an ordinary equation, then reject answers that are not natural numbers.

Worked example 37

Exam: what is the last digit of 1! + 2! + 3! + ... + 50!?

What we know: From 5! on, every factorial has the factors 2 and 5, so it is a multiple of 10 and ends in 0.

What we need: The units digit of the sum.

The plan: Only 1! to 4! can affect the last digit.

  1. 1! + 2! + 3! + 4! = 1 + 2 + 6 + 24 = 33.
  2. Every term from 5! to 50! ends in 0, so adding them does not change the last digit.
  3. The last digit is the last digit of 33.

3.

Check: 5! = 120, 6! = 720 and 7! = 5040 all end in 0, as the reasoning says.

Worked example 38

Going further: how many zeros are there at the end of 25!?

What we know: Each zero at the end comes from a factor 10 = 2 × 5. A factorial has many more factors 2 than factors 5, so the number of zeros is the number of factors 5.

What we need: The number of zeros at the end of 25!.

The plan: Count the factors 5 in 1 × 2 × ... × 25.

  1. The multiples of 5 up to 25 are 5, 10, 15, 20, 25: five numbers, each giving at least one factor 5.
  2. 25 = 5 × 5 gives one extra factor 5.
  3. Factors 5 in all: 5 + 1 = 6.

6 zeros.

Check: Written out, 25! = 1,55,11,21,00,43,33,09,85,98,40,00,000, which ends in exactly 6 zeros. Writing out 25! is the slow way; counting the factors 5 is the fast way.

Worked example 39

Reverse: find n if n!/(n − 2)! = 56.

What we know: n!/(n − 2)! = n(n − 1).

What we need: n.

The plan: Cancel, then find two consecutive numbers with product 56.

  1. n(n − 1) = 56.
  2. 8 × 7 = 56, so n = 8.
  3. (The equation n² − n − 56 = 0 also has the root −7, which is not a natural number.)

n = 8.

Check: 8!/6! = 8 × 7 = 56.

Worked example 40

Exam: show that (2n)!/n! = 2ⁿ × (1 × 3 × 5 × ... × (2n − 1)), and check it for n = 3.

What we know: (2n)! = 1 × 2 × 3 × ... × 2n contains n even factors and n odd factors.

What we need: A proof and a check.

The plan: Split (2n)! into its even and its odd factors.

  1. The even factors are 2, 4, ..., 2n = (2 × 1)(2 × 2) ... (2 × n) = 2ⁿ × n!.
  2. The odd factors are 1 × 3 × 5 × ... × (2n − 1).
  3. So (2n)! = 2ⁿ × n! × (1 × 3 × ... × (2n − 1)); divide by n!.

(2n)!/n! = 2ⁿ × (1 × 3 × 5 × ... × (2n − 1)).

Check: n = 3: 6!/3! = 720/6 = 120, and 2³ × (1 × 3 × 5) = 8 × 15 = 120.

Worked example 41

What is the smallest n for which n! is more than 10 lakh (10,00,000)?

What we know: 9! = 3,62,880 and 10! = 36,28,800.

What we need: The smallest such n.

The plan: Use the table of factorials.

  1. 9! = 3,62,880 is less than 10,00,000.
  2. 10! = 10 × 9! = 36,28,800 is more.

n = 10.

Check: Factorials only grow, so once n! passes 10 lakh it stays above it.

Worked example 42

Exam: find 1 × 1! + 2 × 2! + 3 × 3! + 4 × 4!, and explain the pattern.

What we know: k × k! = (k + 1)! − k!, because (k + 1)! = (k + 1) × k! = k × k! + k!.

What we need: The value, and the reason.

The plan: Rewrite each term as a difference; most terms cancel.

  1. 1 × 1! = 2! − 1!, 2 × 2! = 3! − 2!, 3 × 3! = 4! − 3!, 4 × 4! = 5! − 4!.
  2. Adding, every middle factorial cancels: the sum is 5! − 1! = 120 − 1 = 119.

119.

Check: Directly: 1 + 4 + 18 + 96 = 119.

Worked example 43

Show that n! + (n + 1)! = n!(n + 2), and check it for n = 3.

What we know: (n + 1)! = (n + 1) × n!.

What we need: A proof and a check.

The plan: Take n! out as a common factor.

  1. n! + (n + 1)! = n! + (n + 1) × n! = n!(1 + n + 1) = n!(n + 2).

n! + (n + 1)! = n!(n + 2).

Check: n = 3: 3! + 4! = 6 + 24 = 30, and 3! × 5 = 6 × 5 = 30.

Your turn

Find 9!/7! and 1!.Tap to reveal
  1. 9!/7! = 9 × 8 = 72.
  2. 1! = 1.

72 and 1.

Is 4! × 2! equal to 8!?Tap to reveal
  1. 4! × 2! = 24 × 2 = 48.
  2. 8! = 40,320.

No: 48 is not 40,320.

In one line

n! = 1 × 2 × ... × n and n! = n × (n − 1)!, with 0! = 1; cancel factorials before multiplying.

Ex 6.2Exercise 6.2, solved in full

Every answer below agrees with the book's answer key. In each, the factorials are written out only as far as needed, and cancelled before anything is multiplied.

1. Evaluate (i) 8! (ii) 4! − 3!.Tap to reveal

What we know: n! is the product of 1 to n; 7! = 5040 and 4! = 24 are known.

The plan: (i) Use 8! = 8 × 7!. (ii) Find each factorial, then subtract.

  1. (i) 8! = 8 × 7! = 8 × 5040 = 40,320.
  2. (ii) 4! = 24 and 3! = 6, so 4! − 3! = 24 − 6 = 18.

(i) 40,320; (ii) 18.

Check: In (ii), 4! − 3! = 4 × 3! − 3! = 3 × 3! = 3 × 6 = 18, the same. Note that (4 − 3)! = 1! = 1, which is not 18.

2. Is 3! + 4! = 7!?Tap to reveal

What we know: 3! = 6, 4! = 24 and 7! = 5040.

The plan: Work out both sides and compare.

  1. Left side: 3! + 4! = 6 + 24 = 30.
  2. Right side: 7! = 5040.
  3. 30 ≠ 5040.

3! + 4! = 30, and 7! = 5040, so No.

Check: This is the first common mistake of the section: the factorial of a sum is not the sum of the factorials. 7! has the factors 5, 6 and 7 too, so it is far bigger.

3. Compute 8!/(6! × 2!).Tap to reveal

What we know: 8! = 8 × 7 × 6!, and 2! = 2.

The plan: Write 8! so that it ends in 6!, cancel, then divide by 2.

  1. 8!/(6! × 2!) = (8 × 7 × 6!)/(6! × 2).
  2. = (8 × 7)/2 = 56/2 = 28.

28.

Check: 40,320/(720 × 2) = 40,320/1440 = 28. Section 6.4 will read this as ⁸C₂: the number of ways to choose 2 things out of 8.

4. If 1/6! + 1/7! = x/8!, find x.Tap to reveal

What we know: 7! = 7 × 6! and 8! = 8 × 7 × 6!.

The plan: Multiply both sides by 8! to clear every fraction.

  1. 8!/6! + 8!/7! = x.
  2. 8!/6! = 8 × 7 = 56 and 8!/7! = 8.
  3. x = 56 + 8 = 64.

x = 64.

Check: 1/6! = 56/8! and 1/7! = 8/8!, so the left side is 64/8!.

Another way: As in Example 8: write everything in terms of 6!: 1 + 1/7 = x/(8 × 7), so 8/7 = x/56 and x = 64.

5. Evaluate n!/(n − r)!, when (i) n = 6, r = 2; (ii) n = 9, r = 5.Tap to reveal

What we know: n!/(n − r)! keeps the top r factors of n!.

The plan: Substitute, write n! so that it ends in (n − r)!, and cancel.

  1. (i) 6!/4! = (6 × 5 × 4!)/4! = 6 × 5 = 30.
  2. (ii) 9!/4! = (9 × 8 × 7 × 6 × 5 × 4!)/4! = 9 × 8 × 7 × 6 × 5.
  3. 9 × 8 = 72, 72 × 7 = 504, 504 × 6 = 3024, 3024 × 5 = 15,120.

(i) 30; (ii) 15,120.

Check: Each answer has exactly r factors (2 and 5), starting at n. Section 6.3.3 shows that n!/(n − r)! is ⁿPᵣ, so these are ⁶P₂ and ⁹P₅.

When you are stuck: Exercise 6.2

Never multiply out a big factorial if a smaller one can be cancelled.

For an equation with fractions, multiply both sides by the largest factorial present.

Check a factorial answer by working out both sides with the table of factorials.

6.3.3The formula for ⁿPᵣ, and arrangements with repetition

Why we need another form

Theorem 1 gave ⁿPᵣ = n(n − 1)(n − 2) ... (n − r + 1). It is correct, but awkward: the number of factors changes with r, and an equation such as ⁿP₅ = 42 ⁿP₃ is clumsy to write. Factorials give a compact form.

Deriving the formula

  1. Start from ⁿPᵣ = n(n − 1)(n − 2) ... (n − r + 1).
  2. Multiply the top and the bottom by (n − r)(n − r − 1) ... 3 × 2 × 1. This changes nothing, because it is multiplying by 1.
  3. The top is now n(n − 1) ... (n − r + 1)(n − r) ... 3 × 2 × 1: every number from n down to 1, which is n!.
  4. The bottom is (n − r)(n − r − 1) ... 3 × 2 × 1, which is (n − r)!.
  5. So ⁿPᵣ = n!/(n − r)!, where 0 < r ≤ n.
Permutations of n different objects, r at a time

This is a much more convenient expression than the product. For example ⁹P₄ = 9!/5! = 9 × 8 × 7 × 6 = 3024: the cancelling brings back exactly the r factors of Theorem 1.

Two special cases

All the objects (r = n). ⁿPₙ = n!/(n − n)! = n!/0! = n!/1 = n!. So n different objects can be arranged in a row in n! ways, as we found for ROSE (4! = 24).

None of the objects (r = 0). Counting permutations is counting the ways of arranging some objects. Arranging no object at all is the same as leaving all the objects behind, and there is exactly one way to do that. So ⁿP₀ = 1. The formula agrees: n!/(n − 0)! = n!/n! = 1. This is why the formula holds for 0 ≤ r ≤ n, not only for 0 < r ≤ n.

Arrangements with repetition

Theorem 2

The number of permutations of n different objects taken r at a time, where repetition is allowed, is nʳ (read "n to the power r").

The book leaves the proof to the reader. It is the proof of Theorem 1 with one change: since an object can be used again, every place can be filled in n ways. The r places give n × n × ... × n (r factors) = nʳ.

Permutations with repetition

Use it when the same object may appear in more than one place: digits of a PIN, letters of a code with repeats allowed, the faces of a coin or a die.

The book's uses of the formulas

  • In Example 1 the number of words is ⁴P₄ = 4! = 24, since repetition is not allowed. With repetition, it would be 4⁴ = 256.
  • The number of 3-letter words from the letters of NUMBER is ⁶P₃ = 6!/3! = 4 × 5 × 6 = 120 without repetition. With repetition, it would be 6³ = 216.
  • A chairman and a vice-chairman chosen from 12 people, one person holding at most one post, can be chosen in ¹²P₂ = 12!/10! = 11 × 12 = 132 ways.
QuestionRepetition?Count
Arrange r of n different objectsnot allowedⁿPᵣ = n!/(n − r)!
Arrange all n different objectsnot allowedn!
Fill r places, each from n objectsallowednʳ

Five kinds of worked example: ⁿPᵣ = n!/(n − r)!

Worked example 44

Direct: find ¹⁰P₃ with the factorial form.

What we know: n = 10, r = 3, so n − r = 7.

What we need: The value.

The plan: Write 10!/7! and cancel 7!.

  1. ¹⁰P₃ = 10!/7! = (10 × 9 × 8 × 7!)/7!.
  2. = 10 × 9 × 8 = 720.

720.

Check: This is the podium count of section 6.3.1: three factors starting at 10.

Worked example 45

Story: a school in Lucknow has 8 house captains. The first, second and third prizes in a debate are to go to 3 of them, one prize each. In how many ways can the prizes be given?

What we know: 8 different people, 3 different prizes; one person takes at most one prize.

What we need: The number of ways.

The plan: Permutations of 8 taken 3: ⁸P₃ = 8!/5!.

  1. 8!/5! = (8 × 7 × 6 × 5!)/5! = 8 × 7 × 6 = 336.

336 ways.

Check: The prizes are different, so order matters: Asha first and Ravi second is not the same as Ravi first and Asha second.

Worked example 46

Picture: in the vacant-places figure of Theorem 1 (section 6.3.1), take n = 9 and r = 4. What numbers go in the four boxes, and how does 9!/5! give the same product?

What we know: The boxes hold n, n − 1, n − 2, ..., n − r + 1.

What we need: The four numbers, and the link with the factorial form.

The plan: Substitute n = 9, then cancel in 9!/5!.

  1. The boxes hold 9, 8, 7 and 6 (the last is 9 − 4 + 1 = 6).
  2. Their product is 9 × 8 × 7 × 6 = 3024.
  3. 9!/5! = (9 × 8 × 7 × 6 × 5!)/5! = 9 × 8 × 7 × 6 = 3024.

9, 8, 7, 6; both give ⁹P₄ = 3024.

Check: The 5! that cancels is exactly the product of the boxes that are not drawn: 5, 4, 3, 2 and 1.

Worked example 47

Story: a sports club in Pune gives each member a code of 2 different letters followed by 4 digits (the digits may repeat), such as MH2741. How many codes are possible?

What we know: Letters: 26, two different ones in order. Digits: 10 for each of 4 places, repeats allowed.

What we need: The number of codes.

The plan: Letters: ²⁶P₂. Digits: 10⁴. Then multiply, because the letters are followed by the digits.

  1. ²⁶P₂ = 26!/24! = 26 × 25 = 650.
  2. 10⁴ = 10,000.
  3. Codes = 650 × 10,000 = 65,00,000.

65,00,000 codes (65 lakh).

Check: Both formulas appear in one question: no repetition for the letters (ⁿPᵣ) and repetition for the digits (nʳ). The multiplication principle joins them.

Worked example 48

Reverse: find n if ⁿP₃ = 990.

What we know: ⁿP₃ = n(n − 1)(n − 2), three consecutive numbers.

What we need: n.

The plan: Look for three consecutive numbers whose product is 990. Their middle one is near the cube root of 990, which is about 10.

  1. Try 11 × 10 × 9 = 990.
  2. So n = 11.

n = 11.

Check: ¹¹P₃ = 11!/8! = 11 × 10 × 9 = 990. A product of three consecutive numbers grows with n, so there is no other answer.

Worked example 49

Exam: show that ⁿPₙ = ⁿPₙ₋₁ for every natural number n, and check it for n = 5.

What we know: ⁿPᵣ = n!/(n − r)!.

What we need: A proof, then a check.

The plan: Work out both sides with the formula.

  1. ⁿPₙ = n!/0! = n!.
  2. ⁿPₙ₋₁ = n!/(n − (n − 1))! = n!/1! = n!.
  3. The two are equal. For n = 5: ⁵P₅ = 120 and ⁵P₄ = 5!/1! = 120.

Both equal n!; for n = 5 both are 120.

Check: In words: once n − 1 objects are placed, the last place has only one object left, so placing it adds nothing new. Example 4 met this: 4-flag and 5-flag signals were both 120.

Five kinds of worked example: nʳ

Worked example 50

Direct: how many 3-letter strings can be made from the 26 letters if letters may repeat?

What we know: n = 26, r = 3, repetition allowed.

What we need: The count.

The plan: nʳ = 26³.

  1. 26 × 26 = 676.
  2. 676 × 26 = 17,576.

17,576 strings.

Check: Without repetition the count would be ²⁶P₃ = 26 × 25 × 24 = 15,600, a little less, because strings such as AAB are left out.

Worked example 51

Story: an ATM PIN in India has 4 digits, each from 0 to 9, and digits may repeat. How many PINs are possible? If a thief guesses one PIN a second, how long could it take?

What we know: 4 places, 10 digits each, repetition allowed.

What we need: The number of PINs, and the time.

The plan: 10⁴ PINs; one second each.

  1. 10⁴ = 10,000 PINs.
  2. 10,000 seconds = 10,000 ÷ 3600 hours, about 2.8 hours.

10,000 PINs; trying them all could take about 2.8 hours, which is why a card is blocked after three wrong tries.

Check: Here 0000 and 1111 are allowed PINs, so repetition is allowed and nʳ is right.

Worked example 52

Picture: a row of 3 boxes is to be painted, each box red, green, blue or yellow; boxes may share a colour. How many paintings are there?

4box 1×4box 2×4box 3= 64
Three boxes, each painted in any of 4 colours: 4 choices for every box, because colours may repeat, so 4 × 4 × 4 = 64.

What we know: 3 places (boxes), 4 colours each, repetition allowed.

What we need: The number of paintings.

The plan: nʳ = 4³.

  1. 4 × 4 × 4 = 64.

64 paintings.

Check: If all three boxes had to be different colours, the count would be ⁴P₃ = 24; the other 40 paintings repeat some colour.

Worked example 53

Reverse: a lock has 3 wheels, each with the same set of symbols, and has 343 possible settings. How many symbols are on each wheel?

What we know: n³ = 343, where n is the number of symbols on a wheel.

What we need: n.

The plan: Find the cube root of 343.

  1. 7 × 7 = 49, and 49 × 7 = 343.
  2. So n = 7.

7 symbols on each wheel.

Check: 7³ = 343. Wheels may show the same symbol, so repetition is allowed, and nʳ is the right formula.

Worked example 54

Exam: A = {a, b, c} and B = {1, 2, 3, 4}. How many functions are there from A to B? (Chapter 2: a function sends each element of A to exactly one element of B.)

What we know: Each of the 3 elements of A must be sent to one of the 4 elements of B, and two elements may go to the same place.

What we need: The number of functions.

The plan: Each element of A is a place with 4 choices; images may repeat: 4³.

  1. a can go to 4 places; b to 4; c to 4.
  2. Functions = 4 × 4 × 4 = 64.

64 functions.

Check: Functions in which a, b and c have three different images number ⁴P₃ = 24 (the one-one functions); the other 40 send two elements to the same image.

Worked example 55

A path that fails: how many 3-letter strings can be made from A, B, C, D if letters may be repeated?

What we know: 4 letters, 3 places, repetition allowed.

What we need: The count.

The plan: First try the formula for permutations, then see why it is wrong here.

  1. The path that fails: ⁴P₃ = 4 × 3 × 2 = 24.
  2. Why it fails: ⁴P₃ assumes a letter used once cannot be used again, so it leaves out AAB, ABA, BBB and the rest.
  3. The right path: every place can take any of the 4 letters: 4 × 4 × 4 = 4³ = 64.

64 strings.

Check: 64 − 24 = 40 strings repeat some letter: for instance the 4 strings AAA, BBB, CCC, DDD, and 36 with exactly two letters the same.

When you are stuck: ⁿPᵣ and nʳ

Ask: can an object be used twice? No: ⁿPᵣ. Yes: nʳ.

Turn the formula back into places: n!/(n − r)! is r places with n, n − 1, ... choices; nʳ is r places with n choices each.

For an equation in ⁿPᵣ, write it as a product of factors and divide by the factors both sides share (Example 12 does this).

Worked example 56

Story: a bank in Chennai asks for a password of 2 capital letters (they may repeat) followed by 3 different digits, such as KK907. How many passwords are possible?

What we know: Letters: 2 places, 26 choices each (repeats allowed). Digits: 3 places, all different.

What we need: The number of passwords.

The plan: Letters by nʳ, digits by ⁿPᵣ, joined by the multiplication principle.

  1. Letters: 26² = 676.
  2. Digits: ¹⁰P₃ = 10 × 9 × 8 = 720.
  3. Passwords = 676 × 720 = 4,86,720.

4,86,720 passwords.

Check: 676 × 720 = 676 × 700 + 676 × 20 = 4,73,200 + 13,520 = 4,86,720.

Worked example 57

Using the letters I, N, D and A, how many 3-letter codes can be made (i) if letters may repeat, (ii) if they may not, (iii) with at least one letter repeated?

What we know: 4 different letters; codes of 3 letters in order.

What we need: Three counts.

The plan: (i) nʳ. (ii) ⁿPᵣ. (iii) All codes minus codes with no repeat.

  1. (i) 4³ = 64.
  2. (ii) ⁴P₃ = 4 × 3 × 2 = 24.
  3. (iii) 64 − 24 = 40.

(i) 64; (ii) 24; (iii) 40.

Check: (iii) by cases: all three letters the same, 4 codes (III, NNN, DDD, AAA); exactly two the same: choose the repeated letter (4), the other letter (3), and the place of the odd one (3): 36. 4 + 36 = 40.

Worked example 58

Exam: how many one-one functions are there from A = {1, 2, 3} to B = {a, b, c, d, e}? (Chapter 2: one-one means different elements of A go to different elements of B.)

What we know: Each of 1, 2, 3 needs an image in B, and the three images must be different.

What we need: The number of one-one functions.

The plan: The images of 1, 2, 3 are an arrangement of 3 of the 5 elements of B: ⁵P₃.

  1. 1 can go to 5 places, then 2 to 4, then 3 to 3.
  2. ⁵P₃ = 5 × 4 × 3 = 60.

60.

Check: All functions from A to B number 5³ = 125 (images may repeat); the one-one ones are fewer, 60.

Worked example 59

How many 4-digit numbers are there in all, if digits may repeat?

What we know: Thousands digit 1 to 9; the others 0 to 9; repetition allowed.

What we need: The count.

The plan: Multiply the choices place by place.

  1. 9 × 10 × 10 × 10 = 9000.

9000.

Check: The 4-digit numbers run from 1000 to 9999: 9999 − 1000 + 1 = 9000.

Worked example 60

How many 4-digit numbers have all their digits odd (digits may repeat)?

What we know: The odd digits are 1, 3, 5, 7, 9; none of them is 0, so no leading-zero problem.

What we need: The count.

The plan: 4 places, 5 choices each: 5⁴.

  1. 5 × 5 × 5 × 5 = 625.

625.

Check: The smallest is 1111 and the largest 9999; every one of the 625 lies between them, as a 4-digit number should.

Worked example 61

Reverse: find n if ⁿP₄ = 20 × ⁿP₂.

What we know: ⁿP₄ = n(n − 1)(n − 2)(n − 3) and ⁿP₂ = n(n − 1).

What we need: n (at least 4).

The plan: Divide by n(n − 1), then solve.

  1. (n − 2)(n − 3) = 20.
  2. n² − 5n + 6 = 20, so n² − 5n − 14 = 0, that is (n − 7)(n + 2) = 0.
  3. n = 7 (n = −2 is impossible).

n = 7.

Check: ⁷P₄ = 840 and 20 × ⁷P₂ = 20 × 42 = 840.

Worked example 62

A path that fails: 3 different letters are to be posted in 4 different letter boxes, and a box may take any number of letters. In how many ways?

What we know: Each letter goes into exactly one box; a box may get none, one or several letters.

What we need: The number of ways.

The plan: Decide which things make the choices: the letters or the boxes?

  1. The path that fails: "each of the 4 boxes chooses one of the 3 letters", giving 3⁴ = 81. It fails because a box does not have to take exactly one letter: it may stay empty or take two.
  2. The right path: each letter chooses its box. Letter 1: 4 ways; letter 2: 4 ways; letter 3: 4 ways.
  3. 4 × 4 × 4 = 4³ = 64.

64 ways.

Check: Ask which things must each make exactly one choice: here every letter goes into exactly one box, so the letters are the places and the boxes are the choices. The count is the number of choices raised to the power of the number of places: 4³.

Worked example 63

Story: a school in Thiruvananthapuram has 3 different prizes for 5 students. In how many ways can they be given (i) if a student may win more than one prize, (ii) if no student may win more than one?

What we know: 3 different prizes; each prize goes to one of 5 students.

What we need: Two counts.

The plan: Each prize is a place with 5 choices. (i) Repetition allowed: 5³. (ii) Not allowed: ⁵P₃.

  1. (i) 5 × 5 × 5 = 125.
  2. (ii) 5 × 4 × 3 = 60.

(i) 125; (ii) 60.

Check: The 125 − 60 = 65 ways in (i) that are not in (ii) are those in which some student wins two or three prizes.

Worked example 64

How many 3-digit even numbers are there in all (digits may repeat)?

What we know: Hundreds digit 1 to 9; tens digit 0 to 9; units digit 0, 2, 4, 6 or 8; repetition allowed.

What we need: The count.

The plan: Fill the restricted places (hundreds and units) and the free one; multiply.

  1. Hundreds: 9 ways.
  2. Tens: 10 ways.
  3. Units: 5 ways (an even digit).
  4. Numbers = 9 × 10 × 5 = 450.

450.

Check: There are 900 three-digit numbers, from 100 to 999, and every second one is even: 900/2 = 450.

Another way: The even 3-digit numbers run 100, 102, ..., 998: (998 − 100)/2 + 1 = 449 + 1 = 450.

Your turn

How many 3-digit numbers can be made from the digits 1, 3, 5, 7, 9 (i) without repetition (ii) with repetition?Tap to reveal
  1. (i) ⁵P₃ = 5 × 4 × 3 = 60.
  2. (ii) 5³ = 125.

(i) 60; (ii) 125.

A true-or-false test has 10 questions. In how many ways can a student fill in the answers, if every question is answered?Tap to reveal
  1. Each question: 2 ways (T or F), and answers repeat freely.
  2. 2¹⁰ = 1024.

1024 ways.

In one line

ⁿPᵣ = n!/(n − r)! without repetition (with ⁿPₙ = n! and ⁿP₀ = 1); nʳ with repetition.

6.3.4Permutations when the objects are not all different

Why we need it

In how many ways can the letters of the word ROOT be rearranged? The formulas so far assume that all the objects are different. Here two of the letters are the same O, and swapping them changes nothing. We need a way to count arrangements of objects some of which are alike.

The idea in plain words

Pretend for a moment that the alike objects are different: give them labels. Count the arrangements of the labelled objects. Then notice that each real arrangement has been counted several times, once for every way of shuffling the labels among themselves. Divide by that number.

See it: ROOT

Label the two O's as O₁ and O₂. Now the 4 letters R, O₁, O₂, T are all different, so they have 4! = 24 permutations. Take one of them, RO₁O₂T. Swapping the labels gives RO₂O₁T. If the O's are not told apart, these 2! = 2 permutations are the same arrangement ROOT. Every arrangement of ROOT comes from exactly 2! labelled permutations in this way. So the number of arrangements of ROOT is 4!/2! = 24/2 = 12. The book lists them all:

Arrangement of ROOTThe 2! labelled permutations it comes from
ROOTRO₁O₂T and RO₂O₁T
TOORTO₁O₂R and TO₂O₁R
ROTORO₁TO₂ and RO₂TO₁
TOROTO₁RO₂ and TO₂RO₁
RTOORTO₁O₂ and RTO₂O₁
TROOTRO₁O₂ and TRO₂O₁
OORTO₁O₂RT and O₂O₁RT
OOTRO₁O₂TR and O₂O₁TR
OROTO₁RO₂T and O₂RO₁T
OTORO₁TO₂R and O₂TO₁R
ORTOO₁RTO₂ and O₂RTO₁
OTROO₁TRO₂ and O₂TRO₁

Now the word INSTITUTE. It has 9 letters, in which I appears 2 times and T appears 3 times. Label them I₁, I₂ and T₁, T₂, T₃: the 9 letters are then different and have 9! permutations. Take one of them, such as I₁NT₁SI₂T₂UET₃. The I's can be shuffled among themselves in 2! ways and the T's in 3! ways, so 2! × 3! labelled permutations give the same arrangement. The number of different arrangements is 9!/(2! 3!) = 30,240.

Theorems 3 and 4

Theorem 3. The number of permutations of n objects, where p objects are of the same kind and the rest are all different, is n!/p!.

Theorem 4. Take n objects. Suppose p₁ of them are of one kind, p₂ of a second kind, ..., pₖ of a k th kind, and the rest, if any, are all different. Then the number of permutations of the n objects is n!/(p₁! p₂! ... pₖ!).

The book states them without proof; the labelling argument above is the proof. Read p₁ as "p one", and so on.

Arrangements with alike objects

n is the total number of objects; p₁, p₂, ..., pₖ are the sizes of the groups of alike objects. An object that is not repeated has a group of size 1, and 1! = 1 changes nothing.

Example 9 (from the book)

Find the number of permutations of the letters of the word ALLAHABAD.

What we know: 9 letters: A appears 4 times, L appears 2 times, and H, B, D once each.

What we need: The number of different arrangements.

The plan: Theorem 4 with n = 9, p₁ = 4 (the A's) and p₂ = 2 (the L's).

  1. Arrangements = 9!/(4! 2!).
  2. 9!/4! = 9 × 8 × 7 × 6 × 5 = 15,120.
  3. 15,120/2! = 15,120/2 = 7560.

7560.

Check: Count the letters again: A, L, L, A, H, A, B, A, D: A four times, L twice, H, B, D once, which is 9 letters. The book writes the same product as (5 × 6 × 7 × 8 × 9)/2 = 7560.

Five kinds of worked example

Worked example 65

Direct: in how many ways can the letters of BANANA be arranged?

What we know: 6 letters: A three times, N twice, B once.

What we need: The number of arrangements.

The plan: n!/(p₁! p₂!) with n = 6, p₁ = 3, p₂ = 2.

  1. 6!/(3! 2!) = 720/(6 × 2) = 720/12 = 60.

60 arrangements.

Check: If all 6 letters were different there would be 720; each arrangement of BANANA stands for 3! × 2! = 12 labelled ones, and 720/12 = 60.

Worked example 66

Story: for Diwali, Meena sets 6 lamps in a row on the steps of her home in Varanasi: 4 identical red lamps and 2 identical yellow ones. How many different rows can she make?

What we know: 6 lamps; 4 alike (red) and 2 alike (yellow).

What we need: The number of different rows.

The plan: Theorem 4: 6!/(4! 2!).

  1. 6!/4! = 6 × 5 = 30.
  2. 30/2! = 15.

15 rows.

Check: Choosing a row is the same as choosing which 2 of the 6 places get yellow lamps: YY at the start, YRY..., and so on. Section 6.4 will count these choices as ⁶C₂ = 15.

Worked example 67

Picture: in the grid of the figure, a path goes from A to B along the lines, always moving right or up. How many such paths are there?

AB
A shortest path from A to B is 4 steps right (R) and 3 steps up (U) in some order; this one is R U R R U R U.

What we know: Every such path has 4 steps right (R) and 3 steps up (U); the path is the order of these 7 steps.

What we need: The number of paths.

The plan: A path is an arrangement of R, R, R, R, U, U, U: Theorem 4 with n = 7, p₁ = 4, p₂ = 3.

  1. Paths = 7!/(4! 3!).
  2. 7!/4! = 7 × 6 × 5 = 210.
  3. 210/3! = 210/6 = 35.

35 paths.

Check: The path drawn is R U R R U R U, one of the 35. Every path must reach the column of B (4 steps right) and the row of B (3 steps up), so no path is longer or shorter.

Worked example 68

Reverse: a 5-letter word has one letter repeated (the other letters are different from it and from one another). Its letters can be arranged in 20 ways. How many times does the repeated letter appear?

What we know: 5!/p! = 20, where p is the number of times the letter appears.

What we need: p.

The plan: Solve for p!.

  1. 120/p! = 20, so p! = 6.
  2. 3! = 6, so p = 3.

3 times, as in the word EERIE, whose E appears three times while R and I appear once.

Check: 5!/3! = 120/6 = 20.

Worked example 69

Exam: how many arrangements of the letters of ASSESSMENT are there?

What we know: 10 letters: S four times, E twice; A, M, N, T once each.

What we need: The number of arrangements.

The plan: Theorem 4: 10!/(4! 2!).

  1. 10! = 36,28,800.
  2. 4! × 2! = 24 × 2 = 48.
  3. 36,28,800/48 = 75,600.

75,600 arrangements.

Check: Count the letters: A, S, S, E, S, S, M, E, N, T: S four times and E twice, 10 in all.

Divide by the factorial of each group, not by the number of groups

BANANA has 2 repeated letters, but we do not divide by 2. We divide by 3! for the three A's and by 2! for the two N's: 6!/(3! 2!) = 60.

When you are stuck: alike objects

Count every letter and write how many times each appears before using the formula.

Check that the counts add up to n.

Test the formula on a short word such as ROOT by listing.

Worked example 70

How many arrangements of the letters of MATHEMATICS are there?

What we know: 11 letters: M, A and T twice each; H, E, I, C, S once each.

What we need: The number of arrangements.

The plan: Theorem 4 with three groups of 2.

  1. 11!/(2! 2! 2!) = 3,99,16,800/8.
  2. = 49,89,600.

49,89,600.

Check: Count the letters once more: M, A, T, H, E, M, A, T, I, C, S: eleven, with M, A and T each twice.

Worked example 71

Of the 60 arrangements of BANANA, how many begin with B? How many end with A?

What we know: BANANA: A three times, N twice, B once.

What we need: Two counts.

The plan: Fix the given letter, then arrange the other 5 letters with Theorem 4.

  1. Begin with B: arrange A, N, A, N, A: 5!/(3! 2!) = 10.
  2. End with A: arrange B, A, N, A, N: 5!/(2! 2!) = 30.

10 begin with B; 30 end with A.

Check: Half of the 6 letters are A's, so half of the 60 arrangements end in A: 30. One of the 6 letters is B, so one sixth begin with B: 10.

Worked example 72

Picture: in the grid of the figure (4 squares across, 3 up), how many of the 35 shortest paths from A to B pass through the point P that is 2 steps right and 1 step up from A?

What we know: A path through P goes A to P (2 R and 1 U) and then P to B (2 R and 2 U).

What we need: The number of paths through P.

The plan: Count each part as an arrangement of R's and U's, then multiply.

  1. A to P: arrangements of R, R, U: 3!/2! = 3.
  2. P to B: arrangements of R, R, U, U: 4!/(2! 2!) = 6.
  3. Paths through P = 3 × 6 = 18.

18 paths.

Check: So 35 − 18 = 17 paths avoid P. The path drawn in the figure, R U R R U R U, goes through the point 1 right and 1 up, then 2 right and 1 up: it passes through P.

Worked example 73

Story: Arjun lays 5 identical one-rupee coins and 3 identical two-rupee coins in a row. How many different rows are there?

What we know: 8 coins: 5 alike and 3 alike.

What we need: The number of rows.

The plan: Theorem 4: 8!/(5! 3!).

  1. 8!/5! = 8 × 7 × 6 = 336.
  2. 336/3! = 336/6 = 56.

56 rows.

Check: A row is fixed by the places of the 3 two-rupee coins among 8 places; section 6.4 will count those as ⁸C₃ = 56.

Worked example 74

How many arrangements of the letters of ENGINEERING are there?

What we know: 11 letters: E three times, N three times, G twice, I twice, R once.

What we need: The count.

The plan: Theorem 4.

  1. 11!/(3! 3! 2! 2!) = 3,99,16,800/(6 × 6 × 2 × 2).
  2. = 3,99,16,800/144 = 2,77,200.

2,77,200.

Check: 3 + 3 + 2 + 2 + 1 = 11, so every letter is in exactly one group.

Worked example 75

Story: a child in Mysuru stacks 8 blocks into a tower: 4 identical red, 2 identical blue and 2 identical green. How many different towers are there?

What we know: 8 blocks in 3 groups of alike blocks.

What we need: The number of towers.

The plan: Theorem 4: 8!/(4! 2! 2!).

  1. 8!/4! = 8 × 7 × 6 × 5 = 1680.
  2. 1680/(2! × 2!) = 1680/4 = 420.

420 towers.

Check: If every block were different, there would be 8! = 40,320 towers; each colour pattern stands for 4! × 2! × 2! = 96 of them, and 40,320/96 = 420.

Worked example 76

How many arrangements of the letters of COMMITTEE begin and end with E?

What we know: COMMITTEE has E twice, M twice, T twice, and C, O, I once.

What we need: The count.

The plan: Put the two E's at the ends (1 way, since they are alike), then arrange the 7 middle letters.

  1. Middle letters: C, O, M, M, I, T, T.
  2. 7!/(2! 2!) = 5040/4 = 1260.

1260.

Check: All arrangements of COMMITTEE number 45,360; the ones with E at both ends are 1260, about 1 in 36.

Worked example 77

How many 6-digit numbers can be made with the digits 1, 1, 2, 2, 2, 3 (each used as often as it appears)? How many of them are even?

What we know: 6 digits: 1 twice, 2 three times, 3 once; there is no 0.

What we need: Two counts.

The plan: Theorem 4; for even numbers fix a 2 at the units place.

  1. All: 6!/(2! 3!) = 720/12 = 60.
  2. Even: the units digit is 2; the other digits 1, 1, 2, 2, 3 in front: 5!/(2! 2!) = 30.

60 numbers, of which 30 are even.

Check: Half the digits (three of six) are 2's, so half of the numbers end in 2: 60/2 = 30.

Worked example 78

Story: a string of 7 decoration bulbs for Diwali has exactly 3 bulbs switched on and 4 switched off. How many on-off patterns are there?

What we know: 7 places; three alike "on" bulbs and four alike "off" bulbs.

What we need: The count.

The plan: Theorem 4.

  1. 7!/(3! 4!) = 5040/(6 × 24) = 5040/144 = 35.

35.

Check: The same number as the grid paths: read "on" as a step up and "off" as a step right, and each pattern becomes a path, and each path a pattern.

Your turn

How many arrangements of the letters of COMMITTEE are there?Tap to reveal
  1. 9 letters: M twice, T twice, E twice; C, O, I once.
  2. 9!/(2! 2! 2!) = 3,62,880/8 = 45,360.

45,360.

In how many ways can 3 identical blue and 3 identical green beads be put in a row?Tap to reveal
  1. 6!/(3! 3!) = 720/36 = 20.

20 ways.

In one line

With p₁ alike of one kind, p₂ alike of another, ..., the n objects can be arranged in n!/(p₁! p₂! ... pₖ!) ways.

6.3Permutations at work: the book's Examples 10 to 16

The book now uses the formulas on harder questions: numbers with conditions, equations in ⁿPᵣ, letters that must be together or apart, and alike objects with conditions. Each one below is in the full format.

Example 10 (from the book)

How many 4-digit numbers can be formed by using the digits 1 to 9 if repetition of digits is not allowed?

What we know: 9 different digits, no 0; a number uses 4 of them in order.

What we need: The number of such numbers.

The plan: Order matters (1234 and 1324 are different numbers), so count permutations of 9 taken 4.

  1. ⁹P₄ = 9!/(9 − 4)! = 9!/5!.
  2. = 9 × 8 × 7 × 6 = 3024.

3024 numbers.

Check: No digit is 0, so no number has to be removed for a leading zero.

Example 11 (from the book)

How many numbers lying between 100 and 1000 can be formed with the digits 0, 1, 2, 3, 4, 5, if the repetition of the digits is not allowed?

What we know: Every number between 100 and 1000 has 3 digits; 6 digits are available, including 0; no repeats.

What we need: The number of 3-digit numbers.

The plan: Count all permutations of 6 digits taken 3, then subtract those with 0 in the hundreds place, which are really 2-digit numbers.

  1. All arrangements of 3 of the 6 digits: ⁶P₃ = 6!/3! = 4 × 5 × 6 = 120.
  2. Those with 0 first: fix 0 at the hundreds place and arrange 2 of the other 5 digits: ⁵P₂ = 5!/3! = 4 × 5 = 20. These are strings like 042 and 092.
  3. Required number = 120 − 20 = 100.

100 numbers.

Check: Directly: hundreds place 5 ways (not 0), tens 5 ways (any unused digit, now 0 included), units 4 ways: 5 × 5 × 4 = 100.

Another way: This is the restricted-place-first method of section 6.2; both methods give 100.

Example 12 (from the book)

Find the value of n such that (i) ⁿP₅ = 42 ⁿP₃, n > 4; (ii) ⁿP₄/ⁿ⁻¹P₄ = 5/3, n > 4.

What we know: ⁿP₅ = n(n − 1)(n − 2)(n − 3)(n − 4) and ⁿP₃ = n(n − 1)(n − 2).

What we need: n in each part.

The plan: Write each side as a product, divide by the common factors (which are not zero since n > 4), and solve.

  1. (i) n(n − 1)(n − 2)(n − 3)(n − 4) = 42 n(n − 1)(n − 2).
  2. Since n > 4, n(n − 1)(n − 2) ≠ 0; divide by it: (n − 3)(n − 4) = 42.
  3. n² − 7n + 12 = 42, so n² − 7n − 30 = 0, that is n² − 10n + 3n − 30 = 0, so (n − 10)(n + 3) = 0.
  4. n = 10 or n = −3; n cannot be negative, so n = 10.
  5. (ii) 3 ⁿP₄ = 5 ⁿ⁻¹P₄ gives 3n(n − 1)(n − 2)(n − 3) = 5(n − 1)(n − 2)(n − 3)(n − 4).
  6. Divide by (n − 1)(n − 2)(n − 3), which is not 0: 3n = 5(n − 4) = 5n − 20, so 2n = 20 and n = 10.

(i) n = 10; (ii) n = 10.

Check: (i) ¹⁰P₅ = 30,240 and 42 × ¹⁰P₃ = 42 × 720 = 30,240. (ii) ¹⁰P₄ = 5040 and ⁹P₄ = 3024, and 5040/3024 = 5/3.

Two small misprints in the book's working: one line reads (n − 3 (n − 4) = 42, with a bracket missing, and the next reads n² − 10n + 3n − 30 without its = 0. The working above has both restored.

Example 13 (from the book)

Find r, if 5 ⁴Pᵣ = 6 ⁵Pᵣ₋₁.

What we know: ⁴Pᵣ = 4!/(4 − r)! and ⁵Pᵣ₋₁ = 5!/(5 − r + 1)! = 5!/(6 − r)!. For ⁴Pᵣ to have a meaning, r can be at most 4.

What we need: r.

The plan: Write both sides with factorials, cancel, and solve the quadratic; then keep only the values that make sense.

  1. 5 × 4!/(4 − r)! = 6 × 5!/(6 − r)!.
  2. 5 × 4! = 5! and 6 × 5! = 6!, so 5!/(4 − r)! = 6 × 5!/((6 − r)(5 − r)(4 − r)!).
  3. Cancel 5! and (4 − r)!: (6 − r)(5 − r) = 6.
  4. r² − 11r + 30 = 6, so r² − 11r + 24 = 0, that is (r − 8)(r − 3) = 0.
  5. r = 8 or r = 3. But ⁴P₈ would mean arranging 8 of 4 objects, which is impossible, so r = 8 is rejected.

r = 3.

Check: 5 × ⁴P₃ = 5 × 24 = 120 and 6 × ⁵P₂ = 6 × 20 = 120.

The book's last line says "Hence r = 8, 3". The algebra does give both roots, but r = 8 is not allowed: ⁴Pᵣ needs r ≤ 4. A root that solves the equation but breaks the meaning of the symbols must be rejected, just as a negative n was rejected in Example 12.

Example 14 (from the book)

Find the number of different 8-letter arrangements that can be made from the letters of the word DAUGHTER so that (i) all vowels occur together (ii) all vowels do not occur together.

DGHTRA U E3! orders inside6 objects: 6! orders
Example 14 (i): glue the vowels A, U, E into one block; the 6 objects can be arranged in 6! ways and the block inside in 3! ways.

What we know: DAUGHTER has 8 different letters, of which A, U and E are vowels.

What we need: Two counts.

The plan: (i) Glue the 3 vowels into one block and count the arrangements of the block and the other 5 letters, then the arrangements inside the block. (ii) Count all arrangements and subtract (i).

  1. (i) The block (AUE) and the 5 consonants make 6 objects: ⁶P₆ = 6! = 720 arrangements.
  2. For each of these, the 3 vowels can be arranged inside the block in 3! = 6 ways.
  3. By the multiplication principle: 6! × 3! = 720 × 6 = 4320.
  4. (ii) All arrangements of 8 different letters: 8! = 40,320.
  5. Arrangements in which the vowels are not all together: 40,320 − 4320 = 36,000.

(i) 4320; (ii) 36,000.

Check: The book writes (ii) as 8! − 6! × 3! = 6! (7 × 8 − 6) = 6! × 50 = 720 × 50 = 36,000, the same.

The glue method and the subtraction method

Together: treat the objects that must be together as one block; arrange the blocks and the rest, then arrange inside the block, and multiply.

Not all together: count everything, then subtract the arrangements in which they are all together.

Example 15 (from the book)

In how many ways can 4 red, 3 yellow and 2 green discs be arranged in a row if the discs of the same colour are indistinguishable?

What we know: 9 discs: 4 alike red, 3 alike yellow, 2 alike green.

What we need: The number of different rows.

The plan: Theorem 4: 9!/(4! 3! 2!).

  1. 9!/4! = 9 × 8 × 7 × 6 × 5 = 15,120.
  2. 3! × 2! = 6 × 2 = 12.
  3. 15,120/12 = 1260.

1260 ways.

Check: 4 + 3 + 2 = 9, so every disc is counted in exactly one group.

Example 16 (from the book)

Find the number of arrangements of the letters of the word INDEPENDENCE. In how many of these arrangements (i) do the words start with P (ii) do all the vowels always occur together (iii) do the vowels never occur together (iv) do the words begin with I and end in P?

What we know: 12 letters: N three times, E four times, D twice; I, P, C once each. The vowels are the four E's and the I.

What we need: The total and four counts.

The plan: Theorem 4 for the total; for (i) and (iv) fix the given letters and arrange the rest; for (ii) the glue method; for (iii) subtract (ii) from the total, as the book does.

  1. Total = 12!/(3! 4! 2!) = 16,63,200.
  2. (i) Fix P at the left end; arrange the other 11 letters (N three times, E four times, D twice): 11!/(3! 2! 4!) = 1,38,600.
  3. (ii) Glue the 5 vowels E, E, E, E, I into one block. The block and the 7 other letters (N, N, N, D, D, P, C) make 8 objects, with 3 N's and 2 D's alike: 8!/(3! 2!) = 3360 ways.
  4. Inside the block, the 5 vowels (4 alike E's) can be arranged in 5!/4! = 5 ways.
  5. So (ii) = 3360 × 5 = 16,800.
  6. (iii) As the book reads it: total − (ii) = 16,63,200 − 16,800 = 16,46,400.
  7. (iv) Fix I at the left end and P at the right end; arrange the other 10 letters: 10!/(3! 2! 4!) = 12,600.

16,63,200 in all; (i) 1,38,600; (ii) 16,800; (iii) 16,46,400; (iv) 12,600.

Check: (i) is one twelfth of the total: by symmetry, P is first in exactly as many arrangements as it is second, third, ..., or twelfth, and every arrangement has P in exactly one of the 12 places. So 16,63,200/12 = 1,38,600.

A loose end: what "never together" means

The book's answer to (iii) counts the arrangements in which the five vowels are not all in one block; some of them still have two or three vowels side by side. If "never together" is read strictly, as "no two vowels side by side", the count is different. Arrange the 7 consonants N, N, N, D, D, P, C in 7!/(3! 2!) = 420 ways; they leave 8 gaps (between them and at the two ends); choose 5 gaps for the vowels in ⁸C₅ = 56 ways (section 6.4); arrange the vowels E, E, E, E, I in those gaps in 5 ways. That gives 420 × 56 × 5 = 1,17,600. In an exam, follow the book's meaning, "not all together", unless the question says "no two vowels together".

When you are stuck: permutations with conditions

"Together": glue into a block, then multiply by the arrangements inside the block.

"Not together": all − together. "No two together": place the others first and put the special ones in the gaps.

"Begins with", "ends with": fix those letters and arrange the rest.

An equation in ⁿPᵣ or ⁿCᵣ: reject any root that is negative, not whole, or larger than the symbols allow.

Worked example 79

In how many arrangements of the letters of ARRANGE are the two R's not together?

What we know: 7 letters: A twice, R twice; N, G, E once.

What we need: The arrangements with the R's apart.

The plan: All arrangements minus those with the R's together (glued).

  1. All: 7!/(2! 2!) = 5040/4 = 1260.
  2. R's together: the RR block and A, A, N, G, E make 6 objects with A twice: 6!/2! = 360 (the block has one inside order, as the R's are alike).
  3. Apart: 1260 − 360 = 900.

900.

Check: With only two R's, "not together" and "no two together" mean the same thing, so the subtraction gives the strict answer here.

Worked example 80

A dead end: find r if ⁵Pᵣ = 6 ⁵Pᵣ₋₁.

What we know: ⁵Pᵣ = 5!/(5 − r)! and ⁵Pᵣ₋₁ = 5!/(6 − r)!, with 1 ≤ r ≤ 5.

What we need: r, if it exists.

The plan: Divide the two sides, then test the answer against the allowed values.

  1. ⁵Pᵣ/⁵Pᵣ₋₁ = (6 − r)!/(5 − r)! = 6 − r.
  2. So 6 − r = 6, which gives r = 0.
  3. But r = 0 would make the right side ⁵P₋₁, which has no meaning; r must be at least 1.

No value of r works: the equation is a dead end.

Check: Test every allowed r: ⁵P₁ = 5 but 6 × ⁵P₀ = 6; ⁵P₂ = 20 but 6 × ⁵P₁ = 30; and for larger r the left side is always 6 − r times ⁵Pᵣ₋₁, less than 6 times. Saying "no solution" is a full answer.

Worked example 81

In how many arrangements of the letters of PENCIL do P, E and N appear in this order (not necessarily side by side)?

What we know: 6 different letters; P before E before N.

What we need: The count.

The plan: Of the 3! = 6 orders in which P, E and N can appear, every arrangement shows exactly one, and each order is equally common. So divide by 3!.

  1. All arrangements: 6! = 720.
  2. Divide by 3! = 6: 720/6 = 120.

120.

Check: Another view: treat P, E, N as three alike letters X, arrange C, I, L, X, X, X in 6!/3! = 120 ways, then fill the X's with P, E, N in that order (1 way).

Worked example 82

How many 3-digit numbers greater than 500 can be made from the digits 0, 2, 3, 5, 7, with no repetition?

What we know: The hundreds digit must be 5 or 7 for the number to exceed 500 (no 3-digit number starting with 5 equals 500, since 0 can be used only once and 500 needs two 0's).

What we need: The count.

The plan: Restricted place first: hundreds, then tens and units.

  1. Hundreds: 2 ways (5 or 7).
  2. Tens: 4 ways; units: 3 ways (from the digits left).
  3. Numbers = 2 × 4 × 3 = 24.

24.

Check: Starting with 5: 52 ×, 53 ×, 57 ×, 50 × with 3 choices each, 12 numbers such as 502, 523, 570. Starting with 7: another 12. 12 + 12 = 24.

Worked example 83

In how many arrangements of DAUGHTER do the vowels occupy the 2nd, 4th and 6th places?

What we know: The vowels A, U, E go into places 2, 4, 6; the consonants D, G, H, T, R into the other 5 places.

What we need: The count.

The plan: Arrange the vowels in their 3 places and the consonants in theirs; multiply.

  1. Vowels: 3! = 6.
  2. Consonants: 5! = 120.
  3. Total = 6 × 120 = 720.

720.

Check: The places are fixed, so no choosing of places is needed, only the arrangements inside them.

Worked example 84

How many 4-digit numbers divisible by 4 can be made from the digits 1, 2, 3, 4, 5 without repetition?

What we know: A number is divisible by 4 when the number formed by its last two digits is.

What we need: The count.

The plan: List the possible last two digits, then fill the first two places.

  1. Two-digit endings from these digits, no repeat, divisible by 4: 12, 24, 32, 52 (4 endings).
  2. For each ending, the first two places take 2 of the 3 digits left: ³P₂ = 6.
  3. Numbers = 4 × 6 = 24.

24.

Check: 44 would need a repeated 4, and 16, 28, 36, 48 and 56 use a digit that is not available, so the 4 endings are all.

Worked example 85

In how many arrangements of the letters of MOBILE do the vowels occupy only the odd places?

What we know: MOBILE has 6 different letters; the vowels O, I, E are three, and the odd places 1, 3, 5 are three.

What we need: The count.

The plan: The vowels fill the 3 odd places exactly; the consonants M, B, L fill the 3 even places.

  1. Vowels in the odd places: 3! = 6.
  2. Consonants in the even places: 3! = 6.
  3. Total = 6 × 6 = 36.

36.

Check: With 3 vowels and exactly 3 odd places, every odd place must hold a vowel, so there is no choosing of places, only arranging.

Worked example 86

In how many arrangements of the letters of TRIANGLE are no two vowels side by side?

What we know: TRIANGLE has 8 different letters: the vowels I, A, E and the consonants T, R, N, G, L.

What we need: The arrangements in which no two vowels are next to each other (the strict meaning of "never together").

The plan: Place the consonants first, then put the vowels into the gaps, one vowel to a gap (the gap method of the loose end after Example 16).

  1. The 5 consonants in a row: 5! = 120 ways.
  2. They leave 6 gaps: one before the first consonant, four between neighbours, one after the last.
  3. The 3 different vowels go into 3 of the 6 gaps, in order: ⁶P₃ = 6 × 5 × 4 = 120 ways.
  4. Total = 120 × 120 = 14,400.

14,400.

Check: A listing of all 8! = 40,320 arrangements finds exactly 14,400 with no two vowels side by side. This is the strict count; "not all three vowels together" would instead be 40,320 − 6! × 3! = 40,320 − 4320 = 36,000.

Your turn

In how many arrangements of the letters of DAUGHTER does the word start with D?Tap to reveal
  1. Fix D first; arrange the other 7 different letters: 7! = 5040.

5040.

Five books, two of them in Hindi, stand on a shelf. In how many arrangements are the two Hindi books side by side?Tap to reveal
  1. Glue the 2 Hindi books: the block and 3 other books make 4 objects: 4! = 24.
  2. Inside the block: 2! = 2.
  3. 24 × 2 = 48.

48 arrangements.

In one line

Fix letters that must be at fixed places, glue objects that must be together, subtract for "not together", and reject impossible roots.

Ex 6.3Exercise 6.3, solved in full

Every answer below agrees with the book's answer key. Questions 1 to 5 count numbers and posts, Questions 6 and 7 solve equations in ⁿPᵣ, and Questions 8 to 11 arrange the letters of words, some with conditions.

1. How many 3-digit numbers can be formed by using the digits 1 to 9 if no digit is repeated?Tap to reveal

What we know: 9 different digits, none of them 0; a number uses 3 of them in order.

The plan: Permutations of 9 taken 3, since 123 and 321 are different numbers.

  1. ⁹P₃ = 9!/6! = 9 × 8 × 7.
  2. 9 × 8 = 72, and 72 × 7 = 504.

504.

Check: By places: hundreds 9 ways, tens 8 ways, units 7 ways, so 9 × 8 × 7 = 504. No 0 is available, so no number has to be removed for a leading zero. This is also the count for the number lock of section 6.1.

2. How many 4-digit numbers are there with no digit repeated?Tap to reveal

What we know: The digits 0 to 9 may be used; the first digit cannot be 0; no repeats.

The plan: Fill the thousands place first, because it is the restricted place.

  1. Thousands place: 9 ways (1 to 9).
  2. Hundreds place: 9 ways (the 9 unused digits, now including 0).
  3. Tens place: 8 ways. Units place: 7 ways.
  4. Numbers = 9 × 9 × 8 × 7 = 4536.

4536.

Check: All strings of 4 different digits: ¹⁰P₄ = 5040. Those starting with 0: ⁹P₃ = 504. So 5040 − 504 = 4536, the same answer.

Another way: The subtraction in the check is the method of Example 11.

3. How many 3-digit even numbers can be made using the digits 1, 2, 3, 4, 6, 7, if no digit is repeated?Tap to reveal

What we know: Six digits, three of them even (2, 4, 6); no repeats; an even number ends in an even digit.

The plan: Fill the units place first, then the hundreds and tens from the digits left.

  1. Units place: 3 ways (2, 4 or 6).
  2. Hundreds place: 5 ways (any of the 5 digits not used).
  3. Tens place: 4 ways.
  4. Numbers = 3 × 5 × 4 = 60.

60.

Check: Count by the last digit: numbers ending in 2 use 2 of the other 5 digits in front, ⁵P₂ = 20 ways; the same for 4 and for 6; 20 + 20 + 20 = 60.

4. Find the number of 4-digit numbers that can be formed using the digits 1, 2, 3, 4, 5 if no digit is repeated. How many of these will be even?Tap to reveal

What we know: 5 different digits, no 0; a number uses 4 of them in order; even means the units digit is 2 or 4.

The plan: All numbers: ⁵P₄. Even ones: fill the units place first, then the other 3 places from the 4 digits left.

  1. All: ⁵P₄ = 5!/1! = 120.
  2. Even: units place 2 ways (2 or 4); then the thousands, hundreds and tens take 3 of the remaining 4 digits in ⁴P₃ = 4 × 3 × 2 = 24 ways.
  3. Even numbers = 2 × 24 = 48.

120 numbers, of which 48 are even.

Check: Two of the five digits are even, so the units digit is even in 2/5 of the numbers: (2/5) × 120 = 48, the same.

5. From a committee of 8 persons, in how many ways can we choose a chairman and a vice chairman assuming one person cannot hold more than one position?Tap to reveal

What we know: 8 different people; 2 different posts; one person takes at most one post.

The plan: The posts are different, so order matters: permutations of 8 taken 2.

  1. ⁸P₂ = 8!/6! = 8 × 7 = 56.

56 ways.

Check: Chairman first in 8 ways, then vice chairman in 7 ways: 8 × 7 = 56. Asha as chairman with Ravi as vice chairman differs from the reverse, which is why it is a permutation and not a selection.

6. Find n if ⁿ⁻¹P₃ : ⁿP₄ = 1 : 9.Tap to reveal

What we know: ⁿ⁻¹P₃ = (n − 1)(n − 2)(n − 3) and ⁿP₄ = n(n − 1)(n − 2)(n − 3).

The plan: A ratio 1 : 9 means 9 × (first) = second. Write both as products and cancel the common factors.

  1. 9 (n − 1)(n − 2)(n − 3) = n(n − 1)(n − 2)(n − 3).
  2. For ⁿ⁻¹P₃ to make sense, n − 1 ≥ 3, so n ≥ 4 and the product (n − 1)(n − 2)(n − 3) is not zero.
  3. Cancel it: 9 = n.

n = 9.

Check: ⁸P₃ = 8 × 7 × 6 = 336 and ⁹P₄ = 9 × 8 × 7 × 6 = 3024. Then 3024 = 9 × 336, so the ratio is 1 : 9.

7. Find r if (i) ⁵Pᵣ = 2 ⁶Pᵣ₋₁ (ii) ⁵Pᵣ = ⁶Pᵣ₋₁.Tap to reveal

What we know: ⁵Pᵣ = 5!/(5 − r)! needs 0 ≤ r ≤ 5; ⁶Pᵣ₋₁ = 6!/(7 − r)!.

The plan: Write both sides with factorials, cancel, solve the quadratic, and keep only r ≤ 5.

  1. (i) 5!/(5 − r)! = 2 × 6!/(7 − r)!. Write (7 − r)! = (7 − r)(6 − r)(5 − r)! and cancel (5 − r)!: 5! (7 − r)(6 − r) = 2 × 6!.
  2. Divide by 5!: (7 − r)(6 − r) = 2 × 6 = 12, so r² − 13r + 42 = 12, r² − 13r + 30 = 0, (r − 3)(r − 10) = 0.
  3. r = 3 or r = 10; but r ≤ 5, so r = 3.
  4. (ii) In the same way (7 − r)(6 − r) = 6, so r² − 13r + 36 = 0, (r − 4)(r − 9) = 0.
  5. r = 4 or r = 9; but r ≤ 5, so r = 4.

(i) r = 3; (ii) r = 4.

Check: (i) ⁵P₃ = 60 and 2 × ⁶P₂ = 2 × 30 = 60. (ii) ⁵P₄ = 120 and ⁶P₃ = 120. In both parts the larger root would ask for more places than there are objects, as with r = 8 in Example 13.

8. How many words, with or without meaning, can be formed using all the letters of the word EQUATION, using each letter exactly once?Tap to reveal

What we know: EQUATION has 8 letters, all different (E, Q, U, A, T, I, O, N).

The plan: All 8 different letters arranged: 8!.

  1. ⁸P₈ = 8! = 40,320.

40,320 words.

Check: Check that no letter repeats: E, Q, U, A, T, I, O, N are eight different letters, so no division for alike letters is needed. The word has 5 vowels (E, U, A, I, O), which the Miscellaneous Exercise uses later.

9. How many words, with or without meaning, can be made from the letters of the word MONDAY, assuming that no letter is repeated? Answer when (i) 4 letters are used at a time; (ii) all letters are used at a time; (iii) all letters are used but the first letter is a vowel.Tap to reveal

What we know: MONDAY has 6 different letters, of which O and A are vowels.

The plan: (i) ⁶P₄. (ii) 6!. (iii) Fill the first place with a vowel, then arrange the other 5 letters.

  1. (i) ⁶P₄ = 6!/2! = 6 × 5 × 4 × 3 = 360.
  2. (ii) 6! = 720.
  3. (iii) First letter: 2 ways (O or A). The other 5 letters fill 5 places in 5! = 120 ways. Words = 2 × 120 = 240.

(i) 360; (ii) 720; (iii) 240.

Check: (iii) 2 of the 6 letters are vowels, so one third of the 720 words start with a vowel: 720/3 = 240.

10. In how many of the distinct permutations of the letters in MISSISSIPPI do the four I's not come together?Tap to reveal

What we know: 11 letters: I four times, S four times, P twice, M once.

The plan: All arrangements minus those with the four I's together (the glue method).

  1. All: 11!/(4! 4! 2!) = 34,650.
  2. I's together: glue IIII into one block; the block, M, four S's and two P's make 8 objects: 8!/(4! 2!) = 840 (the block has only one inside order, since the I's are alike).
  3. Not together: 34,650 − 840 = 33,810.

33,810.

Check: 840 is only about 2.4% of 34,650, which makes sense: the four I's rarely all land side by side. As in Example 16, "not together" means "not all four together".

11. In how many ways can the letters of the word PERMUTATIONS be arranged if the (i) words start with P and end with S, (ii) vowels are all together, (iii) there are always 4 letters between P and S?Tap to reveal

What we know: 12 letters: T twice, the other 10 letters once each; the vowels are E, U, A, I, O.

The plan: (i) Fix P and S at the ends. (ii) Glue the vowels. (iii) Count the places for P and S first, then arrange the other 10 letters.

  1. (i) P first and S last; the other 10 letters (with T twice) in the middle: 10!/2! = 18,14,400.
  2. (ii) The vowel block and the 7 other letters P, R, M, T, T, N, S make 8 objects: 8!/2! = 20,160. Inside the block the 5 different vowels go in 5! = 120 ways. Total = 20,160 × 120 = 24,19,200.
  3. (iii) If P is in place k and S in place k + 5, there are 4 letters between them; k can be 1 to 7 (k + 5 ≤ 12): 7 pairs of places, and P and S can swap: 7 × 2 = 14 ways. The other 10 letters fill the rest in 10!/2! = 18,14,400 ways. Total = 14 × 18,14,400 = 2,54,01,600.

(i) 18,14,400; (ii) 24,19,200; (iii) 2,54,01,600.

Check: In (iii) the pairs of places are (1, 6), (2, 7), (3, 8), (4, 9), (5, 10), (6, 11) and (7, 12): seven pairs, each used with P first or S first. Every count keeps the 2! for the two T's.

When you are stuck: Exercise 6.3

Numbers: fill the restricted place first (no 0 in front, even at the end).

Equations in ⁿPᵣ: cancel the common factors, solve, and reject roots that are too large or negative.

Words: count each letter first; then fix, glue, or subtract as the condition asks.

6.4Combinations

Why we need it

There are 3 lawn tennis players, X, Y and Z, and a team of 2 is to be formed. In how many ways? Is the team of X and Y different from the team of Y and X? No: it is the same two people. Here order is not important. There are only 3 possible teams: XY, YZ and ZX. The book shows them in Fig 6.3.

Book Figure 6.3: The 3 teams of 2 players that can be formed from the lawn tennis players X, Y and Z: XY, YZ and ZX (the book labels this figure only with its number).

Each such selection is called a combination: here, a combination of 3 different objects taken 2 at a time. In a combination, the order is not important. Two more examples from the book:

  • Twelve people meet in a room, and each shakes hands with all the others. X shaking hands with Y and Y with X is one handshake, not two. So there are as many handshakes as combinations of 12 different things taken 2 at a time.
  • Seven points lie on a circle. Joining them in pairs gives chords. The chord from A to B is the chord from B to A. So there are as many chords as combinations of 7 different things taken 2 at a time.
ABCDEFG
Seven points on a circle: every pair of points gives one chord, and the order of the two ends does not matter, so there are ⁷C₂ = 21 chords.
Combination, and ⁿCᵣ

A combination is a selection of some or all of a number of different objects, in which the order of selection does not matter.

ⁿCᵣ, read "n C r", is the number of combinations of n different objects taken r at a time.

From permutations to combinations

Take 4 different objects A, B, C and D, and form combinations of 2 at a time. They are AB, AC, AD, BC, BD and CD: AB and BA are the same combination, so BA, CA, DA, CB, DB and DC are not listed again. So ⁴C₂ = 6.

Each combination can be arranged in 2! ways: AB gives the permutations AB and BA. So the number of permutations is ⁴C₂ × 2!. But the number of permutations of 4 different things taken 2 at a time is also ⁴P₂. Therefore ⁴P₂ = ⁴C₂ × 2!, that is 4!/((4 − 2)! 2!) = ⁴C₂ = 12/2 = 6.

CombinationIts 2! permutations
ABAB and BA
ACAC and CA
ADAD and DA
BCBC and CB
BDBD and DB
CDCD and DC

Now 5 different objects A, B, C, D and E, taken 3 at a time. The combinations are ABC, ABD, ABE, BCD, BCE, CDE, ACE, ACD, ADE and BDE: ten of them. Each can be arranged in 3! = 6 ways, so the permutations number ⁵C₃ × 3!. They are also ⁵P₃. So ⁵P₃ = ⁵C₃ × 3!, which gives ⁵C₃ = 5!/((5 − 3)! 3!) = 60/6 = 10.

Theorem 5

ⁿPᵣ = ⁿCᵣ × r!, for 0 < r ≤ n.

Proof. Each of the ⁿCᵣ combinations has r objects, which can be arranged among themselves in r! ways. So the total number of permutations of n different things taken r at a time is ⁿCᵣ × r!. On the other hand, that number is ⁿPᵣ. So ⁿPᵣ = ⁿCᵣ × r!.

Combinations of n different objects, r at a time

It comes from Theorem 5: ⁿCᵣ = ⁿPᵣ/r! = n!/((n − r)! r!).

For a quick value, take r factors counting down from n, and divide by r!: ⁸C₃ = (8 × 7 × 6)/(3 × 2 × 1) = 56.

The book's remarks

  1. From Theorem 5, n!/(n − r)! = ⁿCᵣ × r!, so ⁿCᵣ = n!/(r!(n − r)!). In particular, with r = n, ⁿCₙ = n!/(n! 0!) = 1: there is one way to choose all n objects.
  2. We define ⁿC₀ = 1. Counting combinations is counting the ways of selecting some or all objects; selecting nothing at all is the same as leaving all the objects behind, and there is only one way to do that.
  3. Since n!/(0!(n − 0)!) = 1 = ⁿC₀, the formula ⁿCᵣ = n!/(r!(n − r)!) holds for r = 0 as well, so it holds for 0 ≤ r ≤ n.
  4. ⁿCₙ₋ᵣ = ⁿCᵣ: ⁿCₙ₋ᵣ = n!/((n − r)!(n − (n − r))!) = n!/((n − r)! r!) = ⁿCᵣ. In words: selecting r objects out of n is the same as rejecting the other n − r. Example: ¹²C₁₀ = ¹²C₂ = 66, and the second is far easier to work out.
  5. If , then a = b or a = n − b, that is, n = a + b. Example: ⁿC₉ = ⁿC₈ with 9 ≠ 8 forces n = 9 + 8 = 17 (the book's Example 17).
Theorem 6

ⁿCᵣ + ⁿCᵣ₋₁ = ⁿ⁺¹Cᵣ, for 1 ≤ r ≤ n.

The book's proof. ⁿCᵣ + ⁿCᵣ₋₁ = n!/(r!(n − r)!) + n!/((r − 1)!(n − r + 1)!). Write r! = r × (r − 1)! and (n − r + 1)! = (n − r + 1) × (n − r)!. Both terms then contain the common part n!/((r − 1)!(n − r)!). Taking it out leaves 1/r + 1/(n − r + 1) = (n − r + 1 + r)/(r(n − r + 1)) = (n + 1)/(r(n − r + 1)). Multiplying back gives (n + 1)!/(r!(n + 1 − r)!), which is ⁿ⁺¹Cᵣ.

A counting proof. Choose r objects from n + 1 objects, one of which is special. Either the special object is chosen, and the other r − 1 come from the remaining n (ⁿCᵣ₋₁ ways), or it is not chosen, and all r come from the remaining n (ⁿCᵣ ways). The two cases are separate and cover everything, so ⁿ⁺¹Cᵣ = ⁿCᵣ + ⁿCᵣ₋₁.

111121133114641151010511615201561
Pascal's triangle: row n lists ⁿC₀, ⁿC₁, ..., ⁿCₙ, and each number is the sum of the two above it. The arrows show ⁵C₂ + ⁵C₃ = ⁶C₃, that is 10 + 10 = 20 (Theorem 6).

Pascal's triangle puts Theorem 6 in a picture: each row lists ⁿC₀, ⁿC₁, ..., ⁿCₙ, and each number is the sum of the two numbers above it. Each row also reads the same from both ends, which is Remark 4.

Permutation or combination?

QuestionDoes order matter?Count with
A committee of 3 from 10 peopleno¹⁰C₃
A president, a secretary and a treasurer from 10yes (different posts)¹⁰P₃
Handshakes among 12 peopleno¹²C₂
Signals of 2 flags, one above the otheryes⁵P₂ (5 flags)
A hand of 5 cardsno⁵²C₅

One test

Swap two of the chosen objects. If the result is a different outcome, order matters and you are counting permutations; if it is the same outcome, you are counting combinations.

Five kinds of worked example

Worked example 87

Direct: find ⁸C₃ and ⁹C₄.

What we know: ⁿCᵣ = n!/(r!(n − r)!).

What we need: Two values.

The plan: r factors counting down from n, divided by r!.

  1. ⁸C₃ = (8 × 7 × 6)/(3 × 2 × 1) = 336/6 = 56.
  2. ⁹C₄ = (9 × 8 × 7 × 6)/(4 × 3 × 2 × 1) = 3024/24 = 126.

⁸C₃ = 56 and ⁹C₄ = 126.

Check: ⁸C₃ = ⁸P₃/3! = 336/6 = 56, by Theorem 5.

Worked example 88

Story: Kabir in Bhopal has 9 friends and can take 4 of them to a cricket match. In how many ways can he choose the 4 friends?

What we know: 9 different friends; a group of 4; the order of choosing does not matter.

What we need: The number of groups.

The plan: Combinations: ⁹C₄.

  1. ⁹C₄ = 126, from the worked example above.

126 ways.

Check: If the 4 seats were numbered and each friend got a particular seat, order would matter and the count would be ⁹P₄ = 3024 = 126 × 4!.

Worked example 89

Picture: seven points lie on a circle, as in the figure. How many chords join them? How many triangles have three of the points as corners?

What we know: A chord is fixed by its 2 end points; a triangle by its 3 corners; order does not matter. No three points on a circle lie on a line.

What we need: The two counts.

The plan: ⁷C₂ for chords, ⁷C₃ for triangles.

  1. Chords: ⁷C₂ = (7 × 6)/2 = 21.
  2. Triangles: ⁷C₃ = (7 × 6 × 5)/6 = 35.

21 chords and 35 triangles.

Check: Each point is the end of 6 chords, and 7 × 6 = 42 counts every chord twice (once from each end): 42/2 = 21.

Worked example 90

Reverse: a group of people shake hands, each with every other once, and there are 28 handshakes. How many people are there?

What we know: Handshakes = ⁿC₂ = n(n − 1)/2 = 28.

What we need: n.

The plan: Solve n(n − 1) = 56.

  1. n(n − 1) = 56, so n² − n − 56 = 0, that is (n − 8)(n + 7) = 0.
  2. n = 8 (n = −7 is impossible).

8 people.

Check: ⁸C₂ = (8 × 7)/2 = 28.

Worked example 91

Exam: show that a polygon with n sides has n(n − 3)/2 diagonals, and find the number for a decagon (10 sides).

What we know: Any 2 of the n corners can be joined by a segment; n of these segments are sides, and the rest are diagonals.

What we need: A formula, then a value.

The plan: Diagonals = ⁿC₂ − n.

  1. ⁿC₂ − n = n(n − 1)/2 − n = (n² − n − 2n)/2 = n(n − 3)/2.
  2. Decagon: 10 × 7/2 = 35.

n(n − 3)/2; a decagon has 35 diagonals.

Check: A hexagon: 6 × 3/2 = 9 diagonals (⁶C₂ − 6 = 15 − 6 = 9). From each corner, 3 diagonals go out in a hexagon, and 6 × 3 = 18 counts each diagonal twice: 9.

Worked example 92

A path that fails: 12 people each shake hands with every other person once. How many handshakes?

What we know: 12 different people; a handshake is a pair.

What we need: The number of handshakes.

The plan: First try counting with permutations, then see what goes wrong.

  1. The path that fails: each of the 12 people shakes 11 hands, so 12 × 11 = 132 handshakes (this is ¹²P₂).
  2. Why it fails: the handshake of X with Y was counted once for X and once for Y. Order does not matter, so every handshake is counted twice.
  3. The right path: ¹²C₂ = 132/2! = 66.

66 handshakes.

Check: Theorem 5: ¹²P₂ = ¹²C₂ × 2!, so 132 = 66 × 2.

The book's examples

Example 17 (from the book)

If ⁿC₉ = ⁿC₈, find ⁿC₁₇.

What we know: ⁿC₉ = n!/(9!(n − 9)!) and ⁿC₈ = n!/((n − 8)! 8!).

What we need: n, then ⁿC₁₇.

The plan: Set the two equal, cancel, and solve; or use Remark 5.

  1. n!/(9!(n − 9)!) = n!/((n − 8)! 8!).
  2. Write 9! = 9 × 8! and (n − 8)! = (n − 8)(n − 9)!, then cancel n!, 8! and (n − 9)!: 1/9 = 1/(n − 8).
  3. So n − 8 = 9 and n = 17.
  4. ⁿC₁₇ = ¹⁷C₁₇ = 1.

n = 17 and ⁿC₁₇ = 1.

Check: Remark 5: ⁿC₉ = ⁿC₈ with 9 ≠ 8 needs n = 9 + 8 = 17. And ¹⁷C₉ = ¹⁷C₈ = 24,310, since ¹⁷C₉ = ¹⁷C₁₇₋₉.

Example 18 (from the book)

A committee of 3 persons is to be constituted from a group of 2 men and 3 women. In how many ways can this be done? How many of these committees would consist of 1 man and 2 women?

What we know: 5 different people; a committee is a group; order does not matter.

What we need: All committees of 3, and those with 1 man and 2 women.

The plan: ⁵C₃ for all; for the second, choose the man and the women separately and multiply.

  1. All committees: ⁵C₃ = 5!/(3! 2!) = (4 × 5)/2 = 10.
  2. 1 man from 2: ²C₁ = 2 ways. 2 women from 3: ³C₂ = 3 ways.
  3. By the multiplication principle: 2 × 3 = 6.

10 committees, of which 6 have 1 man and 2 women.

Check: The other 10 − 6 = 4 committees have 2 men and 1 woman (²C₂ × ³C₁ = 3) or 3 women (³C₃ = 1): 3 + 1 = 4.

Example 19 (from the book)

What is the number of ways of choosing 4 cards from a pack of 52 playing cards? In how many of these: (i) are the four cards of the same suit? (ii) do the four cards belong to four different suits? (iii) are they face cards? (iv) are two cards red and two black? (v) are the cards of the same colour?

What we know: 52 cards, 4 suits of 13; 26 red and 26 black; 12 face cards. A hand is a selection: order does not matter.

What we need: The total and five counts.

The plan: Combinations for each choice, the multiplication principle for steps, the addition principle for separate cases.

  1. All hands: ⁵²C₄ = 52!/(4! 48!) = (49 × 50 × 51 × 52)/(2 × 3 × 4) = 2,70,725.
  2. (i) 4 cards from one suit: ¹³C₄ = 715 ways for each suit; the 4 suits are separate cases: 715 + 715 + 715 + 715 = 4 × 715 = 2860.
  3. (ii) 1 card from each suit: ¹³C₁ × ¹³C₁ × ¹³C₁ × ¹³C₁ = 13⁴ = 28,561.
  4. (iii) 4 of the 12 face cards: ¹²C₄ = 12!/(4! 8!) = 495.
  5. (iv) 2 of the 26 red and 2 of the 26 black: ²⁶C₂ × ²⁶C₂ = 325 × 325 = 1,05,625.
  6. (v) 4 red or 4 black: ²⁶C₄ + ²⁶C₄ = 2 × 14,950 = 29,900.

2,70,725 hands; (i) 2860; (ii) 28,561; (iii) 495; (iv) 1,05,625; (v) 29,900.

Check: (i) and (v) add separate cases (a suit, a colour); (ii) and (iv) multiply steps (a card from each suit, then the colours). The book writes (ii) as 13⁴.

Using ⁿPᵣ for a selection

Choosing a committee of 3 from 10 people as ¹⁰P₃ = 720 counts each committee 3! = 6 times, once for every order in which its members could be named. The right count is ¹⁰C₃ = 720/6 = 120.

How to remember which is which

P is for positions: a permutation puts things into places, such as gold, silver and bronze, or the letters of a word. C is for choosing a group, such as a committee or a hand of cards, where nobody has a place of their own. And the two are linked by one fact: every choice of r things can be put in order in r! ways, so ⁿPᵣ = ⁿCᵣ × r!.

When you are stuck: combinations

Apply the swap test: if swapping two chosen objects gives the same outcome, use ⁿCᵣ.

Split the choice into steps (men, then women; red, then black) and multiply.

Split "or" into separate cases (each suit, each colour) and add.

Use ⁿCᵣ = ⁿCₙ₋ᵣ when r is large: ⁵⁰C₄₈ = ⁵⁰C₂.

Worked example 93

Ten points lie in a plane. Four of them lie on one straight line, and no three of the others lie on a line (nor with two of the four). How many straight lines and how many triangles do the points give?

What we know: Two points fix a line; three points fix a triangle unless they lie on one line.

What we need: The number of lines and of triangles.

The plan: Count as if no three were in a line, then correct for the 4 points on one line.

  1. Lines: ¹⁰C₂ = 45 pairs. The ⁴C₂ = 6 pairs of the four points all give the same line, so remove 6 and add 1 back: 45 − 6 + 1 = 40.
  2. Triangles: ¹⁰C₃ = 120 triples. The ⁴C₃ = 4 triples of the four points lie on a line and make no triangle: 120 − 4 = 116.

40 lines and 116 triangles.

Check: With 10 points and no three in a line there would be 45 lines and 120 triangles; the four points in a line take away 5 lines and 4 triangles.

Worked example 94

A team of 6 is chosen from 7 boys and 5 girls. In how many ways can it have exactly 2 girls?

What we know: Exactly 2 girls means 2 girls and 4 boys.

What we need: The count.

The plan: Choose the girls and the boys; multiply.

  1. Girls: ⁵C₂ = 10.
  2. Boys: ⁷C₄ = 35.
  3. Teams = 10 × 35 = 350.

350.

Check: 2 + 4 = 6 members. ⁷C₄ = ⁷C₃ = 35, which is quicker to work out.

Worked example 95

Find ⁵C₀ + ⁵C₁ + ⁵C₂ + ⁵C₃ + ⁵C₄ + ⁵C₅ and explain the answer.

What we know: ⁿCᵣ counts the subsets of size r of a set of n elements.

What we need: The sum and a reason.

The plan: Add the row of Pascal's triangle; then compare with the number of subsets.

  1. 1 + 5 + 10 + 10 + 5 + 1 = 32.
  2. The sum counts the subsets of a 5-element set of every size from 0 to 5, that is, all the subsets.
  3. A set of 5 elements has 2⁵ = 32 subsets (Chapter 1).

32 = 2⁵.

Check: In general ⁿC₀ + ⁿC₁ + ... + ⁿCₙ = 2ⁿ; the row sums of Pascal's triangle are 1, 2, 4, 8, 16, 32, 64.

Worked example 96

Story: a teacher in Shillong picks a group of 3 students from a class of 30 for a science project. In how many ways?

What we know: 30 students; a group of 3; order does not matter.

What we need: The count.

The plan: ³⁰C₃.

  1. ³⁰C₃ = (30 × 29 × 28)/(3 × 2 × 1) = 24,360/6 = 4060.

4060 groups.

Check: If the 3 students got different roles (leader, writer, speaker), the count would be ³⁰P₃ = 24,360 = 4060 × 3!.

Worked example 97

Picture: how many rectangles can be seen in the grid drawn in section 6.3.4 (4 squares across, 3 up)?

What we know: The grid is made of 5 vertical lines and 4 horizontal lines. A rectangle is fixed by choosing 2 of the vertical lines and 2 of the horizontal lines.

What we need: The number of rectangles (of every size).

The plan: Choose the two pairs of lines; multiply.

  1. Vertical sides: ⁵C₂ = 10 ways.
  2. Horizontal sides: ⁴C₂ = 6 ways.
  3. Rectangles = 10 × 6 = 60.

60 rectangles, squares included.

Check: The 12 small squares are among them: choosing neighbouring lines both ways gives 4 × 3 = 12.

Worked example 98

How many 5-letter words of 3 consonants and 2 vowels can be formed from 7 different consonants and 4 different vowels?

What we know: 7 consonants, 4 vowels; each word uses 5 different letters.

What we need: The count.

The plan: Select, then arrange.

  1. Consonants: ⁷C₃ = 35. Vowels: ⁴C₂ = 6.
  2. Selections: 35 × 6 = 210.
  3. Arrangements of each: 5! = 120.
  4. Words = 210 × 120 = 25,200.

25,200.

Check: The selection step uses combinations and the arrangement step uses factorials, exactly as in Example 20.

Worked example 99

How many 3-digit numbers have their digits in strictly increasing order, such as 147?

What we know: Increasing digits cannot include 0 (it would have to come first).

What we need: The count.

The plan: Choosing 3 different digits from 1 to 9 gives exactly one increasing number: a selection, not an arrangement.

  1. ⁹C₃ = (9 × 8 × 7)/6 = 84.

84.

Check: The digits {1, 4, 7} can only be written in increasing order as 147, so each selection gives one number, and order does not need counting.

Worked example 100

In how many ways can 12 students be divided into a group of 5 and a group of 7?

What we know: Choosing the group of 5 decides the group of 7 (the rest).

What we need: The count.

The plan: ¹²C₅.

  1. ¹²C₅ = (12 × 11 × 10 × 9 × 8)/120 = 95,040/120 = 792.

792 ways.

Check: Choosing the group of 7 instead gives ¹²C₇ = 792 too, as Remark 4 says it must.

Worked example 101

A box has 10 bulbs, of which 4 are defective. In how many ways can 3 bulbs be chosen so that at least one is defective?

What we know: 6 good and 4 defective bulbs; a choice of 3.

What we need: The choices with at least one defective bulb.

The plan: All choices minus the choices with no defective bulb.

  1. All: ¹⁰C₃ = 120.
  2. No defective (all good): ⁶C₃ = 20.
  3. At least one defective: 120 − 20 = 100.

100.

Check: By cases: 1 defective ⁴C₁ × ⁶C₂ = 60; 2 defective ⁴C₂ × ⁶C₁ = 36; 3 defective ⁴C₃ = 4. 60 + 36 + 4 = 100.

Worked example 102

How many ways are there to choose 2 cards from a pack of 52 so that they form a pair (two cards of the same rank, such as two kings)?

What we know: 13 ranks, 4 cards of each rank.

What we need: The count.

The plan: Choose the rank, then 2 of its 4 cards.

  1. Rank: 13 ways.
  2. Two cards of that rank: ⁴C₂ = 6 ways.
  3. Pairs = 13 × 6 = 78.

78.

Check: All 2-card choices number ⁵²C₂ = 1326; pairs are 78 of them, about 1 in 17.

Worked example 103

A path that fails: in how many ways can 2 boys and 2 girls be chosen from 5 boys and 4 girls?

What we know: A choice of people: order does not matter.

What we need: The count.

The plan: First try permutations, then see the error.

  1. The path that fails: ⁵P₂ × ⁴P₂ = 20 × 12 = 240. It counts each group 2! × 2! = 4 times, once for each order of naming the boys and the girls.
  2. The right path: ⁵C₂ × ⁴C₂ = 10 × 6 = 60.

60.

Check: 240/4 = 60, which confirms that the failing path overcounted each group exactly 4 times.

Worked example 104

A committee of 5 is to be chosen from 6 men and 6 women. One particular woman must be on it, and one particular man must not. In how many ways?

What we know: 12 people; 1 is already in, 1 is out; 10 remain for the other 4 places.

What we need: The count.

The plan: Remove the forced choices first, then choose freely: ¹⁰C₄.

  1. ¹⁰C₄ = (10 × 9 × 8 × 7)/24 = 5040/24 = 210.

210.

Check: The men and women are not counted separately because the question puts no condition on how many of each; only the two particular people are fixed.

Your turn

In how many ways can a committee of 3 be chosen from 10 people?Tap to reveal
  1. Order does not matter: ¹⁰C₃ = (10 × 9 × 8)/6 = 120.

120 ways.

Eight points lie in a plane, no three of them on one straight line. How many triangles have their corners at three of these points?Tap to reveal
  1. A triangle is fixed by its 3 corners, and order does not matter.
  2. ⁸C₃ = (8 × 7 × 6)/(3 × 2 × 1) = 336/6 = 56.
  3. Since no three points are on a line, every choice of 3 points gives a real triangle.

56 triangles.

Find ¹⁵C₁₃.Tap to reveal
  1. ¹⁵C₁₃ = ¹⁵C₂ (Remark 4).
  2. ¹⁵C₂ = (15 × 14)/2 = 105.

105.

In one line

ⁿCᵣ = n!/(r!(n − r)!) counts selections; ⁿPᵣ = ⁿCᵣ × r!; ⁿCᵣ = ⁿCₙ₋ᵣ; ⁿCᵣ + ⁿCᵣ₋₁ = ⁿ⁺¹Cᵣ.

Ex 6.4Exercise 6.4, solved in full

Every answer below agrees with the book's answer key. In every question, first decide that order does not matter (a selection), then split the selection into steps and multiply.

1. If ⁿC₈ = ⁿC₂, find ⁿC₂.Tap to reveal

What we know: Remark 5: ⁿCₖ = ⁿCₘ with k ≠ m means n = k + m.

The plan: Find n from the remark, then work out ⁿC₂.

  1. 8 ≠ 2, so n = 8 + 2 = 10.
  2. ¹⁰C₂ = (10 × 9)/2 = 45.

ⁿC₂ = 45 (with n = 10).

Check: ¹⁰C₈ = ¹⁰C₁₀₋₈ = ¹⁰C₂, so the two given numbers really are equal when n = 10. Choosing 8 of 10 objects is the same as leaving out the other 2, which is why the two counts agree.

Another way: Without the remark: n!/(8!(n − 8)!) = n!/(2!(n − 2)!) gives 8!(n − 8)! = 2!(n − 2)!, which holds for n = 10, since both sides are then 8! × 2!.

2. Determine n if (i) ²ⁿC₃ : ⁿC₃ = 12 : 1 (ii) ²ⁿC₃ : ⁿC₃ = 11 : 1.Tap to reveal

What we know: ²ⁿC₃ = 2n(2n − 1)(2n − 2)/6 and ⁿC₃ = n(n − 1)(n − 2)/6, with n ≥ 3.

The plan: Divide the two, cancel the common factors, and solve each linear equation.

  1. ²ⁿC₃/ⁿC₃ = 2n(2n − 1) × 2(n − 1)/(n(n − 1)(n − 2)) = 4(2n − 1)/(n − 2), cancelling n and (n − 1).
  2. (i) 4(2n − 1)/(n − 2) = 12: 8n − 4 = 12n − 24, so 4n = 20 and n = 5.
  3. (ii) 4(2n − 1)/(n − 2) = 11: 8n − 4 = 11n − 22, so 3n = 18 and n = 6.

(i) n = 5; (ii) n = 6.

Check: (i) ¹⁰C₃ = 120 and ⁵C₃ = 10, and 120 = 12 × 10. (ii) ¹²C₃ = 220 and ⁶C₃ = 20, and 220 = 11 × 20.

3. How many chords can be drawn through 21 points on a circle?Tap to reveal

What we know: A chord joins 2 of the points; the chord AB is the chord BA; no three points of a circle lie on one line, so different pairs give different chords.

The plan: Count the pairs: ²¹C₂.

  1. ²¹C₂ = (21 × 20)/2 = 210.

210 chords.

Check: Each point is the end of 20 chords; 21 × 20 = 420 counts every chord twice, once from each end, so there are 420/2 = 210. The figure of section 6.4 shows the same idea with 7 points and 21 chords.

4. In how many ways can a team of 3 boys and 3 girls be selected from 5 boys and 4 girls?Tap to reveal

What we know: Choose 3 of the 5 boys and 3 of the 4 girls; order does not matter.

The plan: Two steps, boys then girls: multiply.

  1. Boys: ⁵C₃ = 10 ways.
  2. Girls: ⁴C₃ = ⁴C₁ = 4 ways.
  3. Team = 10 × 4 = 40.

40 ways.

Check: ⁴C₃ = 4 because choosing 3 of 4 girls is the same as leaving out 1 of them, which can be done in 4 ways. Every choice of boys goes with every choice of girls, so the counts multiply.

5. Find the number of ways of selecting 9 balls from 6 red balls, 5 white balls and 5 blue balls if each selection consists of 3 balls of each colour.Tap to reveal

What we know: The balls are taken as different objects (as the key does); 3 red from 6, 3 white from 5, 3 blue from 5.

The plan: Three steps, one for each colour: multiply.

  1. Red: ⁶C₃ = 20.
  2. White: ⁵C₃ = 10.
  3. Blue: ⁵C₃ = 10.
  4. Selections = 20 × 10 × 10 = 2000.

2000.

Check: 3 + 3 + 3 = 9 balls, as required. If balls of one colour could not be told apart, there would be only 1 way per colour; the answer 2000 shows that the book treats every ball as different.

6. Determine the number of 5-card combinations out of a deck of 52 cards if there is exactly one ace in each combination.Tap to reveal

What we know: 4 aces and 48 other cards; exactly one ace means 1 ace and 4 non-aces.

The plan: Choose the ace, then the other 4 cards from the 48 non-aces; multiply.

  1. The ace: ⁴C₁ = 4 ways.
  2. The other 4 cards: ⁴⁸C₄ = (48 × 47 × 46 × 45)/24 = 1,94,580.
  3. Hands = 4 × 1,94,580 = 7,78,320.

7,78,320.

Check: The 4 other cards must come from the 48 non-aces, not from all 51 cards left, or a second ace could sneak in and the hand would no longer have exactly one ace. All 5-card hands number ⁵²C₅ = 25,98,960, so about 30% have exactly one ace.

7. In how many ways can one select a cricket team of eleven from 17 players in which only 5 players can bowl, if each cricket team of 11 must include exactly 4 bowlers?Tap to reveal

What we know: 5 bowlers and 12 other players; the team has exactly 4 bowlers and so 7 others.

The plan: Choose the bowlers, then the others; multiply.

  1. Bowlers: ⁵C₄ = 5.
  2. Others: ¹²C₇ = ¹²C₅ = (12 × 11 × 10 × 9 × 8)/120 = 792.
  3. Teams = 5 × 792 = 3960.

3960.

Check: 4 + 7 = 11 players and 5 + 12 = 17 players, so the numbers fit. Using ¹²C₅ instead of ¹²C₇ kept the working short: choosing 7 of the 12 is the same as leaving out 5.

8. A bag contains 5 black and 6 red balls. Determine the number of ways in which 2 black and 3 red balls can be selected.Tap to reveal

What we know: The balls are different objects; 2 black from 5 and 3 red from 6.

The plan: Two steps: multiply.

  1. Black: ⁵C₂ = 10.
  2. Red: ⁶C₃ = 20.
  3. Selections = 10 × 20 = 200.

200.

Check: Both choices are selections, because the order in which the balls come out of the bag does not matter. A different question, drawing 5 balls in order, would need permutations and give a much larger number.

9. In how many ways can a student choose a programme of 5 courses if 9 courses are available and 2 specific courses are compulsory for every student?Tap to reveal

What we know: 2 of the 5 courses are fixed; the other 3 come from the 9 − 2 = 7 courses left.

The plan: Only the free choices count: ⁷C₃.

  1. ⁷C₃ = (7 × 6 × 5)/6 = 35.

35 programmes.

Check: A path that fails is ⁹C₅ = 126: it counts programmes that leave out a compulsory course. Fixing the compulsory courses first leaves a smaller, honest choice of 3 from 7.

When you are stuck: Exercise 6.4

Write the groups (bowlers and others, aces and non-aces, black and red) and how many to take from each.

Check that the numbers add up to the team, hand or programme size.

Use ⁿCᵣ = ⁿCₙ₋ᵣ to keep the working short.

MiscMiscellaneous Examples

The book ends the chapter with five examples that mix every idea: selection followed by arrangement, "at least", dictionary order, repeated digits, and gaps.

Example 20 (from the book)

How many words, with or without meaning, each of 3 vowels and 2 consonants can be formed from the letters of the word INVOLUTE?

What we know: INVOLUTE has 4 vowels (I, O, U, E) and 4 consonants (N, V, L, T), all different.

What we need: The number of 5-letter words with 3 vowels and 2 consonants.

The plan: First select the letters (combinations), then arrange each selection (permutations).

  1. Select 3 vowels from 4: ⁴C₃ = 4 ways.
  2. Select 2 consonants from 4: ⁴C₂ = 6 ways.
  3. Selections of letters: 4 × 6 = 24.
  4. Each selection of 5 different letters can be arranged in 5! = 120 ways.
  5. Words = 24 × 120 = 2880.

2880 words.

Check: Select, then arrange: ⁴C₃ × ⁴C₂ × 5! = 2880. Choosing the letters and arranging them are separate steps, so the counts multiply.

Example 21 (from the book)

A group consists of 4 girls and 7 boys. In how many ways can a team of 5 members be selected if the team has (i) no girl? (ii) at least one boy and one girl? (iii) at least 3 girls?

What we know: 4 girls and 7 boys; a team of 5; order does not matter.

What we need: Three counts.

The plan: Split "at least" into separate cases by the number of girls, count each case by multiplying, then add.

  1. (i) 5 boys from 7: ⁷C₅ = 21.
  2. (ii) The team can have 1 boy and 4 girls, 2 and 3, 3 and 2, or 4 and 1: ⁷C₁ × ⁴C₄ + ⁷C₂ × ⁴C₃ + ⁷C₃ × ⁴C₂ + ⁷C₄ × ⁴C₁ = 7 + 84 + 210 + 140 = 441.
  3. (iii) 3 girls and 2 boys, or 4 girls and 1 boy (not 5 girls: there are only 4): ⁴C₃ × ⁷C₂ + ⁴C₄ × ⁷C₁ = 84 + 7 = 91.

(i) 21; (ii) 441; (iii) 91.

Check: (ii) another way: all teams ¹¹C₅ = 462, minus all-boy teams (21), minus all-girl teams (0, since there are only 4 girls): 462 − 21 = 441.

"At least" and "at most"

Break the condition into exact cases (exactly 3 girls, exactly 4 girls), count each, and add. Or count everything and subtract the cases that break the condition. The second way is quicker when the bad cases are few.

Example 22 (from the book)

Find the number of words with or without meaning which can be made using all the letters of the word AGAIN. If these words are written as in a dictionary, what will be the 50th word?

What we know: AGAIN has 5 letters, A twice; the others G, I, N once. In dictionary order the first letters run A, G, I, N.

What we need: The number of words, and the 50th one.

The plan: Count the words starting with each letter in turn, until the total passes 50.

  1. All words: 5!/2! = 60.
  2. Starting with A: the other letters G, A, I, N are all different: 4! = 24 words (words 1 to 24).
  3. Starting with G: the other letters A, A, I, N: 4!/2! = 12 words (words 25 to 36).
  4. Starting with I: the other letters A, A, G, N: 12 words (words 37 to 48).
  5. So the words starting with N begin at word 49. In order they are NAAGI, NAAIG, ...
  6. The 49th word is NAAGI and the 50th is NAAIG.

60 words; the 50th is NAAIG.

Check: After N, the letters A, A, G, I in dictionary order give AAGI first and AAIG second, so NAAGI is word 49 and NAAIG is word 50.

Example 23 (from the book)

How many numbers greater than 10,00,000 can be formed by using the digits 1, 2, 0, 2, 4, 2, 4?

What we know: 7 digits: 2 three times, 4 twice, 1 and 0 once. A number greater than 10,00,000 that uses all 7 digits is a 7-digit number not starting with 0.

What we need: The number of such numbers.

The plan: Count by the first digit (1, 2 or 4), arranging the other 6 digits with Theorem 4; then add.

  1. Starting with 1: the rest 0, 2, 2, 2, 4, 4: 6!/(3! 2!) = 60.
  2. Starting with 2: the rest 1, 0, 2, 2, 4, 4: 6!/(2! 2!) = 180.
  3. Starting with 4: the rest 1, 0, 2, 2, 2, 4: 6!/3! = 120.
  4. Total = 60 + 180 + 120 = 360.

360 numbers.

Check: Every arrangement starting with 1, 2 or 4 is a 7-digit number of at least 10,00,000, and it cannot equal 10,00,000, which would need six 0's. So "greater than" adds no further condition.

Another way: The book's alternative: all 7-digit arrangements 7!/(3! 2!) = 420, minus those starting with 0: 6!/(3! 2!) = 60; 420 − 60 = 360.

The book's Note on repeated digits

When a digit is repeated in the given list, each number may use it only as many times as it appears. In Example 23, 1 and 0 can be used once each, while 2 can be used 3 times and 4 can be used 2 times.

Example 24 (from the book)

In how many ways can 5 girls and 3 boys be seated in a row so that no two boys are together?

GGGGG×1×2×3×4×5×6
Example 24: seat the 5 girls first; the 3 boys go into 3 of the 6 places marked ×, so no two boys can sit together.

What we know: 8 different people; no two boys side by side.

What we need: The number of seatings.

The plan: Seat the girls first; then put the boys in the gaps, at most one boy per gap.

  1. The 5 girls can be seated in 5! = 120 ways.
  2. They leave 6 places marked × in the figure: before the first girl, between neighbours, and after the last.
  3. The 3 boys take 3 of these 6 places, in order (the boys are different): ⁶P₃ = 6 × 5 × 4 = 120 ways.
  4. Total = 5! × ⁶P₃ = 120 × 120 = 14,400.

14,400 ways.

Check: With one boy in each chosen gap, at least one girl separates any two boys, so no two boys are together; and every good seating arises this way exactly once.

When you are stuck: the Miscellaneous Examples

Select first, then arrange when a question asks for words made from some of the letters.

Dictionary order: count the words for each first letter in order until you pass the position you want, then repeat inside that block.

"No two together": place the other objects first, then use the gaps.

Worked example 105

Exam: if all the arrangements of the letters of MOTHER are listed in dictionary order, at what position does MOTHER come?

What we know: MOTHER has 6 different letters; in alphabetical order they are E, H, M, O, R, T.

What we need: The rank of MOTHER.

The plan: Count the words that come before it, block by block, then add 1.

  1. Words starting with E or H: 5! + 5! = 240.
  2. Words starting with M then E or H (before MO): 4! + 4! = 48.
  3. Words starting with MO then E, H or R (before MOT): 3 × 3! = 18.
  4. Words starting with MOT then E (before MOTH): 2! = 2.
  5. Words starting with MOTH: MOTHER comes first, since E comes before R. So 1 word (MOTHER itself) is next.
  6. Words before MOTHER: 240 + 48 + 18 + 2 = 308. MOTHER is word 309.

309th.

Check: Every block was counted with the letters still unused at that point. A listing of all 720 words in dictionary order puts MOTHER at position 309.

Another way: The same block-by-block method answered Example 22 (AGAIN).

Worked example 106

In how many ways can 6 boys and 4 girls stand in a line so that no two girls are next to each other?

What we know: 10 different people; no two girls adjacent.

What we need: The count.

The plan: The gap method of Example 24: place the boys, then the girls in the gaps.

  1. Boys in a line: 6! = 720.
  2. They leave 7 gaps (5 between them and 2 at the ends).
  3. The 4 different girls take 4 of the 7 gaps, in order: ⁷P₄ = 7 × 6 × 5 × 4 = 840.
  4. Total = 720 × 840 = 6,04,800.

6,04,800.

Check: If there were more girls than gaps (8 girls, 7 gaps), the answer would be 0: always check that the gaps are enough.

Worked example 107

How many words of 3 vowels and 3 consonants can be made from the letters of EQUATION?

What we know: EQUATION: 5 vowels (E, U, A, I, O) and 3 consonants (Q, T, N), all different.

What we need: The number of 6-letter words.

The plan: Select, then arrange (as in Example 20).

  1. Vowels: ⁵C₃ = 10.
  2. Consonants: ³C₃ = 1 (all three).
  3. Arrangements of the 6 chosen letters: 6! = 720.
  4. Words = 10 × 1 × 720 = 7200.

7200 words.

Check: Leaving out 2 vowels is the same as choosing 3: ⁵C₂ = ⁵C₃ = 10.

Worked example 108

If the arrangements of the letters of SACHIN are written in dictionary order, at what position is SACHIN?

What we know: The letters in alphabetical order are A, C, H, I, N, S, all different.

What we need: The rank of SACHIN.

The plan: Count the words before it.

  1. Words starting with A, C, H, I or N: 5 × 5! = 600.
  2. Words starting with S: the first is S followed by A, C, H, I, N in alphabetical order, which is SACHIN itself.
  3. So SACHIN is word 600 + 1 = 601.

601st.

Check: SACHIN is the very first word beginning with S, because after S its letters A, C, H, I, N are already in alphabetical order.

Worked example 109

A committee of 5 is chosen from 6 men and 4 women and must include at least 2 women. In how many ways?

What we know: Cases: 2, 3 or 4 women (there are only 4).

What we need: The count.

The plan: Count each case and add; check by subtraction.

  1. 2 women, 3 men: ⁴C₂ × ⁶C₃ = 6 × 20 = 120.
  2. 3 women, 2 men: ⁴C₃ × ⁶C₂ = 4 × 15 = 60.
  3. 4 women, 1 man: ⁴C₄ × ⁶C₁ = 1 × 6 = 6.
  4. Total = 120 + 60 + 6 = 186.

186.

Check: All committees ¹⁰C₅ = 252, minus no women (⁶C₅ = 6), minus exactly 1 woman (⁴C₁ × ⁶C₄ = 60): 252 − 6 − 60 = 186.

Worked example 110

In how many arrangements of the letters of ALLAHABAD are the four A's together?

What we know: ALLAHABAD: A four times, L twice; H, B, D once.

What we need: The count.

The plan: Glue the four A's into one block (one inside order, since they are alike), then arrange the block with the other 5 letters.

  1. Objects: AAAA, L, L, H, B, D: 6 objects with L twice.
  2. 6!/2! = 720/2 = 360.

360.

Check: All arrangements of ALLAHABAD number 7560 (Example 9); 360 of them, about 1 in 21, keep the A's together.

Worked example 111

In how many arrangements of the letters of INDIA are the two I's not together?

What we know: INDIA: I twice; N, D, A once.

What we need: The count.

The plan: All arrangements minus those with the I's glued together.

  1. All: 5!/2! = 60.
  2. I's together: the II block with N, D, A makes 4 objects: 4! = 24.
  3. Apart: 60 − 24 = 36.

36.

Check: With only two I's, "not together" is the same as "no two together", so this subtraction gives the strict count.

Your turn

How many 4-letter words of 2 vowels and 2 consonants can be made from the letters of INVOLUTE?Tap to reveal
  1. ⁴C₂ × ⁴C₂ = 6 × 6 = 36 selections.
  2. Each can be arranged in 4! = 24 ways: 36 × 24 = 864.

864 words.

In one line

Select, then arrange; split "at least" into exact cases; count dictionary blocks in order; use gaps for "no two together".

Misc ExMiscellaneous Exercise on Chapter 6, solved in full

Every answer below agrees with the book's answer key. Most questions here first select and then arrange, or split a condition into cases.

1. How many words, with or without meaning, each of 2 vowels and 3 consonants can be formed from the letters of the word DAUGHTER?Tap to reveal

What we know: DAUGHTER has 3 vowels (A, U, E) and 5 consonants (D, G, H, T, R), all different.

The plan: Select the letters, then arrange each selection.

  1. Vowels: ³C₂ = 3 ways.
  2. Consonants: ⁵C₃ = 10 ways.
  3. Selections: 3 × 10 = 30, each of 5 different letters.
  4. Each selection can be arranged in 5! = 120 ways.
  5. Words = 30 × 120 = 3600.

3600 words.

Check: This is the method of Example 20: choose, then arrange. Forgetting the arrangement step would give only 30, which counts sets of letters, not words.

2. How many words, with or without meaning, can be formed using all the letters of the word EQUATION at a time so that the vowels and consonants occur together?Tap to reveal

What we know: EQUATION has 5 vowels (E, U, A, I, O) and 3 consonants (Q, T, N), all different.

The plan: Glue the vowels into one block and the consonants into another; arrange the 2 blocks, then the letters inside each.

  1. The two blocks can be arranged in 2! = 2 ways (vowels first or consonants first).
  2. Inside the vowel block: 5! = 120 ways.
  3. Inside the consonant block: 3! = 6 ways.
  4. Words = 2 × 120 × 6 = 1440.

1440 words.

Check: All arrangements of EQUATION number 8! = 40,320, and only 1440 of them keep both groups together: about 1 in 28, which is reasonable for such a strict condition.

3. A committee of 7 has to be formed from 9 boys and 4 girls. In how many ways can this be done when the committee consists of (i) exactly 3 girls? (ii) at least 3 girls? (iii) at most 3 girls?Tap to reveal

What we know: 9 boys and 4 girls; a committee of 7; order does not matter.

The plan: Split each condition into exact cases by the number of girls; multiply within a case and add the cases.

  1. (i) 3 girls and 4 boys: ⁴C₃ × ⁹C₄ = 4 × 126 = 504.
  2. (ii) 3 girls and 4 boys, or 4 girls and 3 boys: 504 + ⁴C₄ × ⁹C₃ = 504 + 1 × 84 = 588.
  3. (iii) 0, 1, 2 or 3 girls: ⁴C₀ × ⁹C₇ + ⁴C₁ × ⁹C₆ + ⁴C₂ × ⁹C₅ + ⁴C₃ × ⁹C₄ = 36 + 336 + 756 + 504 = 1632.

(i) 504; (ii) 588; (iii) 1632.

Check: (iii) another way: all committees ¹³C₇ = 1716, minus the committees with 4 girls (84): 1716 − 84 = 1632. The two methods agree.

4. If the different permutations of all the letters of the word EXAMINATION are listed as in a dictionary, how many words are there in this list before the first word starting with E?Tap to reveal

What we know: EXAMINATION has 11 letters: A, I and N twice each; E, X, M, T and O once each. In the alphabet, only A comes before E among these letters.

The plan: The words before the first E-word are exactly the words starting with A. Fix A first and arrange the other 10 letters.

  1. Fix A; the other 10 letters are E, X, M, I, N, A, T, I, O, N, with I twice and N twice.
  2. Arrangements: 10!/(2! 2!) = 36,28,800/4 = 9,07,200.

9,07,200 words.

Check: After fixing one A, only one A is left, so A no longer counts as repeated; I and N still appear twice each, giving the 2! × 2! in the denominator.

5. How many 6-digit numbers can be formed from the digits 0, 1, 3, 5, 7 and 9 which are divisible by 10 and no digit is repeated?Tap to reveal

What we know: Divisible by 10 means the units digit is 0; six digits, all used once.

The plan: Fix 0 at the units place; arrange the other 5 digits in front.

  1. Units place: 0 (1 way).
  2. The other 5 digits 1, 3, 5, 7, 9 fill the first 5 places: 5! = 120 ways.

120.

Check: Once 0 is at the end, it can no longer be at the front, so no number has a leading zero. Each of the 120 numbers ends in 0 and so is divisible by 10.

6. The English alphabet has 5 vowels and 21 consonants. How many words with two different vowels and 2 different consonants can be formed from the alphabet?Tap to reveal

What we know: 5 vowels and 21 consonants; a word has 2 different vowels and 2 different consonants, so 4 different letters.

The plan: Select the vowels and consonants, then arrange the 4 letters.

  1. Vowels: ⁵C₂ = 10.
  2. Consonants: ²¹C₂ = 210.
  3. Selections: 10 × 210 = 2100.
  4. Arrangements of each: 4! = 24.
  5. Words = 2100 × 24 = 50,400.

50,400 words.

Check: Choose, then arrange, as in Example 20. Because the 4 letters are all different, each selection gives exactly 4! words.

7. In an examination, a question paper consists of 12 questions divided into two parts, Part I and Part II, containing 5 and 7 questions respectively. A student is required to attempt 8 questions in all, selecting at least 3 from each part. In how many ways can a student select the questions?Tap to reveal

What we know: Part I has 5 questions and Part II has 7; 8 in all, at least 3 from each part.

The plan: List the possible splits (Part I, Part II): (3, 5), (4, 4), (5, 3). Count each and add.

  1. (3, 5): ⁵C₃ × ⁷C₅ = 10 × 21 = 210.
  2. (4, 4): ⁵C₄ × ⁷C₄ = 5 × 35 = 175.
  3. (5, 3): ⁵C₅ × ⁷C₃ = 1 × 35 = 35.
  4. Total = 210 + 175 + 35 = 420.

420 ways.

Check: (6, 2) is impossible because Part I has only 5 questions, and (2, 6) breaks the "at least 3" rule. So the three splits are all the cases.

8. Determine the number of 5-card combinations out of a deck of 52 cards if each selection of 5 cards has exactly one king.Tap to reveal

What we know: 4 kings and 48 other cards; exactly one king.

The plan: Choose the king, then 4 cards from the 48 non-kings.

  1. King: ⁴C₁ = 4.
  2. Others: ⁴⁸C₄ = 1,94,580.
  3. Total = ⁴C₁ × ⁴⁸C₄ = 7,78,320.

⁴C₁ × ⁴⁸C₄ = 7,78,320.

Check: The key gives the answer as ⁴C₁ × ⁴⁸C₄; it is the same number as for exactly one ace in Exercise 6.4, because a deck has 4 kings just as it has 4 aces.

9. It is required to seat 5 men and 4 women in a row so that the women occupy the even places. How many such arrangements are possible?Tap to reveal

What we know: 9 places; the even places are 2, 4, 6 and 8 (four of them), and the odd places 1, 3, 5, 7, 9 (five).

The plan: The 4 women fill the 4 even places; the 5 men fill the 5 odd places; multiply.

  1. Women in the even places: 4! = 24 ways.
  2. Men in the odd places: 5! = 120 ways.
  3. Arrangements = 24 × 120 = 2880.

2880.

Check: Four even places and four women match exactly, and five odd places and five men match exactly, so nobody is left over. The two steps are independent, so they multiply.

10. From a class of 25 students, 10 are to be chosen for an excursion party. There are 3 students who decide that either all of them will join or none of them will join. In how many ways can the excursion party be chosen?Tap to reveal

What we know: 25 students, of whom 3 go together or not at all; 22 others.

The plan: Two separate cases: the 3 join, or the 3 do not. Count each and add.

  1. All 3 join: 7 more from the other 22: ²²C₇ = 1,70,544.
  2. None of the 3 joins: 10 from the other 22: ²²C₁₀ = 6,46,646.
  3. Total = ²²C₇ + ²²C₁₀ = 8,17,190.

²²C₇ + ²²C₁₀ = 8,17,190.

Check: The key gives the answer as ²²C₇ + ²²C₁₀. The cases cannot overlap (the 3 either go or do not), so adding is correct.

11. In how many ways can the letters of the word ASSASSINATION be arranged so that all the S's are together?Tap to reveal

What we know: 13 letters: S four times, A three times, I twice, N twice, T and O once each.

The plan: Glue the four S's into one block (one inside order, since they are alike), then arrange the block with the other 9 letters.

  1. Objects: the S-block, A, A, A, I, I, N, N, T, O: 10 objects with A three times, I twice and N twice.
  2. Arrangements = 10!/(3! 2! 2!) = 36,28,800/24 = 1,51,200.

1,51,200.

Check: The S-block has only one inside order because the four S's are alike, so no extra factor is needed, unlike DAUGHTER's vowel block.

When you are stuck: the Miscellaneous Exercise

Select, then arrange when words are made from some of the letters.

Split "at least", "at most" and "all or none" into exact cases and add.

Glue for "together", and remember the inside arrangements, unless the glued objects are alike.

PracticeMixed practice

Ten problems that mix the chapter's ideas. Two of them (B and F) are dead ends, and G shows a path that fails.

A. In how many ways can the letters of KOLKATA be arranged?Tap to reveal

What we know: 7 letters: K twice, A twice; O, L, T once.

The plan: Theorem 4.

  1. 7!/(2! 2!) = 5040/4 = 1260.

1260.

Check: Count the letters: K, O, L, K, A, T, A: seven, with K and A twice each.

B. How many 3-digit numbers greater than 400 can be formed from the digits 1, 2 and 3, without repetition?Tap to reveal

What we know: Only 1, 2 and 3 are available.

The plan: A number greater than 400 needs a hundreds digit of at least 4.

  1. The hundreds digit can only be 1, 2 or 3.
  2. So every number formed is at most 321, which is less than 400.

None: this is a dead end, and the answer is 0.

Check: Before counting, check that the condition can be met at all. A formula would happily give 3! = 6 here, which is wrong.

C. From 6 boys and 4 girls, a committee of 4 is chosen with a president from among its members; the president must be a girl. In how many ways?Tap to reveal

What we know: Choose the president first (a girl), then the other 3 members from the remaining 9 people.

The plan: Two steps: multiply.

  1. President: 4 ways.
  2. Other members: ⁹C₃ = 84.
  3. 4 × 84 = 336.

336 ways.

Check: The other 3 members may be boys or girls; only the president must be a girl.

D. A polygon has 44 diagonals. How many sides does it have?Tap to reveal

What we know: An n-sided polygon has n(n − 3)/2 diagonals.

The plan: Solve n(n − 3)/2 = 44.

  1. n² − 3n = 88, so n² − 3n − 88 = 0.
  2. (n − 11)(n + 8) = 0, so n = 11.

11 sides.

Check: 11 × 8/2 = 44.

E. A coach must choose 11 players from 14. Two particular players must be in the team and one particular player must be left out. In how many ways?Tap to reveal

What we know: 2 places are fixed; 1 player is out; 14 − 3 = 11 players remain for 9 places.

The plan: ⁿCᵣ for the free choice.

  1. ¹¹C₉ = ¹¹C₂ = (11 × 10)/2 = 55.

55 ways.

Check: Exercise 6.4 Q9 used the same idea: fix what is forced, then choose the rest.

F. Find n if ⁿC₂ = 10 and ⁿP₂ = 30.Tap to reveal

What we know: ⁿC₂ = n(n − 1)/2 and ⁿP₂ = n(n − 1).

The plan: Solve each condition and compare.

  1. ⁿC₂ = 10 gives n(n − 1) = 20, so n = 5.
  2. ⁿP₂ = 30 gives n(n − 1) = 30, so n = 6.
  3. No single n satisfies both: by Theorem 5, ⁿP₂ is always 2 × ⁿC₂, and 30 ≠ 2 × 10.

No such n exists: a dead end.

Check: Theorem 5 predicted it at once: ⁿP₂ = 2! × ⁿC₂ = 20 whenever ⁿC₂ = 10.

G. A committee of 3 is chosen from 4 men and 3 women and must contain at least one woman. In how many ways?Tap to reveal

What we know: 7 people; committees of 3 with at least one woman.

The plan: First try a tempting method, then the right one.

  1. The path that fails: choose one woman (3 ways), then any 2 of the other 6 people (⁶C₂ = 15 ways): 45. This counts a committee with two women twice, once for each woman picked first.
  2. The right path: all committees ⁷C₃ = 35, minus all-men committees ⁴C₃ = 4: 35 − 4 = 31.

31 committees.

Check: By cases: 1 woman 3 × ⁴C₂ = 18; 2 women ³C₂ × 4 = 12; 3 women 1: 18 + 12 + 1 = 31.

H. How many even numbers between 1000 and 4000 can be formed from the digits 1, 2, 3, 4, 5 if no digit is repeated?Tap to reveal

What we know: 4-digit numbers starting with 1, 2 or 3 and ending in 2 or 4; no repeats.

The plan: Two restricted places (first and last): split by the first digit.

  1. First digit 1 or 3 (2 ways): last digit 2 or 4 (2 ways), middle two from the 3 digits left: 3 × 2 = 6. Count: 2 × 2 × 6 = 24.
  2. First digit 2: last digit must be 4 (1 way), middle two: 3 × 2 = 6. Count: 6.
  3. Total = 24 + 6 = 30.

30.

Check: A single product fails here: how many even digits are left for the end depends on whether the first digit was 2. Splitting into cases fixes that.

I. Show that ⁿCᵣ₊₁/ⁿCᵣ = (n − r)/(r + 1), and use it to find the largest of ¹⁰C₀, ¹⁰C₁, ..., ¹⁰C₁₀.Tap to reveal

What we know: ⁿCᵣ = n!/(r!(n − r)!).

The plan: Divide the two formulas; then see when the ratio is more than 1.

  1. ⁿCᵣ₊₁/ⁿCᵣ = (r!(n − r)!)/((r + 1)!(n − r − 1)!) = (n − r)/(r + 1).
  2. For n = 10 the ratio is (10 − r)/(r + 1), which is more than 1 while 10 − r > r + 1, that is r < 4.5.
  3. So the numbers rise up to r = 5 and fall after it: the largest is ¹⁰C₅ = 252.

¹⁰C₅ = 252.

Check: Row 10 of Pascal's triangle is 1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1.

J. Sushruta, the book's historical note says, counted 63 combinations of 6 tastes taken one at a time, two at a time, and so on. Check the number.Tap to reveal

What we know: He counted all selections of 1 to 6 tastes.

The plan: Add ⁶C₁ to ⁶C₆; or use subsets.

  1. ⁶C₁ + ⁶C₂ + ⁶C₃ + ⁶C₄ + ⁶C₅ + ⁶C₆ = 6 + 15 + 20 + 15 + 6 + 1 = 63.
  2. Another way: 6 tastes have 2⁶ = 64 subsets; leaving out the empty one gives 63.

63, as Sushruta said.

Check: Before you start reminded us that n things have 2ⁿ subsets; this is that fact used for counting.

When you are stuck: mixed practice

First ask whether the condition can be met at all (B and F).

If one product does not work, split into cases (H) or count the opposite and subtract (G).

RecapSummary

Everything the chapter teaches, in one place: first the book's own summary, then a table of the formulas.

The book's summary

  • Fundamental principle of counting: if an event can occur in m different ways, following which another event can occur in n different ways, then the total number of occurrences of the events in the given order is m × n.
  • The number of permutations of n different things taken r at a time, where repetition is not allowed, is denoted by ⁿPᵣ and is given by ⁿPᵣ = n!/(n − r)!, where 0 ≤ r ≤ n.
  • n! = 1 × 2 × 3 × ... × n.
  • n! = n × (n − 1)!.
  • The number of permutations of n different things, taken r at a time, where repetition is allowed, is nʳ.
  • Take n objects, of which p₁ are of the first kind, p₂ of the second kind, ..., pₖ of the k th kind, and the rest, if any, all different. The number of permutations of all of them is n!/(p₁! p₂! ... pₖ!).
  • The number of combinations of n different things taken r at a time, denoted by ⁿCᵣ, is given by ⁿCᵣ = n!/(r!(n − r)!), 0 ≤ r ≤ n.

All the formulas

What is countedFormulaExample
Steps one after anotherm × n × ...3 pants, 2 shirts: 6
Separate casesm + n + ...5 buses or 3 trains: 8
Factorialn! = n × (n − 1)!, 0! = 15! = 120
Arrangements, no repetitionⁿPᵣ = n!/(n − r)!⁶P₃ = 120
Arrangements, with repetitionnʳ6³ = 216
Arrangements with alike objectsn!/(p₁! p₂! ... pₖ!)ROOT: 4!/2! = 12
SelectionsⁿCᵣ = n!/(r!(n − r)!)⁵C₃ = 10
Arrangements and selectionsⁿPᵣ = ⁿCᵣ × r!⁵P₃ = 10 × 6 = 60
Choosing is rejectingⁿCᵣ = ⁿCₙ₋ᵣ¹²C₁₀ = ¹²C₂ = 66
Pascal's ruleⁿCᵣ + ⁿCᵣ₋₁ = ⁿ⁺¹Cᵣ10 + 10 = 20

How to choose the method

  1. Does order matter? Swap two of the chosen things. A different outcome means an arrangement (permutation); the same outcome means a selection (combination).
  2. For an arrangement, may a thing be used again? If yes, each place has n choices: nʳ. If no, use ⁿPᵣ = n!/(n − r)!, or n! when all n are arranged.
  3. Are some of the things alike? Then divide by the factorial of each group of alike things: n!/(p₁! p₂! ... pₖ!).
  4. Is there a condition? Fill a restricted place first; fix letters that must be at given places; glue things that must be together; place the others first and use the gaps for "no two together".
  5. Does the count of choices depend on an earlier choice? Split into separate cases and add them, or count everything and subtract the bad cases.
  6. Does the question say "at least" or "at most"? Add the exact cases, or subtract the opposite cases from the total.
  7. Is it a selection followed by an arrangement (words made from some of the letters)? Select with ⁿCᵣ, then multiply by the arrangements of what was selected.
  8. Finally, check: try a small case by listing, or count a second way, and make sure the answer is a whole number that makes sense in the story.

Historical note

The ideas of permutations and combinations go back to the time of the Jains in India, and perhaps earlier. The Jains treated the subject as a topic of its own in mathematics, under the name Vikalpa. Among them, Mahavira (around 850) is perhaps the world's first mathematician credited with general formulae for permutations and combinations.

In the 6th century BC, Sushruta wrote the medical work Sushruta Samhita. In it he says that 63 combinations can be made out of 6 different tastes, taken one at a time, two at a time, and so on (mixed practice J checks it). Pingala, a Sanskrit scholar of around the third century BC, gives a method of counting combinations of letters in his work Chhanda Sutra. Bhaskaracharya (born 1114) treated the subject under the name Anka Pasha in his famous work Lilavati, and gave several important results besides the general formulae for ⁿCᵣ and ⁿPᵣ already given by Mahavira.

Outside India, the subject had its beginnings in China in the I-King (the Book of Changes). Its date is hard to fix, because in 213 BC the emperor ordered all books in the country to be burnt, an order that fortunately was not completely carried out. Greek and later Latin writers did some scattered work. Arabic and Hebrew writers used combinations in astronomy: Rabbi ben Ezra, around 1140, counted the combinations of the known planets taken two at a time, three at a time, and so on. He seems not to have known the formula for ⁿCᵣ, but he knew that ⁿCᵣ = ⁿCₙ₋ᵣ for particular values. In 1321 Levi Ben Gerson gave formulae for ⁿPᵣ, ⁿPₙ and the general formula for ⁿCᵣ.

The first book to give a complete treatment of the subject is Ars Conjectandi, written by the Swiss mathematician Jacob Bernoulli (1654 to 1705) and published after his death, in 1713. It contains the theory of permutations and combinations essentially as it is known today.

The whole chapter in one line

Multiply steps, add cases; arrange with ⁿPᵣ, nʳ or n!/(p₁! ... pₖ!); select with ⁿCᵣ; and always ask first whether order matters.

WordsWords to know

WordMeaning
Fundamental principle of countingm ways followed by n ways give m × n ways (also called the multiplication principle)
Addition principleseparate cases that never overlap: add their counts
Permutationan arrangement in a definite order of some or all of a number of objects
Combinationa selection of some or all of a number of objects, in which order does not matter
Factorial, n!1 × 2 × ... × n; 0! = 1
ⁿPᵣthe number of permutations of n different objects taken r at a time, n!/(n − r)!
ⁿCᵣthe number of combinations of n different objects taken r at a time, n!/(r!(n − r)!)
Repetition allowedan object can be used again: r places give nʳ arrangements
Alike objectsobjects that cannot be told apart, such as the three A's of BANANA
Vacant placesthe boxes we fill one by one when counting arrangements
Pascal's trianglethe triangle of the numbers ⁿCᵣ, each the sum of the two above it
Dictionary orderthe order of a dictionary: by the first letter, then the second, and so on

CheckQuick self-check

Fifteen short questions on the whole chapter. Try each before you open it.

1. What is 0!?Tap to reveal
  1. It is defined as 1.

1.

2. Find ⁶P₂ and ⁶C₂.Tap to reveal
  1. ⁶P₂ = 6 × 5 = 30.
  2. ⁶C₂ = 30/2! = 15.

30 and 15.

3. Find ²⁰C₁₈.Tap to reveal
  1. ²⁰C₁₈ = ²⁰C₂ = (20 × 19)/2 = 190.

190.

4. How many 4-letter strings can be made from 3 letters if letters may repeat?Tap to reveal
  1. 3⁴ = 81.

81.

5. How many arrangements of LEVEL are there?Tap to reveal
  1. 5 letters: L twice, E twice, V once.
  2. 5!/(2! 2!) = 120/4 = 30.

30.

6. Is choosing a captain and a vice-captain a permutation or a combination?Tap to reveal
  1. The two posts are different, so order matters.

A permutation.

7. Is choosing 3 people to clean the classroom a permutation or a combination?Tap to reveal
  1. The 3 do the same job, so order does not matter.

A combination.

8. Complete: ⁿPᵣ = ⁿCᵣ × ...Tap to reveal
  1. Each selection of r objects can be arranged in r! ways.

r!.

9. If ⁿC₇ = ⁿC₅, find n.Tap to reveal
  1. 7 ≠ 5, so n = 7 + 5.

n = 12.

10. What does ⁿCᵣ + ⁿCᵣ₋₁ equal?Tap to reveal
  1. Theorem 6 (Pascal's rule).

ⁿ⁺¹Cᵣ.

11. When do you add counts instead of multiplying them?Tap to reveal
  1. When the cases are separate alternatives ("or"), not steps one after another.

For separate cases, as in Example 4.

12. In a 3-digit number question, which place do you fill first?Tap to reveal
  1. The place with a condition, usually the hundreds place (no 0) or the units place (even, odd, 0 or 5).

The most restricted place.

13. How do you count arrangements in which certain objects are together?Tap to reveal
  1. Glue them into one block, arrange the block with the rest, then arrange inside the block.

The glue method.

14. How many diagonals has a hexagon?Tap to reveal
  1. ⁶C₂ − 6 = 15 − 6 = 9.

9.

15. Who wrote the first complete book on permutations and combinations?Tap to reveal
  1. The historical note names it.

Jacob Bernoulli, in Ars Conjectandi (published 1713).

PDF