Math 3 Spring 2011 Assignment 4 Solutions Brualdi 6.2. The properties are P 1 : is divisible by 4. P 2 : is divisible by 6. P 3 : is divisible by. P 4 : is divisible by 10. Preparing to use inclusion-exclusion, we observe that A 1 A 2 = = 33 12 1000 A 1 = = 2500 A 1 A 3 = = 35 A 1 A 2 A 3 = = 119 4 2 4 1000 A 2 = = 1666 A 1 A 4 = = 500 A 1 A 2 A 4 = = 166 6 20 60 1000 A 3 = = 142 A 2 A 3 = = 23 A 1 A 3 A 4 = = 1 42 140 1000 A 4 = = 1000 A 2 A 4 = = 333 A 2 A 3 A 4 = = 4 10 30 210 A 3 A 4 = = 142 0 A 1 A 2 A 3 A 4 = = 23 420 Thus, by inclusion-exclusion, the number of values between 1 and 10,000 inclusive A1 A 2 A 3 A 4 = (2500 + 1666 + 142 + 1000) + (33 + 35 + 500 + 23 + 333 + 142) = 5429. (119 + 166 + 1 + 4) + 23
Brualdi 6.3. The properties are P 1 : is a perfect square. P 2 : is a perfect cube. Preparing for inclusion-exclusion, we observe that 6 A 1 = = 100 A 1 A 2 = = 4 3 A 2 = = 21 Thus, by inclusion exclusion, we have A1 A 2 = (100 + 21) + 4 = 93. Brualdi 6.. The properties are P 1 : x 1 9. P 2 : x 2 9. P 3 : x 3 9. P 4 : x 4 9. Preparing for inclusion-exclusion we note that A 1 = A 2 = A 3 = A 4. Also, A 1 represents the number of nonnegative integer solutions of x + x 2 + x 3 + x 4 = 5. This number is ( 5) = 56. Additionally, no more than one property can hold for a given solution to x 1 + x 2 + x 3 + x 4 = 14 in nonnegative integers. Thus, by inclusion-exclusion, we have ( ) A1 A 2 A 3 A 4 1 = 4 14 = 60 4 56 = 456. 5
Brualdi 6.9. To account for the lower bounds we realize that this is equivalent to the number of nonnegative integer solutions to y 1 + y 2 + y 3 + y 4 = 13 where y 1 5, y 2, y 3 4, y 4 4. The properties are P 1 : y 1 6. P 2 : y 2. P 3 : y 3 5. P 4 : y 4 5. Preparing for inclusion exclusion, we observe that ( ) 10 A 1 = A 2 = 5 ( ) 11 A 3 = ( ) 11 A 4 = Thus, by inclusion-exclusion, we have ( ) (( ) ( ) 16 10 + + 2 13 5 A 1 A 2 = 0 ( ) 5 A 1 A 3 = 2 ( ) 5 A 1 A 4 = 2 ( ) 3 A 2 A 3 = 0 ( ) 3 A 2 A 4 = 0 ( ) 6 A 3 A 4 = 3 ( )) ( 11 + 2 ( ) 5 + 2 2 A i A j A k = 0 A 1 A 2 A 3 A 4 = 0 ( ) 3 + 0 ( )) 6 = 96. 3 Brualdi 6.10. Note that this is the same as finding the number of nonnegative integer solutions of a 1 + a 2 + + a k = r where a i n i. Let P i be that a i n i + 1. The existence of an r combination means r n 1 + n 2 + + n k. If a solution satisfies all k properties, a 1 + a 2 + + a k (n 1 + 1) + (n 2 + 1) + + (n k + 1) = n 1 + n 2 + + n k + k > r. Thus, the number of solutions satisfying all k properties is 0 = A 1 A 2 A k =.
Brualdi 6.12. Choose the 4 elements to move: ( ( ) 4) ways. Then derange those elements: D4 ways. This makes D 4 ways total. 4 Brualdi 6.14. By the above argument, ( ) n D n k. k Brualdi 6.15. (a) D. (b) The only thing not allowed is that no gentleman receives his own hat, so! D. (c) As ( in )(b), except we also must eliminate when only one receives his own hat, so! D D 6. 1 Brualdi 6.16. The left hand side counts the number of permutations of {1, 2,..., n in the obvious way. The right hand side counts the number of permutations of {1, 2,..., n by looking at how many numbers are in the same position as their value. Summing over all possible numbers of positions gives the total number of permutations of {1, 2,..., n. Brualdi 6.21. (By Induction) Note that D 1 = 0 and D 2 = 1 satisfying our base cases for induction. Now assume that D n is even n is odd for k < n. Method 1: Consider D k+1 = k(d k 2 + D k 1 ). If k + 1 is odd, then k is even so D k+1 is even. If k + 1 is even, then k is odd. By our inductive hypothesis, D k 2 is odd and D k 1 is even. This means the sum D k 2 + D k 1 is odd. Also, we know that an odd number times an odd number is odd, so D k+1 is odd.
Method 2: n! n! Note that is even n is even and for 0 k < n 1 is always even (since (n 1)! k! n and n 1 are factors and one must be even). Since D n = n! n! 1 + n! 2! n! 3! + + ( 1)n 1 n! (n 1)! + ( 1)n We know that all the values are even except possibly the last two. If n is odd, then we have precisely two odd numbers in the sum, so D n is even. If n is even, then everything is even except ±1, so D n is odd. Method 3: Consider D n = nd n 1 + ( 1) n. Brualdi 6.29. It is easiest to think of this as giving out tickets: put the people in a line and give out tickets labeled with the stop number. This is exactly a 10-permutation using the numbers 1 through 6. We are interested when the permutation has at least one of each value. The properties for inclusion-exclusion would be: P 1 : No one gets out at stop 1. P 2 : No one gets out at stop 2. P 3 : No one gets out at stop 3. P 4 : No one gets out at stop 4. P 5 : No one gets out at stop 5. P 6 : No one gets out at stop 6. Setting the properties this way shows that the set intersections in inclusion-exclusion will be symmetric (ie. no one getting out at stops 1 and 2 will be the same number as stops 3 and 5). Inclusion-exclusion is as follows: A i = 5 10 A i A j = 4 10 A i A j A k = 3 10 A i A j A k A l = 2 10 A i A j A k A l A m = 1 10 A 1 A 2 A 3 A 4 A 5 A 6 = 0 ( ) ( ) A1 A 2 A 3 A 4 A 5 A 6 6 6 = 6 10 5 10 + 4 10 1 2 ( ) 6 3 10 + 3 ( ) 6 2 10 4 ( ) 6 1 10. 5
Extra Problem #1. (a). Number the girls 1 through and assume they face in a counterclockwise direction. The forbidden arrangements have one or more of 1 looking at 2, 2 looking at 3,..., or looking at 1. Consider the following properties: P 12 : The rearrangement has 1 looking at 2. P 23 : The rearrangement has 2 looking at 3.. P 1 : The rearrangement has looking at 1. There is an easy and a hard way to think about the rest: Hard Way: Since the animal seats are distinct, there are! =! arrangements total. { Note that A 12 is equivalent to the number of arrangements of 12, 3, 4, 5, 6,,, so 6!. This is because we look at a circular permutation of these objects (6!) but the starting point matters, so there are of each. This is similar for all A ij. Let s think about the possible { two way intersections. Consider A 12 A 34. This is the number of arrangements of 12, 34, 5, 6,, so a similar argument gives 5!. If we { consider A 12 A 23, we have the number of arrangements of 123, 4, 5, 6,, or 5! also. Now for three way intersections. The types of possibilities are as follows: { Consider A 12 A 34 A 56. This is the number of arrangements of 12, 34, 56,, {. This is 4!. Consider A 12 A 23 45. This is the number of arrangements of 123, 45, 6,, { which is 4!. Consider A 12 A 23 A 34. This is the number of arrangements of 1234, 5, 6,, which is 4!. Continue ad nauseam. OR Easy Way: The easier way to think about this is that for each property satisfied, we reduce the number of objects in the circular permutation by one. Thus we have that if we want the number of permutations satisfying k properties, we find the number of circular permutations of k objects, ( ( k 1)! ways) and then account for the different starting positions when finding the arrangements. This doesn t work for k =, but to satisfy all properties there is only one circular permutation, but starting position matters so there are arrangements.
Either way we have (by inclusion-exclusion), ( ) ( ) ( ) ( ) =! 6! + 5! 4! + 3! 1 2 3 4 ( ) ( ) 0! + 1 [ ( ) ( ) ( ) ( ) ( ) =! 6! + 5! 4! + 3! 2! + 1 2 3 4 5 2! + 5 1! 6 Note the similarity between these and Q n (in particular Q and Q ). 1! 6 0! + ] 1 ( ) (b). If all the seats are identical, we divide ( ) by so we get: ( ) ( ) ( ) Number of rearrangements =! 6! + 5! 4! 1 2 3 ( ) ( ) ( ) + 3! 2! + 1! 4 5 6 0! + 1. (c). If the girls are facing in a line, this is exactly Q as discussed in class. (d). Q n.
Extra Problem #2. (a). This is a 6 6 board. We can regard the non-attacking rooks as permutations of {1,..., 6 where the ith position indicates the row of the rook in column i for i = 1,..., 6. The forbidden spots relate to the following properties: P 11 : There is a 1 in position 1 of the permutation. (ie. a rook is placed at (1,1)). P 12 : There is a 1 in position 2 of the permutation. (ie. a rook is placed at (1,2)). P 23 : There is a 2 in position 3 of the permutation. P 24 : There is a 2 in position 4 of the permutation. P 35 : There is a 3 in position 5 of the permutation. P 36 : There is a 3 in position 6 of the permutation. Further, note that for i, k, m distinct, j = 1, 2, l = 3, 4, n = 5, 6: By inclusion-exclusion, we have A ij = 5! A ij A kl = 4! A ij A kl A mn = 3! Number of ways to place the rooks = 6! 6 5! + = 240. ( 3 2) 2 2 2 {{{{ 3 12 4! 3! (b). This is an board and we want permutations where 1 is not in position 1, 2 is not be in position 2,..., is not be in position. This is precisely D. (c). The probability of (b) happening is D! D n Interestingly, lim = 1 x n! e Extra Problem #3. = 1433 40320 =.361944. =.3694411... Inclusion-exclusion states that we would take the pairwise intersections and subtract the three way intersections. This means that would like to maximize the pairwise intersections while minimizing the three way intersections. Let the figures be C 1, C 2 and T. The maximum
number of intersections for these types of figures (since C 1 C 2 is not allowed to be since the circles are distinguishable) is given below. max( C 1 C 2 ) = 2 max( C i T ) = 6, for i = 1, 2. If we can realize these maxima while keeping C 1 C 2 T = 0, then we have clearly found the maximum number of points belonging to at least two of these figures which would be 6 + 6 + 2 = 14. This can be done as in the picture below.