Counting Techniques
Senior 6 · Basic Mathematics
Counting Techniques
Lesson 2 of 5
25 min
A mobile-money PIN of four digits can be anything from 0000 to 9999. Listing them all would take hours, yet everyone knows there are 10 000 of them. That number comes from a rule, not a list. The canteen tree diagram of the last lesson already showed the idea: 2 starch choices, each followed by 3 sauces, gave plates. This lesson states the two basic rules of counting.
Definition
The sum principle (addition rule). If one choice can be made in ways and another in ways, and the two choices are mutually exclusive (no way belongs to both), then choosing one or the other can be done in ways.
Example: a student must read one novel, chosen from 5 English novels or 4 Kiswahili novels: ways.
Definition
The product rule (multiplication principle). If a task is done in stages, with ways for the first stage and, for each of these, ways for the second, then the whole task can be done in ways. For stages: .
Example: a shirt from 4 and a pair of trousers from 3 gives outfits.
The sum principle is for alternatives: you do one thing or another. The product rule is for stages: you do one thing and then another. The reason for the product rule is the tree diagram: each of the first branches carries the same second branches, so there are paths.
Choosing items one after another from , where order matters, is an ordered sample.
Worked example
Worked example 1: PINs. How many 4-digit PINs are there (a) if digits may repeat; (b) if no digit repeats; (c) if no digit repeats and the PIN does not begin with 0?
(a) Four stages of 10 choices: .
(b) .
(c) First digit: 9 choices (1 to 9). Second: 9 (any digit except the first, now including 0). Third: 8. Fourth: 7. Total .
Deal with the restricted position first; that is why (c) starts with the first digit.
Worked example
Worked example 2: sum and product together. Using the digits 1, 2, 3, 4, 5 without repetition, how many numbers less than 1000 can be made?
A number less than 1000 has 1, 2 or 3 digits. These cases are mutually exclusive, so count each with the product rule and add:
Worked example
Worked example 3: a condition on the last digit. How many three-digit even numbers can be made from 1, 2, 3, 4, 5 without repetition?
The last digit must be 2 or 4: 2 choices. Then the first digit has 4 choices left and the middle digit 3. Total: .
Worked example
Worked example 4: number plates. Suppose plates have the illustrative form three letters, three digits, one letter, for example ABC 123 D, with repetition allowed. How many plates are possible?
Khan Academy India: when to add and when to multiply. Listen for the words 'and' and 'or' in each problem and match them to the product rule and the sum principle.
Warning
Adding when you should multiply. "A shirt and trousers" is two stages: multiply. "A novel in English or in Kiswahili" is one choice from two separate groups: add. And use the sum principle only when the groups do not overlap; if they do, subtract the overlap (inclusion–exclusion).
Tip
Draw a box for each stage, write the number of choices in each box, then multiply. Fill the boxes with restrictions first.
Practice
Important
Alternatives that cannot both happen: add. Stages done one after another: multiply. Ordered samples: with replacement, without.
Sources and credits
Text, diagram, worked examples and exercises: Written by Ganzaa. The number-plate format is illustrative.
Video: Using AND and OR | Permutations and Combinations, Khan Academy India - English, embedded from YouTube.