Combinatorics 5 Solutions UHSMC
Combinatorics 5 Solutions UHSMC
1 Answers
1. 324
2. 8
3. 512
4. 5280
5. 362880
6. 45
7. 169
225
8.
2
9. 96
10. 192
11. 1009 · 2015!
12. 35
13. 9
14. 120
1
15.
10
2 Solutions
1. The boba shop sells four different types of milk tea, and William likes to get tea each weekday.
If William refuses to have the same type of tea on successive days, how many different combinations
could he get, Monday through Friday?
Solution: There are 4 choices for the type of tea William gets on Monday, and for each day
after that, William only has 3 choices for the type of milk he will get. Because each day’s choice
is independent beyond these conditions, our answer is the product of his choices for each day, or
4 · 3 · 3 · 3 · 3 = 324 .
2. Suppose we list the decimal representations of the positive even numbers from left to right.
Determine the 2015th digit in the list.
Solution: There are 10−22 = 4 1-digit even integers, 100−10
2 = 45 2-digit even integers, 1000−100
2 =
10000−1000
450 3-digit even integers, and 2 = 4500 4-digit even integers. It follows that the even
1
UHS Math Club 2017-2018
numbers less than 1000 have a total of 4 + 2 · 45 + 3 · 450 = 1444 digits. Therefore, we wish to find
the 2015 − 1444 = 571th digit among the 4-digit even numbers. This means we wish to find the 3rd
digit of the 568
4 + 1 = 143
rd 4-digit even number. This number will be 1000 + 142 · 2 = 1284, and
2
UHS Math Club 2017-2018
Solution: There are 3 ways to choose the airport she exits from, 3 ways to choose the airport she
returns to, and 5 possible destinations, so our answer is 3 · 3 · 9 = 45 .
7. Three balloon vendors each offer two types of balloons - one offers red & blue, one offers blue
& yellow, and one offers yellow & red. I like each vendor the same, so I must buy 7 balloons from
each. How many different triples (x, y, z) are there such that I could buy x blue, y yellow, and z
red balloons?
Solution: Notice that it is impossible for any of x, y, z to be greater than 14. Any other triple
x, y, z which satisfies x + y + z = 21 satisfies the property though. Convince yourself that this
is true. It follows that we wish to divide 21 stars among 3 bins, so we need 2 bars. The total
23
number of ways to do this is = 253. However, we must subtract the triples where one of
2
7
x, y, z is greater than 14. If one of x, y, z is 15, then there are 3 · ways. It follows that the
1
7 1 8
total number of incorrect triples is 3 · ( +· · · + ) = 3· = 84. It follows that our answer
1 1 2
is 253 − 84 = 169 .
8. There are 30 cities in the empire of Euleria. Every week, Martingale City runs a very well-known
lottery. 900 visitors decide to take a trip around the empire, visiting a different city each week in
some random order. 3 of these cities are inhabited by mathematicians, who will talk to all visitors
about the laws of statistics. A visitor with this knowledge has probability 0 of buying a lottery
ticket, else they have probability 0.5 of buying one. What is the expected number of visitors who
will play the Martingale Lottery?
Solution: The probability that the visitors visit Martingale City before visiting the mathemati-
225
cians is 14 . Therefore, the expected number of visitors who will play the lottery is 14 · 21 · 900 = .
2
9. A fair 6-sided die is repeatedly rolled until a 1, 4, 5, or 6 is rolled. What is the expected value
of the product of all the rolls?
Solution: Let E be the expected value in question. Notice that if the first roll is a 2, then the
expected remaining product is 2E. Notice that if the first roll is a 3, then the expected remaining
product is 3E. It follows that E = 2E 3E
6 + 6 + 1 + 4 + 5 + 6, and simplifying we find that the expected
product is E = 96 .
10. How many ways are there to place the numbers 2, 3, ..., 10 in a 3 × 3 grid, such that any two
numbers that share an edge are mutually prime?
Solution: Notice that there are 5 even numbers in this set, so these numbers must occupy the
four corner squares and the middle square in some order. Notice that if 6 or 10 were in the middle
square, then they would be adjacent to their odd prime factor which is not allowed. It follows that
we have 3 indistinguishable choices for the center square. Now we will do casework on where the
6 and the 10 are in relation to each other. If they occupy adjacent corners, then 7 must be in the
square between them, and 5 must be in the other square adjacent to the 6. The rest of the squares
can fill in any order. Ignoring the possibilities for the middle square, it follows that this case has
4 · 2 · 2 · 2 = 32 possibilities. If the 6 and the 10 are in opposite corners, then the 5 and the 7
must be adjacent to the 6, and the rest of the squares can fill in any order. This gives us a total of
4 · 2 · 2 · 2 = 32 possibilities for this case. It follows that our answer is 3 · (32 + 32) = 192 .
11. Consider the set S = {1, 2, ..., 2015}. How many ways are there to choose 2015 distinct
3
UHS Math Club 2017-2018
(possibly empty and possibly full) subsets X1 , X2 , ..., X2015 of S such that Xi is strictly contained
in Xi+1 for all 1 ≤ i ≤ 2014?
Solution: Notice that each subset in Xi must have between 0 and 2015 elements, inclusive. It
follows that one size of elements must be skipped between 0 and 2015. If no subset has 0 elements,
then clearly there are 2015! ways to choose the subsets, as that is the number of ways to order
the elements which are included. If one subset has 0 elements and one subset has
2015 elements,
2015
then that means at some step 2 elements must be added. There are ways to choose
2
which two elements are added, and 2013! ways to choose the order in which the other elements are
added. Finally, there are 2014 ways to choose the step at which 2 elements are added for a total of
2015! · 1007 ways in this case. Finally, if no subset has 2015 elements, then there are 2015 ways to
choose which element is excluded and there are 2014! ways to choose the order the other elements
are added for a total of 2015! ways. It follows that the total number of ways to choose the subsets
is 1009 · 2015! .
12. You decide to flip a coin some number of times, and record each of the results. You stop flipping
the coin once you have recorded either 20 heads, or 16 tails. What is the maximum number of
times that you could have flipped the coin?
Solution: Notice that you can get at most 19 heads and at most 15 tails before finishing the
process. It follows that the maximum number of flips is 19 + 15 + 1 = 35 .
13. How many 8-digit positive integers have the property that the digits are strictly increasing
from left to right? For instance, 12356789 is an example of such a number, while 12337889 is not.
Solution: Notice that for any 8 distinct digits, there is exactly oneway
to arrange them such that
9
they are in strictly increasing order. It follows that our answer is = 9.
8
14. How many different ways are there to arrange the letters M ILKT EA such that T EA is a
contiguous substring?
For reference, the term ”contiguous substring” means that the letters T EA appear in that order, all
next to one another. For example, M IT EALK would be such a string, while T M IELKA would
not be.
Solution: Notice that there are 5 ways to choose the location of T EA in the string, and 24 ways
to arrange the remaining letters for a total of 5 · 24 = 120 different arrangements.
15. Suppose you roll two fair 20-sided dice. What is the probability that their sum is divisible by
10?
Solution: Notice that regardless of what is rolled on the first die, there are exactly two possibilities
2 1
on the second die which will make the sum divisible by 10. It follows that our answer is 20 = .
10
3 Sources
4
UHS Math Club 2017-2018