Emzini weCodeUmhlahlandlelaMathematics 15.4 · Sets, Logic and Counting NoticesAll books

Chapter 15/15.4Foundationabout 4 min

The multiplication principle

Try this first

Rudo has 3 shirts (white, blue, red) and 2 pairs of trousers (black, grey). List every outfit she can wear, in an organised way. How could you have found the number without listing?

List systematically: for each shirt, run through every pair of trousers. A tree diagram does this.

A tree diagram lists every outfitFollow a path from the top: first a shirt, then a pair of trousers. Each path is oneoutfit.1RUDO'S CLOTHES3 shirts2 pairs of trousers2THE TREEstartwhiteblack1white, blackgrey2white, greyblueblack3blue, blackgrey4blue, greyredblack5red, blackgrey6red, grey
Figure 15.4 Each shirt starts two branches, one for each pair of trousers.

There are 3 × 2 = 6 outfits, because each of the 3 shirts starts 2 branches.

Key fact

The multiplication principle. If one choice can be made in m ways, and then a second choice can be made in n ways whatever the first choice was, the two choices together can be made in m × n ways. This extends to any number of choices.

Key fact

The addition principle. If a choice is either of one kind, with m options, or of another kind, with n options, and no option is of both kinds, there are m + n options.

Worked example 15.3
  1. (a)A car number plate has three letters followed by four digits, such as ABC 1234. How many plates are possible?
  2. (b)How many four digit PINs are there? How many have four different digits?
  3. (c)Suppose there are 3 routes from Bulawayo to Hwange, and 2 from Hwange to Victoria Falls. How many routes go from Bulawayo to Victoria Falls through Hwange, and how many round trips are there if the return must not repeat the outward route exactly?
(a)
26 × 26 × 26 × 10 × 10 × 10 × 10 = 175,760,000
(b)
Each digit has 10 choices:
104 = 10,000
With different digits:
10 × 9 × 8 × 7 = 5,040
(c)
3 × 2 = 6 routes.
Out: 6, back: 6, so 36 pairs.
Exactly 6 of these repeat the outward route, leaving 30.

Now try one yourself

Counting and security. Counting the possibilities is how security is judged. A PIN guessed at random has 1 chance in 10,000. A password of 8 characters from 62 letters and digits has 628, more than 200 million million possibilities.

Common mistake

Adding when you should multiply. Choices made one after another, each with its own options, multiply. Options that are alternatives to each other add.

Check your understanding 15.4

  1. A tuck shop sells 4 drinks and 5 snacks. How many drink and snack combinations are there?
    Show answerHide answer
    20
  2. How many three digit numbers have all digits odd?
    Show answerHide answer
    5 × 5 × 5 = 125
  3. How many four digit numbers are even? (The first digit cannot be 0.)
    Show answerHide answer
    9 × 10 × 10 × 5 = 4,500