Solutions To Homework Set 1
Solutions To Homework Set 1
Solutions To Homework Set 1
1. Prove that
“not-Q ⇒ not-P ” implies “P ⇒ Q”.
• In class we proved that
“A ⇒ B” implies “not-B ⇒ not-A”
Replacing the statement A by the statement not-Q and the statement B by the statement not-P ,
we have
“not-Q ⇒ not-P ” implies “not-(not-P ) ⇒ not-(not-Q)”.
But
not-(not-P ) = P and not-(not-Q) = Q ,
so
“not-Q ⇒ not-P ” implies “P ⇒ Q”.
is even. Suppose on the other hand, that n is odd. Then there exists a s ∈ Z such that n = 2s + 1.
But then
c = (2s + 1)2 + (2s + 1) = 4s2 + 2s + 1 + 2s + 1 = 2 2s2 + 2s + 1
is again even. Hence, whether n is even or odd, c must be even; i.e., c must be not-odd.
6. Prove, by mathematical induction, that if n ≥ 5 then 2n > n2 .
• Clearly,
25 = 32 > 25 = 52 .
We thus only need to show that
“2n > n2 and n ≥ 5” ⇒ 2n+1 > (n + 1)2 .
Assume
2n > n 2 , n≥5 .
Then
2n + 2 n > n2 + n 2
or
(0.1) 2n+1 = 2 (2n ) = (2n + 2n ) > n2 + n2 = 2n2 .
It therefore suffices to check that
(0.2) 2n2 >? (n + 1)2 .
Expanding, the right hand side of (0.1), we get
2n2 >? n2 + 2n + 1
or equivalently
(0.3) n2 >? 2n + 1 .
Statement (eq-0.6.3) is certainly true for n = 5, since 25 > 11. But note also that if n2 > 2n + 1,
then adding 2n + 1 to both sides yields
n2 + 2n + 1 > 2n + 1 + 2n + 1
or
(n + 1)2 > 2n + 2(n + 1) > 2(n + 1) + 1 ifn > 1 .
Hence statement (0.3) is thus proved by mathematical induction.
This then implies the validity of (0.2). Combining (0.1) and (0.2) we have
2n+1 > 2n2 > (n + 1)2 ,
hence the original statement is proved via the principal of mathematical induction.
7. Prove by the contrapositive method that if c is an odd integer, there the equation n2 + n + c = 0 has no
integer solution for n.
• The premise of this statement is
c is odd
and the conclusion is
n2 + n + c = 0 has no integer solution
So the contrapositive of this statement would be
n2 + n + c = 0 has an integer solution ⇒ c is not odd
3
is even. Thus, in either case, c is not odd. Since the truth of the contrapositive implies the truth of
the original statement, the proposition is proved.
8. Prove by mathematical induction that
n
n(n + 1)(2n + 1)
i2 = , ∀ n ∈ Z+ .
i=1
6
i = n(n + 1)(2n + 1)
• Let S (n) be the statement
n
2
i=1
g
We need to show two things. ı(i) The statement S(1) is true. ı(ii) The truth of statement S (n)
implies the truth of statement S (n + 1).
The first is easy.
1 i2 = 1 = 66 = (1)(1 + 61)(2 + 1) .
i=1
As for (??), assume that S (n) is true. Then
i
n+1
2
=
i + (n + 1)
n
2 2
i=1 i=1
= n(n + 1)(2 6
n + 1) + (n + 1)2
6
= ( n + 1)( n + 2)(2n + 3)
6
= (n + 1) ((n + 1) +6 1) (2(n + 1) + 1) ,
which is just the statement S (n + 1).
9. Prove the following identities.
(a) B ∩ ( C ∪ D ) = (B ∩ C ) ∪ ( B ∩ D )
4
•
B ∩ (C ∪ D ) = {z ∈ B andz ∈ C ∪ D}
= {z ∈ B and (z ∈ C orz ∈ D)}
= {(z ∈ B and z ∈ C ) or (z ∈ B and z ∈ D )}
= ( B ∩ C ) ∪ (B ∩ D )
(b) B ∪ ( C ∩ D ) = (B ∪ C ) ∩ ( B ∪ D )
•
B ∪ (C ∩ D) = {z ∈ B z ∈ C ∩ D}
or
= {z ∈ B z ∈ C andz ∈ D)}
or (
= {(z ∈ B or z ∈ C ) and (z ∈ B orz ∈ D)}
= ( B ∪ C ) ∩ (B ∪ D )
(c) C = (C − A) ∪ (C ∩ A)
•
( C − A) ∪ (C ∩ A) = {z ∈ C z ∈/ A} ∪ {z ∈ C andz ∈ A}
and
= {(z ∈ C andz ∈/ A) or (z ∈ C andz ∈ A)}
= {z ∈ C }
= C
•
{x | x ∈ R , x > 0}
•
{x | x ∈ R , x < 0 , x ∈/ Q}
(c) All points in the coordinate plane with rational first coordinate.
•
{(x,y) | x ∈ Q , y ∈ R}
(b) r ∈ R | r2 + 5r − 7 = 0
√ √3
• The quadratic formula gives us the roots of r 2 + 5r − 7 = 0. They are r ± = −5± 225−28 = − 52 ± 2
and they are both real numbers. Therefore this set is non-empty.
(c) t ∈ Z | 6t2 − t − 1 = 0
(b) B = R and C = Q.
6
x ∈ U − (A ∩ B )
⇒ x ∈ U and x ∈/ A ∩ B
⇒ x ∈ U and (x ∈/ A or x ∈/ B)
⇒ (x ∈ U and x ∈/ A) or (x ∈ U and x ∈/ B)
⇒ (x ∈ U − A) or (x ∈ U − B)
⇒ x ∈ (U − A) ∪ (U − B)
The key step here was in passing from the third line to the fourth, where we employed the
“distributive law of logic”:
A and (B or C ) ⇔ (A and B) or (A and C )
— (U − A) ∪ (U − B ) ⊂ U − (A ∩ B )
The argument we use here is just the reverse of the sequence of arguments we used above:
x∈ x ∈ (U − A) ∪ (U − B)
⇒ (x ∈ U − A) or (x ∈ U − B)
⇒ (x ∈ U and x ∈/ A) or (x ∈ U and x ∈/ B )
⇒ x ∈ U and (x ∈/ A or x ∈/ B)
⇒ x ∈ U and x ∈/ A ∩ B
⇒ x ∈ U − (A ∩ B )
(b) U − (A ∪ B ) = (U − A) ∩ (U − B )
7
18.
Let B and C be nonempty sets. Prove that the function
f : B ×C → C ×B
given by f (x,y) = (y, x) is a bijection.
• (i) f is a injection.
Suppose f (x1 , y1 ) = f (x2 , y2 ). Then (y1 ,x1 ) = (y2 , x2 ), so y1 = y2 and x1 = x2 , hence
(x1 , y1 ) = (x2 ,y2 ).
8
• (ii) f is a surjection.
Consider an arbitrary element (y, x) ∈ C × B. Evidently, (y,x) = f (x,y), so (y,x) ∈ Image(f ).
Hence, f is surjective.