Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

2024S Discrete Maths HW 1 Solution

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Discrete Mathematics (Spring 24) Homework 1 Solution

1. How many 4-digit integers greater than 5400 have both of the following properties?
(a) The digits are distinct; (b) the digits 2 and 7 do not occur.
Solution: Partition the set of integers satisfying the conditions into two disjoint sub-
sets: those between 6000 and 9999 and those between 5400 and 5999. The first subset
has 3 × 7 × 6 × 5 = 630 integers, where 3 is the number of choices (i.e., 6, 8, 9) for the
thousands digit, and the other terms are the number of choices for the remaining digits
(in an arbitrary order) under the constraint of not being 2, 7 nor any other already
chosen digits. The second subset has 4 × 6 × 5 = 120 integers (all starting with 5),
where 4 is the number of choices (4, 6, 8, 9) for the hundreds digit, the other terms are
similar to the first case (the distinct digits condition automatically discards the case
of getting 5400). Hence the answer is 630 + 120 = 750.

2. A committee of five people is to be chosen from a club that boasts a membership


of 10 men and 12 women. How many ways can the committee be formed if it is to
contain at least two women? How many ways if, in addition, one particular man and
one particular woman who are members of the club refuse to serve together on the
committee?
Solution:
10
 12  For k = 0, 1, 2, 3, the number of ways 10to choose
12
 kmen
10 12
 and 5 −k women
10 12
 is
10 12
k 5−k
, so the answer for the first question is 0 5 + 1 4 + 2 3 + 3 2 .
For the second question, we substract from the previous answer the number of com-
binations that satisfy the original conditions while including both the two particular
people: after including both of them in the group, we need to include j = 0, 1, 2 more
men into the committee and 3 − j more  women,
  from  the
 remaining 9 men and 11
9 11 9 11 9 11
women,
 respectively,
  so there
 are + +
0  3  1 2  2 1
. Therefore
  the final answer
10 12 10 12 10 12 10 12 9 11 9 11 9 11
 
is 0 5 + 1 4 + 2 3 + 3 2 − 0 3 − 1 2 − 2 1 .
Remark: A way to shorten the answer (but doesn’t by much in our case) is to use
substraction principle with the universal set being all possible 5-combinations from 22
people
 (respectively,
  3-combinations  from1020 12people). So 9the
 11answers will be 22
5

10 12 10 12 22 10 12 20
  
4 1
− 5 0 and 5 − 4 1 − 5 0 − 3 + 3 0 , respectively.
Remark: Some students considered the approach of first selecting two women into
the group before selecting 3 more people from the remaining members, and use multi-
plication principle; however, there are some overcounting here. For example, the same
choice of 5 women A, B, C, D, E will be counted 52 times for every pair of women


being the ones chosen first.

1
3. A classroom has two rows of eight seats each. There are 14 students, 5 of whom always
sit in the front row and 4 of whom always sit in the back row. In how many ways can
the students be seated?
Solution: There are P (8, 5) ways to arrange seats for the “front row only” students,
and P (8, 4) ways to arrange seats for the “back row only” students. For the remain-
ing 5 students and 7 seats, where are P (7, 5) ways. Therefore the final answer is
P (8, 5)P (8, 4)P (7, 5).

4. Determine the number of 10-permutations of the multiset S = {3 · a, 4 · b, 5 · c}.


Solution: Choosing 10 letters from the multiset is the same as excluding 2 from it, and
there are six ways to do so, leaving multiplicity profiles of (1, 4, 5), (3, 2, 5), (3, 4, 3),
(2, 3, 5), (2, 4, 4), (3, 4, 3), respectively. Adding up the number of (full) permutations
10! 10! 10! 10!
with each multiset yields 1!4!5! + 2!4!4! + 2 · 2!3!5! + 2 · 3!3!4! .

5. There are 20 identical sticks lined up in a row occupying 20 distinct places, in how
many ways can 6 of them to be chosen so that there must be at least 2 sticks between
each pair of chosen sticks?
Solution: We think of the setting as starting with 6 chosen sticks and inserting 14 more
sticks in the row. Label the 7 slots on the left, between, and on the right of the chosen
sticks as x1 , x2 , . . . , x7 . The ways to insert sticks are the same as the non-negative
solutions to x1 + . . . + x7 = 14 with x2 , . . . .x6 ≥ 2. Substituting x′2 = x2 − 2, . . . , x′6 =
x6 − 2, the problem is reduced to counting the number of non-negative solutions to
x1 + x′2 + . . . + x′6 + x7 = 14 − (2 × 5) = 4, which is 4+7−1 10

7−1
= 6
.

6. Prove that the number of permutations of m A’s and at most n B’s equals
 
m+n+1
.
m+1

is (m+k)! = m+k

Solution: The number of permutations of m A’s and k B’s m!k! k
. Summing
m m+1 m+n
  
over all k = 0, 1, . . . , n, we have 0 + 1 + . . . + n . Replacing the first term by
m+1 m+j
  m+j  m+j+1

0
(which is also 1) and repeatedly using the formula j−1
+ j
= from
m+n+1
 j m+n+1
the left (or equivalently, apply induction on n), the sum is equal to n
= m+1 .
Alternative Solution: Every permutation of m + 1 A’s and n B’s can be made into
a permutation of m A’s and at most n B’s by removing its last A and every B that
comes afterward; conversely, starting with a permutation of m A’s and n − k B’s, we
can append one A and k B’s after it to obtain a permutation of m + 1 A’s and n
B’s. It is easy to check that the two operations are inverses of each other, therefore
both are bijections. So the answer to the original question is equal to the number of
m+n+1

permutations of m + 1 A’s and n B’s, which is m+1 .

You might also like