Lecture Notes in Discrete Mathematics Part 8
Lecture Notes in Discrete Mathematics Part 8
Solution.
a. By the multiplication rule there are 6 × 6 = 36 possible outcomes.
b. By the multiplication rule there are 26 × 25 × 24 × 10 × 9 × 8 × 7 possible
license plates.
Example 31.4
Let Σ = {a, b, c, d} be an alphabet with 4 letters. Let Σ2 be the set of all
words of length 2 with letters from Σ. Find the number of all words of length
2 where the letters are not repeated. First use the product rule. List the
words by means of a tree diagram.
Solution.
By the multiplication rule there are 4 × 3 = 12 different words. Constructing
a tree diagram
Example 31.6
How many license plates are there that start with three letters followed by 4
digits (no repetitions)?
Solution.
P (26, 3) · P (10, 4) = 78, 624, 000.
P (n, r) n!
C(n, r) = = .
r! r!(n − r)!
Example 31.7
In how many different ways can a hand of 5 cards be selected from a deck of
52 cards?(no repetition)
Solution.
C(52, 5) = 2, 598, 960.
Example 31.8
Prove the following identities:
a. C(n, 0) = C(n, n) = 1 and C(n, 1) = C(n, n − 1) = n.
b. Symmetry property: C(n, r) = C(n, n − r), r ≤ n.
c. Pascal’s identity: C(n + 1, k) = C(n, k − 1) + C(n, k), n ≥ k.
Solution.
a. Follows immediately from the definition of of C(n, r).
b. Indeed, we have
n!
C(n, n − r) = (n−r)!(n−n+r)!
n!
= r!(n−r)!
= C(n, r)
31 ELEMENTS OF COUNTING 177
c.
n! n!
C(n, k − 1) + C(n, k) = (k−1)!(n−k+1)!
+ k!(n−k)!
= n!k
k!(n−k+1)!
+ n!(n−k+1)
k!(n−k)!
n!
= k!(n−k+1)!
(k + n − k + 1)
(n+1)!
= (n+1−k)!
= C(n + 1, k)
Proof.
The proof is by induction.
Indeed, we have
Example 31.9
Expand (x + y)6 using the binomial theorem.
Solution.
By the Binomial Theorem and Pascal’s triangle we have
Example 31.10
a. Show that Pnk=0 C(n, k) = 2n .
P
b. Show that nk=0 (−1)k C(n, k) = 0.
Solution.
a. Letting x = y = 1 in the binomial theorem we find
n
X
n n
2 = (1 + 1) = C(n, k).
k=0
Review Problems
Problem 31.1
a. How many ways can we get a sum of 4 or a sum of 8 when two distin-
guishable dice are rolled?
b. How many ways can we get a sum of 8 when two undistinguishable dice
are rolled?
Problem 31.2
a. How many 4-digit numbers can be formed using the digits, 1, 2, · · · , 9
(with repetitions)? How many can be formed if no digit can be repeated?
b. How many different license plates are there that involve 1, 2, or 3 letters
followed by 4 digits (with repetitions)?
Problem 31.3
a. In how many ways can 4 cards be drawn, with replacement, from a deck
of 52 cards?
b. In how many ways can 4 cards be drawn, without replacement, from a
deck of 52 cards?
Problem 31.4
In how many ways can 7 women and 3 men be arranged in a row if the three
men must always stand next to each other.
Problem 31.5
A menu in a Chinese restaurant allows you to order exactly two of eight
main dishes as part of the dinner special. How many different combinations
of main dishes could you order?
Problem 31.6
Find the coefficient of a5 b7 in the binomial expansion of (1 − 2b)12 .
Problem 31.7
Use the binomial theorem to prove that
n
X
n
3 = 2k C(n, k).
k=0
188 FUNDAMENTALS OF COUNTING AND PROBABILITY THEORY
Review Problems
Problem 32.1
What is the probability of drawing a red card from a well- shuffled deck of
52 playing cards?
Problem 32.2
If we roll a fair die, what are the probabilities of getting
a. a 1 or a 6;
b. an even number?
Problem 32.3
A department store’s records show that 782 of 920 women who entered the
store on a saturday afternoon made at least one purchase. Estimate the
probability that a woman who enters the store on a Saturday afternoon will
make at least one purchase.
Problem 32.4
Which of the following are mutually exclusive? Explain your answers.
a. A driver getting a ticket for speeding and a ticket for going through a red
light.
b. Being foreign-born and being President of the United States.
Problem 32.5
If A and B are the events that a consumer testing service will rate a given
stereo system very good or good, P (A) = 0.22, P (B) = 0.35. Find
a. P (Ac );
b. P (A ∪ B);
c. P (A ∩ B).
Problem 32.6
If the probabilities are 0.20, 0.15, and 0.03 that a student will get a failing
grade in Statistics, in English, or in both, what is the probability that the
student will get a failing grade in at least one of these subjects?
Problem 32.7
If the probability that a research project will be well planned is 0.60 and the
probability that it will be well planned and well executed is 0.54, what is the
probability that a well planned research project will be well executed?
190 FUNDAMENTALS OF COUNTING AND PROBABILITY THEORY
Problem 32.8
Given three events A, B, and C such that P(A)=0.50, P(B)=0.30, and P (A∩
B) = 0.15. Show that the events A and B are independent.
Problem 32.9
There are 16 equally likely outcomes by flipping four coins. Let f repre-
sent the number of heads. Find the probability distribution and graph the
corresponding histogram.
34 GRAPHS, PATHS, AND CIRCUITS 203
Example 34.9
Determine which graph is connected and which one is disconnected.
Solution.
a. Connected.
b. Disconnected since there is no path connecting the vertices v1 and v4 .
A simple path that contains all edges of a graph G is called an Euler path.
If this path is also a circuit, it is called an Euler circuit.
Theorem 34.3
If a graph G has an Euler circuit then every vertex of the graph has even
degree.
Proof.
Let G be a graph with an Euler circuit. Start at some vertex on the circuit
and follow the circuit from vertex to vertex, erasing each edge as you go
along it. When you go through a vertex you erase one edge going in and one
edge going out, or else you erase a loop. Either way, the erasure reduces the
degree of the vertex by 2. Eventually every edge gets erased and all the ver-
tices have degree 0. So all vertices must have had even degree to begin with.
It follows from the above theorem that if a graph has a vertex with odd
degree then the graph can not have an Euler circuit.
The following provide a converse to the above theorem.
204 ELEMENTS OF GRAPH THEORY
Example 34.10
Show that the following graph has no Euler circuit.
Solution.
Vertices v1 and v3 both have degree 3, which is odd. Hence, by the remark
following the previous theorem, this graph does not have an Euler circuit.
Example 34.11
Find a Hamiltonian circuit in the graph
Solution.
vwxyzv
218 ELEMENTS OF GRAPH THEORY
Review Problems
Problem 35.1
Find the level of each vertex and the height of the following rooted tree.
Problem 35.2
Consider the rooted tree
and then the subtrees T1 , T2 , · · · , Tn are listed, from left to right, in order
of their roots. The preorder traversal begins by visiting r. It continues by
traversing T1 in preorder, thenT2 in preorder, and so on, until Tn is traversed
in preorder. In which order does a preorder traversal visit the vertices in the
following rooted tree?