A 18 MDM
A 18 MDM
A 18 MDM
c. Determine whether the statements in (a) and (b) are logically equivalent.
1) Assume x is a particular real number.
a. x < 2 or it is not the case that 1 < x < 3. b. x ≤ 1 or either x < 2 or x ≥ 3.
2) (p ∨ q) ∨ (p ∧ r ) and (p ∨ q) ∧ r
Answer:
1. Let p be ‘x < 2’, q be ‘1 < x’, and r be ‘x < 3’. Then the sentences in (a) and
(b) are symbolized as p ∨ ∼(q ∧ r ) and ∼q ∨ (p ∨ ∼r ), respectively.
p q r ∼q ∼r q ∧ r ∼(q ∧ r) p ∨ ∼r p ∨ ∼(q ∧ r) ∼q ∨ ( p ∨ ∼r)
T T T F F T F T T T
T T F F T F T T T T
T F T T F F T T T T
T F F T T F T T T T
F T T F F T F F F F
F T F F T F T T T T
F F T T F F T F T T
F F F T T F T T T T
↑ ↑
The statement forms p ∨ ∼(q ∧ r ) and ∼q ∨ (p ∨ ∼r ) always have the same truth
values, so they are logically equivalent.
2. P q r p v q p ^ r (pvq)V (p^r) (pvq)^r
T T T T T T T
T T F T F T F
T F T T T T T
T F F T F T F
F T T T F T T
F T F T F T F
F F T F F F F
F F F F F F F
The statements (p ∨ q) ∨ (p ∧ r ) and (p ∨ q) ∧ r do not have the same truth
values, so they are logically not equivalent.
assume that a and b have no common factor. (If not, divide both a and b by their greatest
common factor to obtain integers a$ and b$ with the property that a’ and b’ have no
common factor and
√5 = a/b
5b2 = a2 -----(1).
Substituting equation (2) into equation (1) gives 5b2 = 25k2 , and dividing both sides by 5
yields b2 = 5k2.
Hence b2 is divisible by 5, and so, by part (b), b is also divisible by 5. Consequently, both
a and b are divisible by 5, which contradicts the assumption that a and b have no common
factor. Thus the supposition is false, and so √5 is irrational.
d. Prove that for all integers n, if n > 2 then there is a prime number p such that n < p < n!.
Answer:
Proof by Induction or Proof by Contradiction
e. Prove that for all integers n, if n2 is odd then n is odd.
Answer:
a. Proof by contradiction: Suppose not. That is, suppose there is an integer n such that n2
is odd and n is even.
b. Proof by contraposition: Suppose n is any integer such that n is not odd. Show that n2 is
not odd.
f. Prove that every prime number except 2 and 3 has the form 6q + 1 or 6q + 5 for some
integer q.
Answer:
Use the quotient-remainder theorem to say that n
must have one of the forms 6q, 6q + 1, 6q + 2, 6q + 3,6q + 4, or 6q + 5 for some integer q.
Now discard 6q,6q+2,6q+3 and 6q+4 as they are not prime numbers
Proof by Induction
s3 = s2 + 2s1 = 3 + 2·1 = 5
d. Indicate whether the statements in parts (i)–(iv) are true or false. Justify your answers.
i. If two elements in the domain of a function are equal, then their images in the co-
domain are equal.
ii. If two elements in the co-domain of a function are equal, then their preimages in the
domain are also equal.
iii. A function can have the same output for more than one input.
iv. A function can have the same input for more than one output.
Answer:
i. True. The definition of function says that for any input there is one and only one output,
so if two inputs are equal, their outputs must also be equal.
Ii. False
iii. True. The definition of function does not prohibit this occurrence.
Then g ◦ f is one-to-one but g is not one-to-one. (So it is false that both f and g are one-to-
one by De Morgan’s law)
[We must show that there is an element x in R such that G(x) = y. What would x be if
it exists? Scratch work shows that x would have to equal (y + 5)/4. The proof must
Let x = (y + 5)/4. Then (1) x ∈ R, and (2) G(x) = G((y + 5)/4) = 4[(y + 5)/4] − 5 = (y
+ 5) − 5 = y [as was to be shown].
b. The relation R is an equivalence relation on the set A. Find the distinct equivalence
classes of R.
i) A = {0, 1, 2, 3, 4}
R = {(0, 0), (0, 4), (1, 1), (1, 3), (2, 2), (3, 1), (3, 3),(4, 0), (4, 4)}
ii) A = {a, b, c, d}
R = {(a, a), (b, b), (b, d), (c, c), (d, b), (d, d)}
iii) A = {1, 2, 3, 4, . . . , 20}. R is defined on A as follows:
For all x, y ∈ A, x R y ⇔ 4 | (x − y).
Answer:
i) {0, 4}, {1, 3}, {2}
ii) {a}, {b,d}, {c}
iii) {1, 5, 9, 13, 17},{2, 6, 10, 14, 18},{3, 7, 11, 15, 19},{4, 8, 12, 16, 20}
f. Draw a graph with the given specifications or explain why no such graph exists.
i) Tree, nine vertices, nine edges
ii) Graph, connected, nine vertices, nine edges
iii) Graph, circuit-free, nine vertices, six edges
iv) Tree, six vertices, total degree 14
v) Graph, circuit-free, seven vertices, four edges
Answer:
i) Any tree with nine vertices has eight edges, not nine. Thus there is no tree with nine
vertices and nine edges.
ii) Refer figure of section 10.5 problem 9 from susanna
iii) Refer figure of section 10.5 problem 10 from susanna
iv) There is no tree with six vertices and a total degree of 14. Any tree with six
vertices has five edges and hence (by Theorem) a total degree of 10, not 14.
v) No such graph exists. By Theorem a connected graph with six vertices and five
edges is a tree. Hence such a graph cannot have a nontrivial circuit.
ii) There are 999 − 100 + 1 = 900 positive three-digit integers in all, and by part (i),
150 of these are multiples of 6. So the probability that a randomly chosen positive
three-digit integer is a multiple of 6 is 150/900= 1/6 = 16.667 %.
iii) There are 900 positive three digit integers out of which 142 – 15 + 1 = 128 such
integers which are multiple of 7, hence the probability that a randomly chosen positive
three-digit integer is a multiple of 7 is 128/900= 32/225 = 14.222 %.
b. The instructor of a discrete mathematics class gave two tests. Twenty-five percent of the
students received an A on the first test and 15% of the students received A’s on both tests.
What percent of the students who received A’s on the first test also received A’s on the
second test?
Answer:
60% of the students who received A’s on the first test also received A’s on second test.
c. An urn contains four balls numbered 2, 2, 5, and 6. If a person selects a set of two
balls at random, what is the expected value of the sum of the numbers on the balls?
Answer:
Let 21 and 22 denote the two balls with the number 2, and let 5 and 6 denote the other
two balls. There are 4 subsets of 2 balls that can be chosen from the urn. The
following table shows the sums of the numbers on the balls in each set and the
corresponding probabilities:
Subset Sum s Probability that the sum = s
{21, 22} 4 1/6
{21, 5}, {22, 5} 7 2/6
{21, 6} {22, 6} 8 2/6
{5, 6} 11 1/6
So the expected value is 4· 1/6 + 7· 2/6 + 8· 2/6 + 11· 1/6 = 7.5.
d. i) Given a set of 52 distinct integers, show that there must be 2 whose sum or difference is
divisible by 100.
ii) Show that if 101 integers are chosen from 1 to 200 inclusive, there must be 2 with the
property that one is divisible by the other.
Answer:
i) Let X be the set consisting of the given 52 positive integers, and let Y be the set
containing the following elements: {00}, {50}, {01, 99}, {02, 98}, {03, 97}, . . . , {48,
52}, {49, 51}. Define a function F from X to Y by the rule F(x) = the set containing the
last two digits of x. Use the pigeonhole principle to argue that F is not one-to-one, and
show how the desired conclusion follows.
ii) Represent each of the 101 integers xi as ai2ki where ai is odd and ki ≥ 0. Now 1 ≤ xi ≤
200, and so 1 ≤ ai ≤ 199 for all i . There are only 100 odd integers from 1 to 199 inclusive.
e. a. How many distinguishable ways can the letters of the word HULLABALOO be
arranged in order?
b. How many distinguishable orderings of the letters of HULLABALOO begin with U and
end with L?
c. How many distinguishable orderings of the letters of HULLABALOO contain the two
letters HU next to each other in order?
Answer:
10!/(3!.2!.2!) = 151200
8! /(2!.2!.2!) = 5040
9!/(3!.2!.2!) = 15120
f. A pool of 10 semifinalists for a job consists of 7 men and 3 women. Because all are
considered equally qualified, the names of two of the semifinalists are drawn, one after the
other, at random, to become finalists for the job.
a. What is the probability that both finalists are women?
b. What is the probability that both finalists are men?
c. What is the probability that one finalist is a woman and the other is a man?
Answer:
I) Let W1 be the event that a woman is chosen on the first draw,
W2 be the event that a woman is chosen on the second draw,
M1 be the event that a man is chosen on the first draw,
M2 be the event that a man is chosen on the second draw.
Then P(W1) = 3/10 and P(W2 |W1) = 2/9, and thus
P(W1 ∩ W2) = P(W2 |W1)P(W1) = 2/9· 3/10 = 1/15 = 6 2/3%.
ii) Let W1 be the event that a woman is chosen on the first draw,
W2 be the event that a woman is chosen on the second draw,
M1 be the event that a man is chosen on the first draw,
M2 be the event that a man is chosen on the second draw.
Then P(M1) = 7/10 and P(M2 |M1) = 6/9, and thus
P(M1 ∩ M2) = P(M2 |M1)P(M1) = 6/9· 7/10 = 7/30 = 2 1/3%.
_____________________________