Course 4.1Lesson 2 of 3
When a task can be done in one way OR another, and the two sets of ways do not overlap, add the counts: this is the addition principle. Choices that follow each other (AND) multiply; separate cases (OR) add. Split a hard count into cases that cannot overlap, count each with the multiplication principle, and add. When a place has a rule, such as an odd last digit, fill that place first.
This lesson is free to read. Enroll free to keep your place and take the tests.
Try the code and the simulations beside the lesson.
Kavya travels from Amli to Bhor. She can take one of buses or one of trains. How many ways does she have?
She takes a bus or a train, not both. The bus journeys and the train journeys are all different. So she has ways.
The addition principle. Suppose a task can be done in ways or in other ways, with no way counted in both. Then it can be done in ways.
The words "no way is counted in both" matter. Suppose students play cricket and play football. You cannot say that students play a game. Two of them might play both, and they would be counted twice.
The two principles answer two different questions.
| The choice is | The words | What to do |
|---|---|---|
| made in stages, one after another | first ... and then ... | multiply |
| one case or another, never both | either ... or ... | add |
Many problems need both. Kavya's journey goes on from Bhor to Chandi by one of boats. The first leg has ways. Each is followed by boats, so there are ways in all.
Some counts cannot be done in one product. Split them into cases that cannot overlap. Count each case, then add.
Example. How many numbers can be made from the digits , , , and , if no digit is used twice in a number? A number may have , or digits.
A number has exactly one length, so no number is in two cases. The total is numbers.
How many odd -digit numbers have three different digits?
Start with the units place, because it has a rule. It must be odd: , , , or , so ways. Then the hundreds place cannot be , and cannot repeat the units digit. That leaves ways. The tens place can use , but not the two digits already used: ways.
So there are such numbers. If you fill the hundreds place first, you cannot tell whether the odd digits are used up. The count for the units place would then depend on the earlier choices.
How many even -digit numbers have three different digits?
The units place decides two things at once. It must be even, and if it is , the hundreds place has one more choice. So split into two cases.
Check: there are such numbers in all, and of them are not odd.
The program counts the numbers made from to with no digit used twice. It takes each length as a separate case, counts it by listing, and adds the cases.
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Every lesson is open to read. Enrolling also lets you:
Log in to join the discussion.
Loading…