Section 2.1 The Basic Counting Principles
Objectives
- State the Sum Rule and the Product Rule, and explain how the Product Rule derives from the Sum Rule.
- Given a counting problem, partition the objects being counted into subsets that facilitate the use of the Sum Rule.
- Given a counting problem, describe the steps necessary to form the object or scenario being counted, and apply the Product Rule.
- How many siblings do you have?
- Count the number of students enrolled in MAT202 this term.
- How many buildings are there on the UTM campus?
Example 2.1.1. First Counting Example.
Three friends Ana, Mark, and Olivia are working together on a group project and they are trying to delegate the writing among themselves based on sections: introduction, literature review, and conclusion (everyone will work on the analysis).
How many possible ways can the tasks be assigned to the three friends?
Let's abbreviate their names as A, M, and O. We can just list all possibilities to find that there are 6 ways:
Introduction | A | A | M | M | O | O |
Lit Review | M | O | A | O | A | M |
Conclusion | O | M | O | A | M | A |
Checkpoint 2.1.2. Concert Seating.
Three friends (Mina, Lisa, and Wendy) were able to get three seats together in a row at a Coldplay concert.
- How many ways can they choose to sit?
- How many ways can they sit if Lisa insists on sitting in the middle?
a. 6; b. 2
Example 2.1.3. Dog Adoption.
There are 10 dogs up for adoption at your local animal shelter. You and 9 other friends decide to adopt one dog each. How many ways can you assign dogs to people?
Solution (but not really) If we first fix you and your friends in some specified order (human 1, human 2, human 3, and so on) and name the dogs A, B, C, up to J, then each adoption arrangement corresponds to an ordering of the letters A to J in a list, where the position of each letter corresponds to the person adopting that dog.
For example, the arrangement
J | I | H | G | F | E | D | C | B | A |
\(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) | \(\uparrow\) |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
means that dog J is assigned to human 1, dog I is assigned to human 2, and so on, while the arrangement DJABECIHGF means dog D is assigned to human 1, dog J to human 2, and so onβ¦
You should quickly realize there are too many combinations to list!
Checkpoint 2.1.4. Socks!
You plan to move to a new apartment by the end of the month, and while packing your clothes, you note that you have 3 pairs of black socks, 4 pairs of white socks, and 2 pairs of blue socks.
How many pairs of socks do you have in total?
Checkpoint 2.1.5. Exam Counts.
After an in-person term test or final exam, the course instructor and TAs get together and first verify that the number of papers handed in matches the number of students who wrote the test.

Can you think of an efficient way to count the papers?
You wouldn't just count them one by oneβ¦
Definition 2.1.6. Partition.
Let
for all and
Principle 2.1.7. Sum Rule.
If
Checkpoint 2.1.8. Twitter Followers.
TJ is an avid Twitter user, where he manages the following accounts:
- A personal account with 200 followers;
- A K-pop stan Twitter account with 2500 followers;
- A third account with 12000 followers that tweets a picture of a puppy every hour.
Can you determine the total number of unique followers TJ has? Explain whether or not the Sum Rule is applicable to this problem.
To apply the Sum Rule, one needs to have a partition.
Principle 2.1.9. Product Rule.
If a certain operation takes
ways of performing step 1, ways of performing step 2 (regardless of how step 1 was performed), ways of performing step 3 (regardless of how step 2 was performed),- and so onβ¦
Then, there are
ways of performing steps 1 to
Checkpoint 2.1.10. Counting Outfits.
You are deciding what outfit to wear to your Zoom class today. You have been putting off doing laundry, so you only have 3 clean shirts and 3 clean pairs of pants. Also, you have 8 pairs of socks to choose from. How many different outfits can you wear to school today? (Assume you cannot go to school shirtless, but you can go pantless or barefootβno one will see!)
Checkpoint 2.1.11. Proof of the Product Rule.
Use the Sum Rule to prove the Product Rule.
Induction on \(k\text{.}\)
Induction hypothesis: Assume the statement holds for all operations that take \(k-1\) steps to accomplish. Now consider an operation that takes \(k\) steps (\(r_1,r_2,\ldots,r_k\)) to accomplish. By the IH, there are
ways of performing steps 1 to \(k-1\text{.}\) Now take cases on the \(k\)th step.
Example 2.1.12. Multiple Choice Exam.
A multiple-choice exam has 20 questions and four choices for each question. How many possible combinations of responses are there?

Answering the whole test takes 20 individual, independent steps: picking one answer to each question. If we assume each question needs to have one answer, then in the statement of the Product Rule, \(r_1 = 4\text{,}\) \(r_2 = 4\text{,}\) and so on until \(r_{20} = 4\text{,}\) giving a total of
possible answer combinations.
In other words, pure guessing as a strategy will on average result in a perfect score once every one trillion tries. In comparison, the odds of matching six numbers in Lotto 6/49 is much better: one in 14 million.
If we allow questions to be left unanswered, then there are \(5^{20}=95367431640625\text{,}\) around 96 trillion possible ways to answer the test.
Checkpoint 2.1.13. Concert Seating with people.
Apply the Product Rule to answer (a) and (b) of Checkpoint 2.1.2, then generalize this method to count the number of ways to sit \(n\) people in a row of \(n\) seats.
Definition 2.1.14. Factorial.
For integer
By convention we define
Remark 2.1.15.
For problems where the answer involves a factorial, it is fine to leave the factorial in your answer without computing the actual value.
Example 2.1.16. Dog Adoption, again.
Example 2.1.3 had too many combinations to list, but using the Product Rule we see that there are a total of
Checkpoint 2.1.17. Trip Planning.
Four friends (Erin, Jagmeet, Yves-FranΓ§ois, and Annamie) are planning a trip to Ottawa, and they need to assign tasks (booking flights, booking hotel rooms, and making an itinerary) to three people. Erin cannot be trusted to make an itinerary; also, either Jagmeet or Annamie must book hotel rooms. How many ways can they assign tasks?
Think carefully about which counting principle(s) to apply here. Explain your method of calculation properly.