girgit.org

Permutations and Combinations

How do you count without listing?

The big ideaIf one choice can be made in \( m \) ways and, after it, a second choice can be made in \( n \) ways, then the two choices together can be made in \( m \times n \) ways.

In simple words

You have 4 shirts and 3 pairs of trousers. Pick a shirt first. Whichever shirt you picked, you still have 3 trousers to go with it. So every shirt brings 3 outfits, and 4 shirts bring 4 lots of 3, which is 12. You did not have to try them all on. You only had to multiply. This chapter is about counting big piles of choices this way, without writing every one down.

Why we need a better way to count

Your cycle lock has 3 small wheels, each showing a digit from 0 to 9. You have forgotten the code. How many codes might you have to try? You could start writing them out: 000, 001, 002, and so on. You would soon get tired, and you might miss one. This chapter gives you ways to find such numbers without listing every possibility.

Questions like this come in two flavours, and the whole chapter is built on telling them apart:

  • Arranging: putting things in order, like the digits of a code or the letters of a name.
  • Selecting: picking a group where order does not matter, like choosing a cricket XI from a squad.

Both rest on one simple rule.

The fundamental principle of counting

Riya has 4 kurtas and 3 dupattas. How many different kurta and dupatta pairs can she wear? For each of the 4 kurtas there are 3 dupattas to match, so there are \( 4 \times 3 = 12 \) pairs.

You can see why with a tree diagram, a picture where each first choice branches into all the second choices. Call the kurtas K1 to K4 and the dupattas D1, D2, D3:

KurtaPairs it makes
K1K1 D1, K1 D2, K1 D3
K2K2 D1, K2 D2, K2 D3
K3K3 D1, K3 D2, K3 D3
K4K4 D1, K4 D2, K4 D3

Four rows of three: 12. This idea is called the fundamental principle of counting, also called the multiplication principle. In words:

Try it: change the number of choices at each step and watch the whole tree, and the product, change with it.

Multiplication principle

  • If one event can happen in \( m \) different ways, and after it a second event can happen in \( n \) different ways, then the two events, in that order, can happen in \( m \times n \) ways.
  • For three events with \( m \), \( n \) and \( p \) ways: \( m \times n \times p \) ways. It works the same for any number of events.

The word event here simply means one step of the job: choosing a kurta, choosing a dupatta. The events happen in succession, one after another. You may do them in any order you like, but pick one order and count the ways for that order.

More than two steps

Worked example

A school canteen offers 3 snacks, 4 drinks and 2 sweets. A meal is one of each. How many different meals are there?

  1. Choose the snack: 3 ways.
  2. For each snack, choose the drink: 4 ways. That is \( 3 \times 4 = 12 \) snack and drink pairs.
  3. For each pair, choose the sweet: 2 ways.
  4. Total: \( 3 \times 4 \times 2 = 24 \) meals.

Worked example

From Delhi to Agra there are 4 trains, and from Agra to Jaipur there are 3 buses. (a) In how many ways can you travel from Delhi to Jaipur through Agra? (b) In how many ways can you go and come back, if you refuse to use the same bus or the same train twice?

  1. (a) Train, then bus: \( 4 \times 3 = 12 \) ways.
  2. (b) Going: 12 ways, as above. Coming back, Jaipur to Agra: only 2 buses are left. Agra to Delhi: only 3 trains are left.
  3. Total: \( 4 \times 3 \times 2 \times 3 = 72 \) round trips.

Don't mix these up

  • Multiply when you do one step and then another (a kurta and a dupatta). Add when you do one thing or a completely different thing (go by train or by bus, never both). You will use adding for "at least" questions later.
  • The multiplication principle needs the number of ways at each step to stay the same whatever was chosen before. If the second step depends on the first in a messy way, split into cases.

Try it. (a) A coin is tossed 4 times and each result (heads or tails) is written down. How many different records are possible? (b) A die is rolled and a coin is tossed. How many outcomes? (c) Back to the cycle lock: how many 3-digit codes are there?

Answer
(a) Each toss has 2 results: \( 2 \times 2 \times 2 \times 2 = 16 \). (b) \( 6 \times 2 = 12 \). (c) Each wheel has 10 digits: \( 10 \times 10 \times 10 = 1000 \) codes, from 000 to 999.

Words to know

Fundamental principle of counting
\( m \) ways, then \( n \) ways, gives \( m \times n \) ways in all.
Multiplication principle
Another name for the same rule.
Event
One step of the job, such as picking a shirt.
In succession
One after another, in a chosen order.
Tree diagram
A drawing where each first choice branches into every second choice.

A phone comes in 5 colours and 3 storage sizes. How many different versions can a shop stock?

  1. 8
  2. 15
  3. 125

There are 3 routes from home to school and 2 routes from school to the tuition centre. In how many ways can you go home → school → tuition?

  1. 5
  2. 6
  3. 9

You can reach Goa from Mumbai by 5 flights or by 4 trains. In how many ways can you make the trip?

  1. 20
  2. 9
  3. 5