Skip to main content

Discrete Mathematical Structures

Subsection 4.1.3 Sum Rule

The Sum Rule can be generalized. If a task can be done in one of \(n_1\) ways, or in one of \(n_2\) ways, \dots, or in one of \(n_m\) ways, where none of the set of \(n_i\) ways is the same as any of the set of \(n_j\) ways, for all \(i \neq j\text{,}\) then there are \(n_1 + n_2 + \dots + n_m\) ways to complete the task.

Example 4.1.3.2. Goats and Sheep.

Suppose there are 10 goats and 15 sheep in a certain village.
  1. Suppose a gift of one animal (goat or sheep) is to be given to a visiting dignitary. How many ways are there to select a gift?
  2. Suppose it is decided instead that the gift should consist of one goat and one sheep. How many ways are there to select a gift?
Solution.
  1. There are 10 ways to select a goat and 15 ways to select a sheep, and none of the ways that select a goat is the same as any of the ways that select a sheep. By the Sum Rule, there are \(10 + 15 = 25\) ways to select the gift.
  2. The procedure of selecting a gift can be broken down into two tasks: select the goat and select the sheep. The number of ways to select the sheep does not depend on which goat was selected. By the Product rule, there are \(10 \cdot 15 = 150\) ways to select a gift.