Chapter 1 Introduction to Sets and Functions: 1.3.1: Which of the following sets are equal to the set of all integers that are multiples of 5.
There may be more than one or none.
(1) {5n|n 2 R}
(2) {5n|n 2 Z}
(3) {n 2 Z|n = 5k and k 2 Z}
(4) {n 2 Z|n = 5k and n 2 Z}
(5) { 5, 0, 5, 10}
2 and 3 only
1.5.1: Let A = {1, 2, {1}, {1, 2}}. True or false?
(a) {1} 2 A (b) {1} A (c) 2 2 A
(d) 2 A
(e) {2} 2 A (f) {2} A
a-T, b-T, c- T, d- F, e- F, f-T
1.6.1: Let A = {1, 2, {1}, {1, 2}}, B = {1, {2}}, and C = {1, 2, 2, 2}. Find
the cardinality of each set.
|A| = 4, |B| = 2, |C| = 2
1.8.1: Let A = {1, 2, {1}, {1, 2}} and B = {1, {2}}. True or false:
(a) 2 2 A \ B
(b) 2 2 A [ B
(c) 2 2 A B
(d) {2} 2 A \ B (e) {2} 2 A [ B (f) {2} 2 A B
a - F, b-T, c-T, d-F, e-T, f-F
1.9.1: Let A = {a, b, c, d, e} and let B = {1, 2}. Find
(1) B A.
(2) |B A|
(3) Is (a, 2) 2 B A?
(4) Is (2, a) 2 B A?
(5) Is 2a 2 B A?
(1) BA = {(1, a), (1, b), (1, c), (1, d), (1, e), (2, a), (2, b), (2, c), (2, d), (2, e)}
(2) |B A| = 10, (3) No, (4) Yes, (5) No
2.3.1: Suppose f : R ! R is defined by f (x) = |x|. Find
(1) the range of f .
(2) the image of Z, the set of integers.
(3) f 1 ().
(4) f 1 ( 1).
(5) f 1 (Q), where Q is the set of rational numbers.
(1)[0, 1), (2) N, (3), { , }, (4) ;, (5) Q
2.4.1: Suppose x is a real number. Do you see any relationships among
the values b xc, bxc, d xe, and dxe?
b xc = dxe and bxc = d xe
2.4.2: Suppose f : R ! R is defined by f (x) = bxc. Find
(1) the range of f .
(2) the image of Z, the set of integers.
(3) f 1 ().
1
(4) f 1 ( 1.5).
(5) f 1 (N), where N is the set of natural numbers.
(6) f 1 ([2.5, 5.5]).
(7) f ([2.5, 5.5]).
(8) f (f 1 ([2.5, 5.5])).
(9) f 1 (f ([2.5, 5.5])).
(1) Z, (2) Z, (3) ;, (4) ;, (5) [0, 1), (6) [3, 6), (7) {2, 3, 4, 5}, (8) {3, 4, 5},
(9) [2, 6)
2.4.3: Let g : R ! [0, 1) be defined by g(x) = dx2 e. Let A = {x 2
[0, 1)|3.2 < x < 8.9}.
(1) domain
(2) codomain
(3) range
(4) Find g(A).
(5) Find g 1 (A).
(1) R
(2) [0, 1)
(3) N
(4) g(A) = {11, 12,
. . . , 80}p p
p 13,p
1
(5) g (A) = [
8,
3) [ ( 3, 8]
2.5.1: Graph the function
Z
Chapter 2 Logic: :
1.8.1: Circle all of the following statements that are equivalent to If x is
even, then y is odd? There may be more than one or none.
(1) y is odd only if x is even.
(2) x is even is sufficient for y to be odd.
(3) x is even is necessary for y to be odd.
(4) If x is odd, then y is even.
(5) x is even and y is even.
(6) x is odd or y is odd.
(2) and (6) are the only equivalent statements.
1.10.1: p is the statement I will prove this by cases, q is the statement
There are more than 500 cases, and r is the statement I can find
another way.
(1) State (r _ q) ! p in simple English.
(2) State the converse of the statement in part (a) in simple English.
(3) State the inverse of the statement in part (a) in simple English.
(4) State the contrapositive of the statement in part (a) in simple
English.
(1) If I cannot find another way or there are not more than 500 cases,
then I will prove this by cases.
(2) If I prove this by cases, then I could not find another way or there
are not more than 500 cases.
(3) If I can find another way and there are more than 500 cases, then
I will not prove this by cases.
(4) If I cannot prove this by cases, then I can find another way and
there are more than 500 cases.
1.13.1: How many rows should a truth table have for a statement involving
n dierent propositions?
2n
1.13.2: Find another way to express Example 1.13.2 Part b It is not the
case that: the apple is delicious and I ate the apple. without using the
phrase It is not the case.
The apple is not delicious or I did not eat the apple.
1.13.3: Insert a comma into the sentence If the fish is cooked then dinner
is ready and I am hungry. to make the sentence mean
(a) f ! (r ^ h)
(b) (f ! r) ^ h
a) If the fish is cooked, then dinner is ready and I am hungry.
b) If the fish is cooked then dinner is ready, and I am hungry
1.13.4: Build one truth table for f ! (r ^ h) and (f ! r) ^ h.
f r h r ^ h f ! r f ! (r ^ h) (f ! r) ^ h
T T T
T
T
T
T
T T F
F
T
F
F
T F T
F
F
F
F
T F F
F
F
F
F
F T T
T
T
T
T
F T F
F
T
T
F
F F T
F
T
T
T
F F F
F
T
T
F
2.1.1: Build a truth table to verify that the proposition (p $ q) ^ (p ^ q)
is a contradiction.
p q p $ q p p ^ q (p $ q) ^ (p ^ q)
T T
T
F
F
F
T F
F
F
F
F
F T
F
T
T
F
F F
T
T
F
F
2.3.1: Use a truth table to show that the propositions p $ q and (p q)
are equivalent.
p q p $ q p q (p q)
T T
T
F
T
T F
F
T
F
F T
F
T
F
F F
T
F
T
2.3.2: Use the method of Solution 2 in Example ?? to show that the
propositions p $ q and (p q) are equivalent.
Proof. We will consider the possible cases where they are not equivalent.
(1) Suppose p $ q is true while (p q) is false. For p $ q to be
true, p and q have to both be true or both be false.
(a) If both are true, then (p q) will be false, and (p q) will
be true, contradicting our assumption that (p q) is false.
Thus this case is not possible.
(b) If both are false, then (p q) will be false, and (p q) will
be true, again contradicting our assumption that (p q) is
false. Thus this case is not possible.
(2) Suppose p $ q is false while (p q) is true. Then for p $ q to
be false, p and q have dierent truth values.
(a) Assume p is true and q is false. Then (p q) is true so (p q)
is false, contradicting our assumption that (p q) is true.
Thus this case is not possible.
q) to
(2) If you do not go to the beach this weekend, then you should not
bring your books or you should not study.
(3) If you do not go to the beach this weekend, then you should bring
your books and study.
(4) You will not go to the beach this weekend, and you should not
bring your books and you should not study.
(5) You will not go to the beach this weekend, and you should not
bring your books or you should not study.
(6) You will go to the beach this weekend, and you should not bring
your books and you should not study.
(7) You will go to the beach this weekend, and you should not bring
your books or you should not study.
7 You will go to the beach this weekend, and you should not bring your
books or you should not study.
2.5.3: p is the statement I will prove this by cases, q is the statement
There are more than 500 cases, and r is the statement I can find
another way. State the negation of (r _ q) ! p. in simple English.
Do not use the expression It is not the case.
I cannot find another way or there are not more than 500 cases, but I
will not prove this by cases.
2.6.1: Prove (p ! q) ^ q ) p.
in exercise 2.4.1 we proved (p ! q) ^ q ! p is a tautology, which
proves this exercise.
p q p q p ! q (p ! q) ^ q (p ! q) ^ q ! p
T T F F
T
F
T
T F F T
F
F
T
F T T F
T
F
T
F F T T
T
T
T
2.6.2: Prove p ^ (p ! q) ! q is a contingency using a truth table.
Proof.
p q q p ! q p ^ (p ! q) p ^ (p ! q) ! q
T T F
T
T
F
T F T
F
F
T
F T F
T
F
T
F F T
T
F
T
Since the statement is true in some cases and false in another, it is a
contingency.
T
T
T
T
F
F
F
F
T
T
F
F
T
T
F
F
r p ! q q ! r p ! r (p ! q) ^ (q ! r) [(p ! q) ^ (q ! r)]
! (p ! r)
T
T
T
T
T
T
F
T
F
F
F
T
T
F
T
T
F
T
F
F
T
F
F
T
T
T
T
T
T
T
F
T
F
T
F
T
T
T
T
T
T
T
F
T
T
T
T
T
3.4.1: Let P (n, m) be the predicate mn > 0, where the domain for m and
n is the set of integers. Which of the following statements are true?
(1) P ( 3, 2)
(2) 8mP (0, m)
(3) 9nP (n, 3)
(1) False, P ( 3, 2)
(2) False, 8mP (0, m)
(3) True, 9nP (n, 3)
3.7.1: In each of the cases above give the truth value for the statement if
each of the 8 and 9 quantifiers are reversed.
(1) true
(2) false
(3) false
(4) true
3.9.1:
10
(1)
(2)
(3)
(4)
(5)
11
12
x+
1
p
1
= ,
2
a
so
p
a= p
x+
a
p
a
= .
2
a
a
x = (1 + )2 .
4
Notice, however, if a = 8 then x = 9 according to the solution, but this
does not satisfy the original equation.
There are several rules of algebra that are not equivalences. Here we
use that (a = b) ! (a2 = b2 ), but the converse is not true. So we may
have solutions of the later equation that are not solutions of the earlier
equation.
13
2.2.1: Fill in the reasons for the following proof of the tautology p !
(p ! q).
[p ! (p ! q)] , [p _ (p _ q)] implication and double negation laws
, [(p _ p) _ q] associative laws
,T _q
tautology
,T
domination
2.2.2: Let A = {1, 2, 3} and R = {(2, 3), (2, 1)}( A A). Prove: if
a, b, c 2 A are such that (a, b) 2 R and (b, c) 2 R then (a, c) 2 R.
Proof. By the definition of R we see that there are no ordered pairs
in R where the first entry of one and the second entry of another is the
same so the hypothesis, (a, b) 2 R and (b, c) 2 R, cannot be true. This
shows that the implication: if a, b, c 2 A are such that (a, b) 2 R and
(b, c) 2 R then (a, c) 2 R; is vacuously true.
2.3.1: Give a careful proof of the statement: For all integers m and n, if
m is odd and n is even, then m + n is odd.
Proof. Assume m is odd and n is even. Then m and n can be
written in the form
m = 2a + 1 and n = 2b,
where a and b are also integers. Then
m + n = (2a + 1) + (2b)
= 2a + 2b + 1
= 2(a + b) + 1
(substitution)
(associative and commutative
laws of addition)
(distributive law)
2.5.2: Consider the statement: For all nonnegative real numbers a, b, and
c, if a2 + b2 = c2 , then a + b c.
(a) Give a proof by contradiction.
14
(b) Give a direct proof. [Hint: The extra idea needed for a direct
proof should emerge naturally from a proof by contradiction.]
(1)
Proof. Let a, b, c 2 [0, 1) be such that a2 + b2 = c2 . Assume
a + b < c. This gives us
c2
(a + b)2
2
a + 2ab + b2
(a2 + b2 ) + 2ab
c2 + 2ab
> (a + b)2
= a2 + 2ab + b2
= (a2 + b2 ) + 2ab
= c2 + 2ab
c2
2
2
2
(2)
Proof. Let a, b, c 2 [0, 1) be such that a + b = c . Then
c 2 = a2 + b 2
a + b2 a2 + 2ab + b2
a2 + 2ab + b2 = (a + b)2
2
(a + b) c a + b, which gives
15
2.9.2: Fill in the blank in the following statement and then give a proof.
Suppose k is a positive integer. If kn + 1 objects are distributed into n
boxes, then some box must contain at least
of the objects.
ANSWER: Suppose k is a positive integer. If kn + 1 objects are distributed into n boxes, then some box must contain at least k + 1 of the
objects.
Proof by contradiction. Assume kn+1 objects are distributed
in n boxes, and that each box contains no more than k objects. This
would mean that there are at most kn objects total. This contradicts
the statement that there are kn + 1 objects, so there must be at least
kn + 1 objects in at least one box.
2.12.1: Find a counterexample to the statement: For every natural number n, n2 n + 41 is prime.
2.13.1: Prove the following statements are equivalent.
(1) n 5 is odd.
(2) 3n + 2 is even.
(3) n2 1 is odd.
Hint: Prove the following implications:
(1) 1!2
(2) 2!1
(3) 1!3
(4) 3!1
16
3.2.1: Notice in the above example that, while we proved 8n[P (n) !
P (n + 1)], we did not prove 8nP (n). Why?
n
X
3.3.1: Prove:
(2i 1) = 1 + 3 + 5 + + (2n 1) = n2 , for all n 1.
i=1
3.3.2: Prove:
n
X
i=1
3.3.3: Prove
n
X
k=1
1
n
=
i(i + 1)
n+1
3 2k
= 3(2n
1)
3.4.1: Prove: 2n+1 2n , for all n 3. Establish the induction step in two
ways, as suggested in the remark above. [Hint: 2n + 2n = 2 2n = 2n+1 .]
Proof.
Basis: Prove 2 3 + 1 23 .
2 3 + 1 = 7 and 23 = 8, so this is clear.
Induction Hypothesis: Let n be an integer with n 3. Assume
2n + 1 2n .
Induction Step: Prove 2(n + 1) + 1 2n+1 .
We know 2n+1 = 2 2n
and we also have 2 2n 2(2n + 1) by the induction hypothesis.
If we can show 2(2n + 1) 2(n + 1) + 1 then this inequality along
with the previous one will imply that 2(n + 1) + 1 2n+1 .
17
2(n + 1) + 1] , [4n + 2
2n + 3] , [2n
1] , [n
1/2]
(n + 1)2 + 3] , [2n2 + 6
n2 + 2n + 4] , [n2
2n + 2
0]
We know that n
5 and that n2 2n + 2 is a quadratic equation with roots less that 5 so it is positive for n
5. Thus the
equivalent inequality on the far left must also be true.
Thus (n + 1)2 + 3 2n+1 which completes the proof.
Alternate Proof.
Basis: Prove 52 + 3 25 .
2
5
5 + 3 = 28 and 2 = 32, so this is clear.
Induction Hypothesis: Let n be an integer with n 5. Assume
n2 + 3 2 n .
Induction Step: Prove (n + 1)2 + 3 2n+1 .
We know (n + 1)2 + 3 = (n2 + 3) + (2n + 1)
and we also have (n2 + 3) + (2n + 1) (2n ) + (2n + 1) by the
induction hypothesis.
From the previous problem, we also know 2n + 1 2n for n 3
and so it holds in this exercise. Thus (2n )+(2n+1) (2n )+(2n ) =
2(2n ) = 2n+1 .
Thus (n + 1)2 + 3 2n+1 which completes the proof.
3.5.1: Let A = {a, b, c, d, e} and B = {a, b, c, d}. List all the subsets of A
in one column and all the subsets of B in another column. Draw a line
connecting every subset of A to a subset from B to demonstrate the 2
to 1 correspondence used in the previous proof. Note that an example
18
such as this does not prove the previous Theorem, but it does help to
illustrate the tools used.
n(n 1)
3.5.2: Prove: For all n 0, a set with n elements has
subsets
2
with exactly two elements. [Hint: In order to complete the induction
step try to devise a strategy similar to the one used in the example in
Example ??. It is interesting to observe that the formula works for sets
with fewer than 2 elements.]
3.5.3: Use mathematical induction to prove that n(n2 + 5) is a multiple
of 6 for all n 0. [Hint: You will have to find the appropriate predicate
P (k).]
3.5.4: Prove 52n 1 + 1 is divisible by 6 for n 2 Z+ .
3.5.5: Prove a b is a factor of an bn . Hint: ak+1 bk+1 = a(ak bk ) +
bk (a b).
Proof.
Basis: Show a b is a factor of a1 b1 . Since a1 b1 =
a b this is clear.
Induction Hypothesis: Let n 2 Z+ . Assume a b is a factor of
an b n .
Induction Step: Prove a b is a factor of an+1 bn+1 .
We use the hint:
an+1
bn+1 = a(an
bn ) + bn (a
b)
19
2.
m
\
{2520n|n 2 Z}
k=1
{n (lcm(2, 3, 4, . . . , m))|n 2 Z}
1.14.2: Use the definition for Ak in exercise to answer the following questions. 1
\
(1)
Ai = {0}
(2)
i=1
1
[
i=1
Ai = Z
20
: ( 1, 1) ! R,
(x) =
ln(1
x)
21
22
1. Initial Conditions:
, 1 2 S,
23
3
1 1 1 0
= 40 1 1 15
1 1 1 1