Solution to homework #5, ICS6A, Winter, 1999
-- By Zhao, Hong


Textbook:

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, ...

 

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, ...

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, ... 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 " 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, ...  

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, ...

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) "  

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 "