Test Bank For Discrete Mathematics With Applications 4th Edition
Test Bank For Discrete Mathematics With Applications 4th Edition
8. (a) No
(b) Yes
(c) Yes
(d) No
9. a. {(a, u), (a, v), (b, u), (b, v), (c, u), (c, v)}
b. {(u, a), (v, a), (u, b), (v, b), (u, c), (v, c)}
Chapter 2
1. e
2. e
3. a. The variable S is not undeclared or the data are not out of order.
b. The variable S is not undeclared and the data are not out of order.
c. Al was with Bob on the first, and Al is not innocent.
d. −5 > x or x ≥ 2
4. The statement forms are not logically equivalent.
Truth table:
p q ∼p p∨q ∼p∧ q p∨q →p p ∨ (∼ p ∧ q)
T T F T F T T
T F F T F T T
F T T T T F T
F F T F F T F
Explanation: The truth table shows that p ∨ q → p and p ∨ (∼ p ∧ q) have different truth values in
rows 3 and 4, i.e, when p is false. Therefore p ∨ q → p and p ∨ (∼ p ∧ q) are not logically equivalent.
5. Sample answers:
Two statement forms are logically equivalent if, and only if, they always have the same truth values.
Or: Two statement forms are logically equivalent if, and only if, no matter what statements are
substituted in a consistent way for their statement variables the resulting statements have the same
truth value.
6. Solution 1: The given statements are not logically equivalent. Let p be “Sam bought it at Crown
Books,” and q be “Sam didn’t pay full price.” Then the two statements have the following form:
p → q and p∨ ∼ q.
The truth tables for these statement forms are
p q ∼q p→q p∨ ∼ q
T T F T T
T F T F T
F T F T F
F F T T T
2
Rows 2 and 3 of the table show that p → q and p∨ ∼ q do not always have the same truth values, and
so p → q ̸≡ p∨ ∼ q.
Solution 2 : The given statements are not logically equivalent. Let p be “Sam bought it at Crown
Books,” and q be “Sam paid full price.” Then the two statements have the following form:
p →∼ q and p ∨ q.
Rows 1 and 4 of the table show that p →∼ q and p ∨ q do not always have the same truth values, and
so p →∼ q ̸≡ p ∨ q.
7. The given statements are not logically equivalent. Let p be “Sam is out of Schlitz,” and q be “Sam is
out of beer.” Then the two statements have the following form:
p → q and ∼ q∨ ∼ p.
The table shows that p → q and ∼ p ∨ ∼ q sometimes have opposite truth values (shown in rows 1 and
2), and so p → q ̸≡ ∼ p ∨ ∼ q.
8. Converse: If Jose is Jan’s cousin, then Ann is Jan’s mother
Inverse: If Ann is not Jan’s mother, then Jose is not Jan’s cousin.
Contrapositive: If Jose is not Jan’s cousin, then Ann is not Jan’s mother.
9. Converse: If Liu is Sue’s cousin, then Ed is Sue’s father.
Inverse: If Ed is not Sue’s father, then Liu is not Sue’s cousin
Contrapositive: If Liu is not Sue’s cousin, then Ed is not Sue’s father.
10. Converse: If Jim is Tom’s grandfather, then then Al is Tom’s cousin.
Inverse: If Al is not Tom’s cousin, then Jim is not Tom’s grandfather
Contrapositive: If Jim is not Tom’s grandfather, then then Al is not Tom’s cousin.
11. If someone does not get an answer of 10 for problem 16, then the person will not have solved problem
16 correctly.
Or: If someone solves problem 16 correctly, then the person got an answer of 10.
12. Sample answers:
For a form of argument to be valid means that no matter what statements are substituted for its
statement variables, if the resulting premises are all true, then the conclusion is also true.
Or: For a form of argument to be valid means that no matter what statements are substituted for its
statement variables, it is impossible for all the premises to be true at the same time that the conclusion
is false.
Or: For a form of argument to be valid means that no matter what statements are substituted for its
statement variables, it is impossible for conclusion to be false if all the premises are true.
3
13. The given form of argument is invalid.
premises conclusion
z }| { z }| {
p q ∼p ∼q p →∼ q q →∼ p p∨q
T T F F F F T
T F F T T T T
F T T F T T T
F F T T T T F
Row 4 of the truth table shows that it is possible for an argument of this form to have true premises
and a false conclusion.
14. The given form of argument is invalid.
premises conclusion
z }| { z }|{
p q r ∼q p∧∼q p∧∼q→r p∨q q→p r
T T T F F T T T T
T T F F F T T T F
T F T T T T T T T
T F F T T F T T F
F T T F F T T F T
F T F F F T T F F
F F T T F T F T T
F F F T F T F T F
Row 2 of the truth table shows that it is possible for an argument of this form to have true premises
and a false conclusion.
15. Let p be “Hugo is a physics major,” q be “Hugo is a math major,” and r be “Hugo needs to take
calculus.” Then the given argument has the following form:
p∨q →r
r∨q
Therefore p ∨ q.
Truth table:
premises conclusion
z }| { z }|{
p q r p∨q p∨q →r r∨q p∨q
T T T F T T T
T T F F F T T
T F T T T T T
T F F T F F T
F T T T T T T
F T F T F T T
F F T F T T F
F F F F T F F
Row 7 of the truth table shows that it is possible for an argument of this form to have true premises
and a false conclusion. Therefore, the given argument is invalid.
16. Let p be “12 divides 709,438,” q be “3 divides 709,438,” and r be “The sum of the digits of 709,438 is
divisible by 9.” Then the given argument has the following form:
p→q
r→q
∼r
Therefore ∼ p.
4
Truth table:
premises conclusion
z }| { z }|{
p q r ∼q p∧∼q p→q r→q ∼r ∼p
T T T F F T T F F
T T F F F T T T F
T F T T T F F F F
T F F T T F T T F
F T T F F T T F T
F T F F F T T T T
F F T T F T F F T
F F F T F T T T T
Row 2 of the truth table shows that it is possible for an argument of this form to have true premises
and a false conclusion. Therefore, the given argument is invalid.
p→q
∼q
Therefore ∼ p,
which is valid by modus tollens (and the fact that the negation of “17 is not a divisor of 54,587” is “17
is a divisor of 54,587”).
p→q
q
Therefore p,
which is invalid; it exhibits the converse error.
20. a. S = 1
b. ∼ (P ∧ Q)∧ (Q ∧ R)
P
Q AND OR R
NOT
AND
NOT
5
24. One circuit (among many) having the given input/output table is the following:
Q NOT AND OR S
NOT
AND
25.
101112
+ 10112
1000102
110011112 = 1 · 27 + 1 · 26 + 0 · 25 + 0 · 24 + 1 · 23 + 1 · 22 + 1 · 21 + 1 · 20
= 128 + 64 + 8 + 4 + 2 + 1
= 207,
which agrees.
Chapter 3
4. ∀ even integer n that is greater than 2, ∃ prime numbers p and q such that n = p + q.
Or: ∀ even integer n, if n > 2 then ∃ prime numbers p and q such that n = p + q.
5. e
6. a
7. d
8. g
6
9. a. There is an integer n such that n is prime and n is not odd.
1
b. ∃ a real number x such that x < 1 and ≯ 1.
x
1
Or: ∃ a real number x such that x < 1 and ≤ 1.
x
c. There are integers a and b such that a2 divides b2 and a does not divide b.
d. ∃ a real number x such that x(x − 2) > 0 and x ≯ 2 and x ≮ 0.
Or: ∃ a real number x such that x(x − 2) > 0 and 0 ≤ x ≤ 2.
e. ∃ a real number x such that x(x − 2) > 0 and either 0 > x or x > 2.
Or: ∃ a real number x such that x(x − 2) > 0 and either 0 x or x 2.
f. There are real numbers x and y with x < y such that for all integers n, either x > n or n > y.
Or: There are real numbers x and y with x < y such that for all integers n, either x n or n y.
13. a. For any integer you might choose, you can find an integer such that the sum of the two equals 0.
Or: Every integer has an additive inverse.
b. There is an integer with the property that no matter what integer is chosen, the sum of the two
will be 0.
Or: Some integer has the property that its sum with every integer equals 0.
14. a. Given any real number, there is a real number that is less than the given number.
Or: There is no smallest real number.
b. There is a real number that is less than every real number.
Chapter 4
1. Some acceptable answers:
a. An integer n is odd if, and only if, n = 2k + 1 for some integer k.
b. An integer n is odd if, and only if, n equals 2 times some integer plus 1.
c. An integer n is odd if, and only if, there exists an integer m such that n = 2m + 1 .
7
2. Counterexample: Let a = 1, b = 2, c = 1, and d = 2. Then
a c 1 1 a+c 1+1 2 1
+ = + = 1, whereas = = = .
b d 2 2 b+d 2+2 4 2
(This is one counterexample among many.)
3. a. ∃ integers m and n such that 2m + n is odd and m and n are not both odd. In other words, ∃
integers m and n such that 2m + n is odd and at least one of m and n is even.
b. Statement A can be shown to be false by giving a counterexample.
Counterexample: Let m = 1 and n = 2. Then 2m + n = 2 · 1 + 2 = 4, which is even, but it is not the
case that both m and n are odd because n is even.(This is one counterexample among many.)
4. No matter what integers replace m and n in the expression 6m2 + 34n − 18, the result will always be
an even integer. To see this, observe that
6m2 + 34n − 18 = 2(m2 + 17n − 9).
Since products, sums, and differences of integers are integers, m2 + 17n − 9 is an integer. Thus
6m2 + 34n − 18 can be written as 2 times an integer, and so it is an even integer.
√ √ √
5. Counterexample: Let a = b = 2. Then a and b are irrational, and ab = 2 · 2 = 2, which is rational.
6. Some acceptable answers:
a
a. A real number r is rational if, and only if, r = for some integers a and b with b ̸= 0.
b
a
b. A real number r is rational if, and only if, there exist integers a and b such that r = and b ̸= 0.
b
c. A real number r is rational if, and only if, r can be written as a ratio of integers with a nonzero
denominator.
60583
7. 605.83 is a rational number because 605.83 = .
100
56745
8. 56.745 a rational number because 56.745 = .
1000
9. Some acceptable answers:
a.An integer n is divisible by an integer d if, and only if, n = dk for some integer k.
b. An integer n is divisible by an integer d if, and only if, there exists an integer k so that n = dk.
c. An integer n is divisible by an integer d if, and only if, n is equal to d times some integer.
10. 0 is divisible by 3 because 0 = 3 · 0.
11. 12 divides 72 because 72 = 12 · 6.
12. Proof: Suppose r and s, are any [particular but arbitarily chosen] rational numbers.
We must show that r − s is rational.
2r
13. Proof: Suppose r and s, are any rational numbers with s ̸= 0. [We must show that is a rational
5s
number.] By definition of rational, there exist integers a, b, c, and d with b ̸= 0 and d ̸= 0 such that
a c
r= and s = .
b d
In addition, since c = s · d and since neither s nor d equals 0, then c ̸= 0 by the zero product property.
Then
a
2r 2·
= b = 2ad .
5s c 5bc
5·
d
Now both 2ad and 5bc are integers because they are products of integers, and 5bc ̸= 0 by the zero
2r 2r
product property. Hence is a ratio of integers with a nonzero denominator, and so is a rational
5s 5s
number by definition of rational [as was to be shown].
8
14. Proof : Suppose a, b, and c are any integers such that a | b and a | c. [We must show that a | (5b + 3c).]
By definition of divisibility, b = ar and c = as for some integers r and s. Then
Let t = 5r+3s. Then t is an integer because products and sums of integers are integers, and 5b+3c = at.
Thus, by definition of divisibility, a | (5b + 3c) [as was to be shown].
Prove the following statement directly from the definitions of the terms. Do not use any other facts
previously proved in class or in the text or in the exercises.
15. Proof (Version 1): Suppose a and b are integers and a divides b. By definition of divisibility, b = a · k
for some integer k. Raising both sides to the third power gives
b3 = (a · k)3
Observe that k 3 is an integer because it is a product of integers. Hence b3 equals a3 times an integer,
and so by definition of divisibility, a3 divides b3 .
Proof (Version 2): Suppose a and b are integers and a divides b. By definition of divisibility, b = a · k
for some integer k. Raising both sides to the third power gives
b3 = (a · k)3
16. Proof: Suppose n is any integer. By the parity principle, either n is even or n is odd, so we consider
two cases.
Case 1 (n is even): By definition of even, there is an integer u such that n = 2u. Then
Now 2u2 + u is an integer because products and sums of integers are integers. Thus n2 + n + 1 equals
2 times an integer plus 1, and so n2 + n + 1 is odd by definition of odd.
Case 2 (n is odd): By definition of odd, there is an integer u such that n = 2u + 1. Then
Now 2u2 + u + 1 is an integer because products and sums of integers are integers. Thus n2 + n + 1
equals 2 times an integer plus 1, and so n2 + n + 1 is odd by definition of odd.
Conclusion: In both possible cases n2 + n + 1 is odd.
17. Proof: Suppose n is any integer. By the parity principle, either n is even or n is odd, so we consider
two cases.
Case 1 (n is even): By definition of even, there is an integer a such that n = 2a. The next
consecutive integer after n is n + 1, and so
n + (n + 1) = 2a + (2a + 1) = 4a + 1 = 2(2a) + 1.
Now 2a is an integer because products of integers are integers. Thus n + (n + 1) equals 2 times an
integer plus 1, and so n + (n + 1) is odd by definition of odd.
9
Case 2 (n is odd): By definition of odd, there is an integer a such that n = 2a + 1. Then
n + (n + 1) = (2a + 1) + [(2a + 1) + 1] = 4a + 2 + 1 = 2(2a + 1) + 1.
Now 2a + 1 is an integer because products and sums of integers are integers. Thus n + (n + 1) equals
2 times an integer plus 1, and so n + (n + 1) is odd by definition of odd.
Conclusion: In both possible cases n + (n + 1) is odd.
Prove the following statement: The sum of any two consecutive integers can be written in the form
4n + 1 for some integer n.
18. Proof: Suppose x is any real number. By definition of floor,
⌊x − 2⌋ = n if,and only if, n ≤ x − 2 < n + 1.
Adding 2 to all parts of the inequality gives
n + 2 ≤ x < n + 3.
Thus, by definition of floor,
⌊x⌋ = n + 2, and so ⌊x⌋ − 2 = n.
Thus both ⌊x − 2⌋ and ⌊x⌋ − 2 equal the same quantity (namely n), and so ⌊x − 2⌋ = ⌊x⌋ − 2.
19. Proof (by contradiction): Suppose not. That is, suppose there is a smallest positive rational number;
call it r. [We must show that this supposition leads logically to a contradiction.] By definition of
u
rational, there exist integers u and v with v ̸= 0 such that r = . Then
v
u
r u
= v = .
2 2 2v
Now both u and 2v are integers because products of integers are integers, and 2v ̸= 0 by the zero
r
product property. Thus is a raional number.
2
In addition, since r is positive, 0 < r. Hence, by adding r to both sides, r < 2r, and dividing both sides
r r
by 2 gives that < r, so is less than r.
2 2
r r
Moreover, dividing both sides of 0 < r by 2 gives that 0 < , so is positive.
2 2
r
In summary: is a positive rational number that is less than r, which contradicts the supposition that
2
r is the smallest positive rational number. [Hence the supposition is false and the given statement is
true.]
20. Proof (by contradiction):Suppose not. That is, suppose there are real numbers r and s such that r is
rational and s is irrational and r + 2s is rational. [We must show that this supposition leads logically
to a contradiction.] By definition of rational,
a c
r= and r + 2s = for some integers a, b, c, and d with b ̸= 0 and d ̸= 0.
b d
Then, by substitution,
a c
+ 2s = .
b d
Solve this equation for s to obtain
( )
1 (c a) 1 bc ad bc − ad
s= − = − = .
2 d b 2 bd bd 2bd
But both bc − ad and 2bd are integers because products and differences of integers are integers, and
2bd ̸= 0 by the zero product property.
Hence s is a ratio of integers with a nonzero denominator, and so s is rational by definition of rational.
This contradicts the supposition that x is irrational. [Hence the supposition is false and the given
statement is true.]
10
21. Solution 1:
a. Proof (by contradiction): Suppose not. That is, suppose there is an integer n such that n3 is even
and n is odd.
[We must show that this supposition leads logically to a contradiction.]
By definition of odd, n = 2a + 1 for some integer a.
Thus, by substitution and algebra,
n3 = (2a + 1)3 = (2a + 1)2 (2a + 1) = (4a2 + 4a + 1)(2a + 1) = 8a3 + 12a2 + 6a + 1 = 2(4a3 + 6a2 + 3a) + 1.
Let t = 4a3 + 6a2 + 3a. Then n3 = 2t + 1, and t is an integer because it is a sum of products of integers.
It follows that n3 is odd by definition of odd, which contradicts the supposition that n3 is even.
[Hence the supposition is false and the given statement is true.]
b. Outline of proof by contraposition:
Starting point: Suppose n is any integer such that n is odd. (Or: Suppose n is any odd integer.)
Conclusion to be shown: n3 is odd.
Solution 2:
a. Proof (by contraposition): Suppose n is any integer such that n is odd. (Or: Suppose n is any odd
integer.) [We must show that n3 is odd.]
By definition of odd, n = 2a + 1 for some integer a.
Thus n3 = (2a+1)3 = (2a+1)2 (2a+1) = (4a2 +4a+1)(2a+1) = 8a3 +12a2 +6a+1 = 2(4a3 +6a2 +3a)+1.
Let t = 4a3 + 6a2 + 3a. Then n3 = 2t + 1, and t is an integer because it is a sum of products of integers.
It follows that n3 is odd by definition of odd [as was to be shown].
b. Outline of proof by contradiction:
Starting point: Suppose not. That is, suppose there is an integer n such that n3 is even and n is odd.
Conclusion to be shown: We must show that this supposition leads logically to a contradiction.
22. Solution 1:
a. Proof (by contradiction): Suppose not. That is, suppose there is a real number r such that r3 is
irrational and r is rational.
[We must show that this supposition leads logically to a contradiction.]
a
By definition of rational, there exist integers a and b with b ̸= 0 such that r = .
b
( a )3
a3
By substitution, r3 = . =
b b3
Now both a3 and b3 are integers because products of integers are integers, and b3 ̸= 0 by the zero
product property.
Thus r3 is a ratio of integers with a nonzero denominator, and so r3 is rational by definition of rational.
This contradicts the supposition that r3 is irrational. [Hence the supposition is false and the given
statement is true.]
b. Outline of proof by contraposition:
Starting point: Suppose r is any real number such that r is rational. (Or: Suppose r is any rational
number.)
Conclusion to be shown: r3 is rational.
Solution 2:
a. Proof (by contraposition): Suppose r is any real number such that r is rational. (Or: Suppose r is
any rational number.)
[We must show that r3 is rational.]
11
a
By definition of rational, there exist integers a and b with b ̸= 0 such that r = .
b
( a )3 a 3
By substitution, r3 = = 3.
b b
Now both a3 and b3 are integers because products of integers are integers, and b3 ̸= 0 by the zero
product property.
Thus r3 is a ratio of integers with a nonzero denominator, and so r3 is rational by definition of rational
[as was to be shown].
b. Outline of proof by contradiction:
Starting point: Suppose not. That is, suppose there is a real number r such that r3 is irrational and r
is rational.
Conclusion to be shown: We must show that this supposition leads logically to a contradiction.
23. Solution 1:
a. Proof (by contradiction): Suppose not. That is, suppose there is an integer n such that n3 is odd
and n is even.
[We must show that this supposition leads logically to a contradiction.]
By definition of even, there is an integer a such that n = 2a.
Thus, by substitution and algebra,
n3 = (2a)3 = 8a3 = 2(4a3 ).
12
√ √ a
26. Proof: Suppose not. That is, suppose that 4 + 3 2 is rational. By definition of rational, 7 + 4 2 = ,
b
where a and b are integers and b ̸= 0. Multiplying both sides by b gives
√
4b + 3b 2 = a,
√
3b 2 = a − 4b.
√ a − 4b
2= .
3b
√
But then 2 would be a rational number because √ both a − 4b and 3b are integers (since products
and differences of
√ integers are integers) and so 2 would be a rational number. This contradicts our
knowledge that 2 is irrational. Hence the supposition is false and the given statement is true.
27. 1
168⌈ 284 So 284 = 168 · 1 + 116, and hence gcd(284, 168) = gcd(168, 116)
168
116
1
116⌈ 168 So 168 = 116 · 1 + 52, and hence gcd(168, 116) = gcd(116, 52)
116
52
2
52⌈ 116 So 116 = 52 · 2 + 12, and hence gcd(116, 52) = gcd(52, 12)
104
12
4
12 ⌈ 52 So 52 = 12 · 4 + 4, and hence gcd(52, 12) = gcd(12, 4)
48
4
3
4 ⌈12 So 12 = 4 · 3 + 0, and hence gcd(12, 4) = gcd(4, 0)
12
0
13
28. 1
10673⌈11284 So 11284 = 10673 · 1 + 611, and hence gcd(11284, 10673) = gcd(10673, 611)
10673
611
17
611⌈10673 So 10673 = 611 · 17 + 286, and hence gcd(10673, 611) = gcd(611, 286)
10387
286
2
286 ⌈ 611 So 611 = 52 · 2 + 12, and hence gcd(611, 286) = gcd(286, 39)
572
39
7
39 ⌈ 286 So 286 = 39 · 4 + 4, and hence gcd(286, 39) = gcd(39, 13)
273
13
3
13 ⌈39 So 39 = 13 · 3 + 0, and hence gcd(39, 13) = gcd(13, 0)
39
0
But gcd(13, 0) = 13. So gcd(11284, 10673) = 13.
14