Solution to homework
#5, ICS6A, Winter, 1999
Textbook:
-
Title: "Discrete Mathematics and Its Applications" Third Edition
-
Author: Kenneth H. Rosen
P181:
1. What rule of inference is used in each of the following arguments?
a) Alice is a mathematics major. Therefore, Alice is either a mathematics
major or a computer science major.
Answer: Addition.
b) Jerry is a mathematics major and a computer science major. Therefore,
Jerry is a mathematics major.
Answer: Simplification.
c) If it is rainy, then the pool will be closed. It is rainy. Therefore,
the pool is closed.
Answer: Modus ponens.
d) If it snows today, the university will close. The university
is not closed today. Therefore, it did not snow today.
Answer: Modus tollens.
e) If I go swimming, then I will stay in the sun too long. If I
stay in the sun too long, then I will sunburn. Therefore, if I go swimming,
then I will sunburn.
Answer: Hypothetical syllogism.
11. Prove that the sum of an irrational number and a rational number
is irrational using a proof by contradiction.
Proof: Suppose that i is an
irrational number, r is a rational number, and i+r is a rational
number.
r is a rational number. => -r is also a rational number.
The sum of two rational numbers should be a rational number. => (i+r)
+ (-r) = i is a rational number. This is a contradiction with that i
is an irrational number.
P198:
3. Use mathematical induction to prove that 3 + 3 * 5 + 3 * 52
+ ... + 3 * 5n = 3(5n+1 -1)/4 whenever n is a nonnegative
integer.
Proof: Let P(n) be "3 + 3 * 5 + 3 * 52 + ...
+ 3 * 5n = 3(5n+1 -1)/4", where n=0, 1, 2, ...
-
Basis step: 3 = 3(50 - 1)/4 => P(0) is true.
-
Inductive step: Assume P(n) is true, i.e. 3 + 3 * 5 + 3 * 52
+ ... + 3 * 5n = 3(5n+1 -1)/4
Then 3 + 3 * 5 + 3 * 52 + ... + 3 * 5n + 3 *
5n+1
= 3(5n+1 -1)/4 + 3 * 5n+1
= 3 * [ (5n+1 -1)/4 + 5n+1 ]
= 3 * ( 5 * 5n+1 -1)/4
= 3 * (5n+2 - 1)/4
The last equation shows that P(n+1) is true. This completes the inductive
step and completes the proof.
10. Prove that 1 * 1! + 2 * 2! + ... + n * n! = (n+1)! - 1 whenever
n is a positive integer.
Proof: Let P(n) be " 1*1! + 2*2! + ... + n*n! = (n+1)!
- 1 ", where n=1, 2, 3, ...
-
Basis step: 1*1! = (1+1)! - 1 = 1 => P(1) is true.
-
Inductive step: Assume P(n) is true, i.e. 1*1! + 2*2! + ... + n*n! = (n+1)!
- 1
Then 1*1! + 2*2! + ... + n*n! + (n+1)*(n+1)!
= (n+1)! - 1 + (n+1)*(n+1)!
= (n+1)! * (1+ n+1) - 1
= (n+1)! * (n+2) - 1
= (n+2)! - 1
The last equation shows that P(n+1) is true. This completes the inductive
step and completes the proof.
13. Show that 2n > n2 whenever n is an integer
greater than 4.
Proof: Let P(n) be " 2n > n2 ",
where n=5, 6, 7, ...
-
Basis step: 25 = 32 > 52 = 25 => P(5) is true.
-
Inductive step: Assume P(n) is true, i.e. 2n > n2
Then 2n+1 = 2n * 2 > n2 * 2
(n+1)2 = n2 + 2n + 1
2n+1 - (n+1)2
= 2 * n2 - (n2 + 2n + 1)
= n2 - 2n -1
= n -2n + 1 - 2
= (n-1)2 -2
> 0 whenever n>4.
Such that 2n+1 > (n+1)2 whenever n>4.
The last inequality shows that P(n+1) is true. This completes the inductive
step and completes the proof.
P199:
16. Use mathematical induction to prove that 1*2*3 + 2*3*4 + ...
+ n(n+1)(n+2) = n(n+1)(n+2)(n+3)/4.
Proof: Let P(n) be " 1*2*3 + 2*3*4 + ... + n(n+1)(n+2)
= n(n+1)(n+2)(n+3)/4 "
-
Basis step: 1*2*3 = 1*(1+1)*(1+2)*(1+3)/4 = 6 => P(1) is true.
-
Inductive step: Assume P(n) is true, i.e. 1*2*3 + 2*3*4 + ... + n(n+1)(n+2)
= n(n+1)(n+2)(n+3)/4
Then 1*2*3 + 2*3*4 + ... + n(n+1)(n+2) + (n+1)*(n+2)(n+3)
= n(n+1)(n+2)(n+3)/4 + (n+1)(n+2)(n+3)
= (n+1)(n+2)(n+3) * (n/4 + 1)
= (n+1)(n+2)(n+3)(n+4)/4
The last equation shows that P(n+1) is true. This completes the inductive
step and completes the proof.
17. Show that 12 - 22 + 32 - ... +
(-1)n-1 n2 = (-1)n-1n(n+1)/2 whenever
n is a positive integer.
Proof: Let P(n) be " 12 - 22 +
32 - ... + (-1)n-1 n2 = (-1)n-1n(n+1)/2
", where n = 1, 2, 3, ...
-
Basis step: 12 = (-1)1-1 * 1 * (1+1)/2 = 1 => P(1)
is true.
-
Inductive step: Assume P(n) is true, i.e. 12 - 22
+ 32 - ... + (-1)n-1 n2 = (-1)n-1n(n+1)/2
Then 12 - 22 + 32 - ... + (-1)n-1
n2 + (-1)n(n+1)2
= (-1)n-1n(n+1)/2 + (-1)n(n+1)2
= (-1)n(n+1) * ( -n/2 + n+1 )
= (-1)n(n+1) * ( n/2+1 )
= (-1)n(n+1)(n+2)/2
The last equation shows that P(n+1) is true. This completes the inductive
step and completes the proof.
21. Use mathematical induction to show that 5 divides n5
- n whenever n is a nonnegative integer.
Proof: Let P(n) be " 5 divides n5 -
n ", where n = 0, 1, 2, ...
-
Basis step: 5 devides 05 - 0 = 0 => P(0) is true.
-
Inductive step: Assume P(n) is true, i.e. 5 divides n5 - n.
Then (n+1)5 - (n+1)
= n5 + 5n4
+ 10n3 + 10n2 + 5n + 1 -
n - 1
= (n5 - n)+ 5n4
+ 10n3 + 10n2 + 5n
= (n5 - n)+ 5*(n4
+ 2n3 + 2n2 + n)
(n5 - n) can be divided by 5, apparently
5*(n4 + 2n3 + 2n2 + n) can
be divided by 5. This means that P(n+1) is true. This completes the inductive
step and completes the proof.
37. Use mathematical induction to show that if A1, A2,
..., An and B are sets, then
(A1 U A2 U ... U An) ^
B = (A1 ^ B) U (A2 ^ B) U ... U (An ^
B).
Where "U" means "Union", and "^" means "Intersection".
Proof: Let P(n) be " (A1 U A2
U ... U An) ^ B = (A1 ^ B) U (A2 ^ B)
U ... U (An ^ B) "
-
Basis step: (A1 U A2)^ B = (A1 ^ B) U
(A2 ^ B) by "Distributive laws" => P(2) is true.
-
Inductive step: Assume P(n) is true, i.e. (A1 U A2
U ... U An) ^ B = (A1 ^ B) U (A2 ^ B)
U ... U (An ^ B)
Then (A1 U A2 U ... U An U An+1)
^ B
= [ (A1 U A2 U ... U An) U An+1
] ^ B
= [ (A1 U A2 U ... U An) ^ B ] U (An+1
^ B)
= [ (A1 ^ B) U (A2 ^ B) U ... U (An
^ B) ] U (An+1 ^ B)
= (A1 ^ B) U (A2 ^ B) U ... U (An
^ B) U (An+1 ^ B)
The last equation shows that P(n+1) is true. This completes the inductive
step and completes the proof.
40. Use mathematical induction to show that -(p1 V p2
V ... V pn) is equivalent to -p1 ^ -p2
^ ... ^ -pn whenever p1, p2, ..., pn
are propositions. Where "V" means "OR", and "^" means "AND".
Proof: Let P(n) be " -(p1 V p2
V ... V pn) is equivalent to -p1 ^ -p2
^ ... ^ -pn "
-
Basis step: -(p1 V p2) is equivalent to -p1
^ -p2 by "De Morgan's laws" => P(2) is true.
-
Inductive step: Assume P(n) is true, i.e. -(p1 V p2
V ... V pn) is equivalent to -p1 ^ -p2
^ ... ^ -pn
Then -(p1 V p2 V ... V pnV pn+1)
= -[ (p1 V p2 V ... V pn) V pn+1
]
is equivalent to -(p1 V p2 V ... V pn)
^ -pn+1
is equivalent to (-p1 ^ -p2 ^ ... ^ -pn)
^ -pn+1
is equivalent to -p1 ^ -p2 ^ ... ^ -pn
^ -pn+1
The last "equivalent relation" shows that P(n+1) is true. This completes
the inductive step and completes the proof.