Skip to main content
Logo image

Section 1.7 Chapter Summary

Investigate!
Suppose you have a huge box of animal crackers containing plenty of each of 10 different animals. For the counting questions below, carefully examine their similarities and differences, and then give an answer. The answers are all one of the following:
\(P(10,6)\qquad\) \({10 \choose 6}\qquad\) \(10^6\qquad\) \({15 \choose 9}\text{.}\)
  1. How many animal parades containing 6 crackers can you line up?
  2. How many animal parades of 6 crackers can you line up so that the animals appear in alphabetical order?
  3. How many ways could you line up 6 different animals in alphabetical order?
  4. How many ways could you line up 6 different animals if they can come in any order?
  5. How many ways could you give 6 children one animal cracker each?
  6. How many ways could you give 6 children one animal cracker each so that no two kids get the same animal?
  7. How many ways could you give out 6 giraffes to 10 kids?
  8. Write a question about giving animal crackers to kids that has the answer \({10\choose 6}\text{.}\)
With all the different counting techniques we have mastered in this last chapter, it might be difficult to know when to apply which technique. Indeed, it is very easy to get mixed up and use the wrong counting method for a given problem. You get better with practice. As you practice you start to notice some trends that can help you distinguish between types of counting problems. Here are some suggestions that you might find helpful when deciding how to tackle a counting problem and checking whether your solution is correct.
  • Remember that you are counting the number of items in some list of outcomes. Write down part of this list. Write down an element in the middle of the list – how are you deciding whether your element really is in the list. Could you get this element more than once using your proposed answer?
  • If generating an element on the list involves selecting something (for example, picking a letter or picking a position to put a letter, etc), can the things you select be repeated? Remember, permutations and combinations select objects from a set without repeats.
  • Does order matter? Be careful here and be sure you know what your answer really means. We usually say that order matters when you get different outcomes when the same objects are selected in different orders. Combinations and “Stars & Bars” are used when order does not matter.
  • There are four possibilities when it comes to order and repeats. If order matters and repeats are allowed, the answer will look like \(n^k\text{.}\) If order matters and repeats are not allowed, we have \(P(n,k)\text{.}\) If order doesn’t matter and repeats are allowed, use stars and bars. If order doesn’t matter and repeats are not allowed, use \({n\choose k}\text{.}\) But be careful: this only applies when you are selecting things, and you should make sure you know exactly what you are selecting before determining which case you are in.
  • Think about how you would represent your counting problem in terms of sets or functions. We know how to count different sorts of sets and different types of functions.
  • As we saw with combinatorial proofs, you can often solve a counting problem in more than one way. Do that, and compare your numerical answers. If they don’t match, something is amiss.
While we have covered many counting techniques, we have really only scratched the surface of the large subject of enumerative combinatorics. There are mathematicians doing original research in this area even as you read this. Counting can be really hard.
In the next chapter, we will approach counting questions from a very different direction, and in doing so, answer infinitely many counting questions at the same time. We will create sequences of answers to related questions.

Exercises Chapter Review

1.

You have 14 presents to give to your 5 kids. How many ways can this be done if:
  1. The presents are identical, and each kid gets at least one present?
  2. The presents are identical, and some kids might get no presents?
  3. The presents are unique, and some kids might get no presents?
  4. The presents are unique and each kid gets at least one present?

2.

For each of the following counting problems, say whether the answer is \({10\choose 4}\text{,}\) \(P(10,4)\text{,}\) or neither. If you answer is “neither,” say what the answer should be instead.
  1. How many shortest lattice paths are there from \((0,0)\) to \((10,4)\text{?}\)
  2. If you have 10 bow ties, and you want to select 4 of them for next week, how many choices do you have?
  3. Suppose you have 10 bow ties and you will wear a different one on each of the next 4 days. How many choices do you have?
  4. If you want to wear 4 of your 10 bow ties next week (Monday through Sunday), how many ways can this be accomplished?
  5. Out of a group of 10 classmates, how many ways can you rank your top 4 friends?
  6. If 10 students come to their professor’s office but only 4 can fit at a time, how different combinations of 4 students can see the prof first?
  7. How many 4 letter words can be made from the first 10 letters of the alphabet?
  8. How many ways can you make the word “cake” from the first 10 letters of the alphabet?
  9. How many ways are there to distribute 10 identical apples among 4 children?
  10. If you have 10 kids (and live in a shoe) and 4 types of cereal, how many ways can your kids eat breakfast?
  11. How many ways can you arrange exactly 4 ones in a string of 10 binary digits?
  12. You want to select 4 distinct, single-digit numbers as your lotto picks. How many choices do you have?
  13. 10 kids want ice-cream. You have 4 varieties. How many ways are there to give the kids as much ice-cream as they want?
  14. How many 1-1 functions are there from \(\{1,2,\ldots, 10\}\) to \(\{a,b,c,d\}\text{?}\)
  15. How many surjective functions are there from \(\{1,2,\ldots, 10\}\) to \(\{a,b,c,d\}\text{?}\)
  16. Each of your 10 bow ties match 4 pairs of suspenders. How many outfits can you make?
  17. After the party, the 10 kids each choose one of 4 party-favors. How many outcomes?
  18. How many 6-elements subsets are there of the set \(\{1,2,\ldots, 10\}\)
  19. How many ways can you split up 11 kids into 5 named teams?
  20. How many solutions are there to \(x_1 + x_2 + \cdots + x_5 = 6\) where each \(x_i\) is a non-negative integer?
  21. Your band goes on tour. There are 10 cities within driving distance, but only enough time to play 4 of them. How many choices do you have for the cities on your tour?
  22. In how many different ways can you play the 4 cities you choose?
  23. Out of the 10 breakfast cereals available, you want to have 4 bowls. How many ways can you do this?
  24. There are 10 types of cookies available. You want to make a 4 cookie stack. How many different stacks can you make?
  25. From your home at (0,0) you want to go to either the donut shop at (5,4) or the one at (3,6). How many paths could you take?
  26. How many 10-digit numbers do not contain a sub-string of 4 repeated digits?

3.

Recall, you own 9 regular ties and 5 bow ties. You realize that it would be okay to wear more than two ties to your clown college interview.
  1. You must select some of your ties to wear. Everything is okay, from no ties up to all ties. How many choices do you have?
  2. If you want to wear at least one regular tie and one bow tie, but are willing to wear up to all your ties, how many choices do you have for which ties to wear?
  3. How many choices of which ties to wear do you have if you wear exactly 3 of the 9 regular ties and 2 of the 5 bow ties?
  4. Once you have selected 3 regular and 2 bow ties, in how many orders could you put the ties on, assuming you must have one of the bow ties on top?

4.

Give a counting question where the answer is \(8\cdot 3 \cdot 3 \cdot 5\text{.}\) Give another question where the answer is \(8 + 3 + 3 + 5\text{.}\)

5.

Consider numbers of the form \(\alpha = a_1a_2a_3\dots a_n\text{,}\) with \(n\) digits, each digit from the set \({\left\{1,2,3,4,5,6,7,8\right\}}\text{.}\) For example, if \(n = 4\text{,}\) the number \(\alpha = a_1a_2a_3a_4\) will have 4 digits from the set \({\left\{1,2,3,4,5,6,7,8\right\}}\text{.}\)
Let \(n = 9\text{.}\)
  1. How many such numbers are there?
  2. How many such numbers are there for which the sum of the digits is even?
  3. How many such numbers contain more even digits than odd digits?

6.

In a recent small survey of airline passengers, 30 said they had flown American in the last year, 20 had flown Jet Blue, and 24 had flown Continental. Of those, 11 reported they had flown on American and Jet Blue, 14 had flown on Jet Blue and Continental, and 12 had flown on American and Continental. 9 passengers had flown on all three airlines.
How many passengers were surveyed? (Assume the results above make up the entire survey.)

7.

Recall, by \(9\)-bit strings, we mean strings of binary digits, of length 9.
  1. How many \(9\)-bit strings are there total?
  2. How many \(9\)-bit strings have weight 5?
  3. How many subsets of the set {1,2,3,4,5,6,7,8,9} contain exactly 5 elements?

8.

What is the coefficient of \(x^{9}\) in the expansion of \((x+3)^{14} + x^3(x+5)^{21}\text{?}\)

9.

How many 9-letter words contain exactly 3 vowels? (For example, an 8-letter word with 5 vowels is “aaioobtt”; don’t consider “y” a vowel for this exercise.)
What if repeated letters were not allowed?

10.

For each of the following, find the number of shortest lattice paths from \((3,3)\) to \((10,10)\) which:
  1. pass through the point \((5,7)\text{.}\)
  2. avoid (do not pass through) the point \((7,9)\text{.}\)
  3. either pass through \((5,7)\) or \((7,9)\) (or both).

11.

You live in Grid-Town on the corner of 2nd and 4th, and work in a building on the corner of 16th and 17th. How many routes are there which take you from home to work and then back home, but by a different route?

12.

How many 10-bit strings start with \(101\) or end with \(10\) or both?

13.

How many 14-bit strings of weight 5 start with \(101\) or end with \(10\) or both?

14.

We are making 11-letter words from the set of letters \(a,b,c,d,e,f \dots\text{,}\) in such a way that we have exactly the first 11 letters available so that we use all letters.
  1. How many 11-letter words can we make from the letters without repeats that do not contain the sub-word “bad” in consecutive letters?
  1. How many words don’t contain the subword “bad” in not-necessarily-consecutive letters (but in order)?

15.

Explain using lattice paths why \(\sum_{k=0}^n {n \choose k} = 2^n\text{.}\)

16.

Suppose you have 15 one-dollar bills to give out as prizes to your top 6 discrete math students. How many ways can you do this if:
  1. Each of the 6 students gets at least 1 dollar?
  2. Some students might get nothing?
  3. Each student gets at least 1 dollar but no more than 7 dollars?

17.

How many functions \(f: {\left\{1,2,3,4,5,6,7,8,9\right\}} \to {\left\{1,2,3,4,5,6,7,8,9\right\}}\) are there satisfying:
  1. \(f(1) = 1\) or \(f(2) = 2\) (or both)?
  2. \(f(1) \ne 1\) or \(f(2) \ne 2\) (or both)?
  3. \(f(1) \ne 1\) and \(f(2) \ne 2\text{,}\) and \(f\) is injective?
  4. \(f\) is surjective, but \(\forall x \in \{1,2,\dots, 9 \} \text{, } f(x) \ne x\text{?}\)

18.

How many functions map \({\left\{1,2,3,4,5,6,7,8,9,10\right\}}\) onto \({\left\{1,2,3,4,5,6,7\right\}}\) (i.e., how many surjections are there)?

19.

To thank your math professor for doing such an amazing job all semester, you decide to bake your professor cookies. You know how to make 12 different types of cookies.
  1. If you want to give your professor 7 different types of cookies, how many different combinations of cookie type can you select? Explain your answer.
  2. To keep things interesting, you decide to make a different number of each type of cookie. If again you want to select 7 cookie types, how many ways can you select the cookie types and decide for which there will be the most, second most, etc. Explain your answer.
  3. You change your mind again. This time you decide you will make a total of 20 cookies. Each cookie could be any one of the 12 types of cookies you know how to bake (and it’s okay if you leave some types out). How many choices do you have? Explain.
  4. You realize that the previous plan did not account for presentation. This time, you once again want to make 20 cookies, each one could be any one of the 12 types of cookies. However, now you plan to shape the cookies into the numerals 1, 2, ..., 20. How many choices do you have for which types of cookies to bake into which numerals? Explain.
  5. The only flaw with the last plan is that your professor might not get to sample all 12 different varieties of cookies. How many choices do you have for which types of cookies to make into which numerals, given that each type of cookie should be present at least once? Explain.

20.

For which of the parts of the previous problem (Exercise 1.7.19) does it make sense to interpret the counting question as counting some number of functions? Say what the domain and codomain should be, and whether you are counting all functions, injections, surjections, or something else.
You have attempted of activities on this page.