Login
📚 Discrete Mathematics
Chapters ▾
⇩ Download ▾

2.7 Chapter Summary

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.

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.

Chapter Review

For each of the following counting problems, say whether the answer is ( 10 4 ) , P ( 10 , 4 ) , 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 ) ?
  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 , , 10 } to { a , b , c , d } ?
  15. How many surjective functions are there from { 1 , 2 , , 10 } to { a , b , c , d } ?
  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 , , 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 + + 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?
  1. Neither. ( 14 4 ) paths.
  2. ( 10 4 ) bow ties.
  3. P ( 10 , 4 ) , since order is important.
  4. Neither. Assuming you will wear each of the 4 ties on just 4 of the 7 days, without repeats: ( 10 4 ) P ( 7 , 4 ) .
  5. P ( 10 , 4 ) .
  6. ( 10 4 ) .
  7. Neither. Since you could repeat letters: 10 4 . If no repeats are allowed, it would be P ( 10 , 4 ) .
  8. Neither. Actually, “k” is the 11th letter of the alphabet, so the answer is 0. If “k” was among the first 10 letters, there would only be 1 way - write it down.
  9. Neither. Either ( 9 3 ) (if every kid gets an apple) or ( 13 3 ) (if appleless kids are allowed).
  10. Neither. Note that this could not be ( 10 4 ) since the 10 things and 4 things are from different groups. 4 10 , assuming each kid eats one type of cerial.
  11. ( 10 4 ) - don't be fooled by the “arrange” in there - you are picking 4 out of 10 spots to put the 1's.
  12. ( 10 4 ) (assuming order is irrelevant).
  13. Neither. 16 10 (each kid chooses yes or no to 4 varieties).
  14. Neither. 0.
  15. Neither. 4 10 [ ( 4 1 ) 3 10 ( 4 2 ) 2 10 + ( 4 3 ) 1 10 ] .
  16. Neither. 10 4 .
  17. Neither. 4 10 .
  18. ( 10 4 ) (which is the same as ( 10 6 ) ).
  19. Neither. If all the kids were identical, and you wanted no empty teams, it would be ( 10 4 ) . Instead, this will be the same as the number of surjective functions from a set of size 11 to a set of size 5.
  20. ( 10 4 ) .
  21. ( 10 4 ) .
  22. Neither. 4 ! .
  23. Neither. It's ( 10 4 ) if you won't repeat any choices. If repetition is allowed, then this becomes x 1 + x 2 + + x 10 = 4 , which has ( 13 9 ) solutions in non-negative integers.
  24. Neither. Since repetition of cookie type is allowed, the answer is 10 4 . Without repetition, you would have P ( 10 , 4 ) .
  25. ( 10 4 ) since that is equal to ( 9 4 ) + ( 9 3 ) .
  26. Neither. It will be a complicated (possibly PIE) counting problem.

Give a counting question where the answer is 8 3 3 5 . Give another question where the answer is 8 + 3 + 3 + 5 .

You own 8 purple bow ties, 3 red bow ties, 3 blue bow ties and 5 green bow ties. How many ways can you select one of each color bow tie to take with you on a trip? 8 3 3 5 ways. How many choices do you have for a single bow tie to wear tomorrow? 8 + 3 + 3 + 5 choices.

Explain using lattice paths why k = 0 n ( n k ) = 2 n .

2 n is the number of lattice paths which have length n , since for each step you can go up or right. Such a path would end along the line x + y = n . So you will end at ( 0 , n ) , or ( 1 , n 1 ) or ( 2 , n 2 ) or … or ( n , 0 ) . Counting the paths to each of these points separately, give ( n 0 ) , ( n 1 ) , ( n 2 ) , …, ( n n ) (each time choosing which of the n steps to be to the right). These two methods count the same quantity, so are equal.

For which of the parts of the previous problem (Exercise) 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.

  1. You are giving your professor 4 types of cookies coming from 10 different types of cookies. This does not lend itself well to a function interpretation. We could say that the domain contains the 4 types you will give your professor and the codomain contains the 10 you can choose from, but then counting injections would be too much (it doesn't matter if you pick type 3 first and type 2 second, or the other way around, just that you pick those two types).
  2. We want to consider injective functions from the set { most, second most, second least, least } to the set of 10 cookie types. We want injections because we cannot pick the same type of cookie to give most and least of (for example).
  3. This is not a good problem to interpret as a function. The problem is that the domain would have to be the 12 cookies you bake, but these elements are indistinguishable (there is not a first cookie, second cookie, etc.).
  4. The domain should be the 12 shapes, the codomain the 10 types of cookies. Since we can use the same type for different shapes, we are interested in counting all functions here.
  5. Here we insist that each type of cookie be given at least once, so now we are asking for the number of surjections of those functions counted in the previous part.

Discrete Mathematics: An Open Introduction, 3rd edition, by Oscar Levin (discrete.openmathbooks.org), licensed under CC BY-SA 4.0; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.