

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Exercise 1: Express each of these statements using mathematical and logical op- erators, predicates and quantifiers, where the domain consists of all integers. (a) The sum of two negative integers is negative. (b) The absolute value of the product of two integers is the product of their absolute values. Solution: (a)∀x∀y((x < 0) ∧ (y < 0) → (x + y < 0)). (b)∀x∀y(|xy| = |x||y|) Exercise 2: Translate each of these nested quantifications into an English state- ment that expresses a mathematical fact. The domain in each case consists of all real numbers. (a)∃x∀y(xy = y) (b)∀x∀y∃z(x + y = z) Solution: (a)This says that there exists a real number x such that for every real number y, the product xy equals y. (b)This says that for every pair of real numbers x and y, there exists a real number z that is their sum.
Exercise 3: For each of these arguments determine whether the argument is cor- rect or incorrect and explain why. (a) Every computer science major takes discrete mathematics. Harry is taking discrete mathematics. Therefore, Harry is a computer science major.
(b) All parrots like fruit. My pet bird is not a parrot. Therefore, my pet bird does not like fruit. Solution: (a)This is invalid. After applying universal instantiation, it contains the fallacy of affirming the conclusion. (b)This is invalid. After applying universal instantiation, it contains the fallacy of denying the hypothesis. Exercise 4: Use rules of inference to show that if ∀x(P (x) ∨ Q(x)), ∀x(¬Q(x) ∨ S(x)), ∀x(R(x) → ¬S(x)), and ∃x¬P (x) are true, then ∃x¬R(x) is true. Solution: Step Reason
Exercise 5: Show that if n is an integer and n^3 + 5 is odd, then n is even using (a) a proof by contraposition. (b) a proof by contradiction Solution: (a) We must prove the contrapositive. If n is odd, then n^3 + 5 is even. Assume that n is odd. Then we can write n = 2k + 1 for some integer k. Then n^3 + 5 = (2k + 1)^3 + 5 = 8k^3 + 12k^2 + 6k + 6 = 2(4k^3 + 6k^2 + 3k + 3). Thus n^3 + 5 is two times some integer, so it is even. (b) Suppose that n^3 +5 is odd and that n is odd. Since n is odd, and the product of odd numbers is odd, in two steps we see that n^3 is odd. But then subtracting we conclude that 5, being the difference of the two odd numbers n^3 + 5 and n^3