Q1: 10 points Q2: 10 points Q3: 10 points Q4: 10 points Q5: 30 points Q6: 30 points Total: 100 points
TRUE. There are 210 = 1024 total ten-letter sequences. The ones that do not have at least two a's and at least two b's are the ones with exactly 0, 1, 9, or 10 a's -- there are (10 choose 0) + (10 choose 1) + (10 choose 9) + (10 choose 10) = 1 + 10 + 10 + 1 = 22, much less than 10% of 1024.
TRUE. To pick such a hand we pick the suit (4), pick twelve cards of that suit (13), and pick the suit for the ace (3). The total is 4*13*3 = 156.
TRUE. There are (48 choose 9) hands with all four kings, and (48 choose 9) with all four aces, because in each case we must pick 9 of the other 48 cards. Because there are some hands, (44 choose 5) of them in fact, that have both four aces and four kings, the total is less than 2 times (48 choose 9).
FALSE. Reordering these nine distinct letters can be done in 9! ways, and 9! = 362,880 which is less than a million.
First Counting Problem, 93 = 729.
Second Counting Problem, 93 = 9*8*7 = 504.
Fourth Counting Problem, n=9, k=3, (n+k-1 choose k) = (11 choose 3) = 11*10*9/1*2*3 = 165. It doesn't matter that the order on the letters is different from the usual alphabetical order.
Third Counting Problem, (9 choose 3) = 9*8*7/1*2*3 = 84.
Same as (e), (9 choose 3) = 84.
Product Rule, 6*3*6 = 108.
aaaa, aaab, aaba, abaa, abab -- of the others eight start with "b" and three (aabb, abba, abbb) have a "bb", in all these make the 16 total four-letter strings.
There are 16 total four-letter sequences. Four have the first three letters equal, four have the last three equal, two have both, 16 - 4 - 4 + 2 = 10.
A string of length n in X must begin with "a". If it begins "aa", it consists of an "a" followed by a string of length n-1 in X. If it begins "ab", the part following the "ab" must also be a string in X, of length n-2, because it must start with a and contain no "bb"'s. So there are f(n-1) strings of length n in X starting with "aa" and f(n-2) starting with "ab". Since no string begins with both "aa" and "ab", we can use the Sum Rule and get the desired formula. Note that the "for any n" is actually false -- the argument above does not work if the remainder string is empty, for example. Here f(0) = 0 because the empty string is not in X -- it does not begin with "a". The first n for which the formula is true is n=3 -- for n=2 it is wrong because f(2) = 2, f(1) = 1, but f(0) = 0.
If w is a string in Y, the first letter of v is an "a", and the remaining letters could be anything except that they cannot have two b's in a row. Two b's in a row in v would mean three consecutive letters the same in w. So the mapping on strings takes Y to X. For every string in X, there are exactly two strings in Y that map to it, one starting with "a" and one with "b". Since the mapping preserves length, g(n) must be exactly twice f(n).
Last modified 18 February 2009