



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!




MATH-2800 Mid-term Test - October 24, 2011.
(a) (5 points) Rewrite (p → q) → (r → q) using only ∨ and ¬.
Solution:
(p → q) → (r → q) ≡ ¬(¬p ∨ q) ∨ (¬r ∨ q) ≡ (p ∧ ¬q) ∨ q ∨ ¬r ≡ [(p ∨ q) ∧ (q ∨ ¬q)] ∨ ¬r ≡ [(p ∨ q) ∧ T ] ∨ ¬r ≡ [(p ∨ q)] ∨ ¬r ≡ p ∨ q ∨ ¬r
(b) (5 points) Rewrite the negative of (p → q) → (r → q) using only ∧ and ¬. (Hint: Use the answer obtained above.)
Solution: Starting from the result above allows the solution to be derived in a single step using a de Morgan rule.
¬[(p → q) → (r → q)] ≡ ¬(p ∨ q ∨ ¬r) ≡ ¬p ∧ ¬q ∧ r
(c) (5 points) Find a proposition with three variables, p, q and r that is true when an odd number of the variables are true and false otherwise.
Solution: One possibility is:
(p ∧ q ∧ r) ∨ (p ∧ ¬q ∧ ¬r) ∨ (¬p ∧ q ∧ ¬r) ∨ (¬p ∧ ¬q ∧ r)
Note that each “or” ends up being exclusive. This is because any pair of triples contains either p and ¬p, q and ¬q, or r and ¬r. It is valid to substitute each ∨ with ⊕, but unnecessary. (d) Let x refer to students at RPI and let y refer to courses at RPI. The following
definitions are given:
M (y) Course y is a Math course. U (y) Course y is an upper-level course. F (x) Student x is a freshman. P (x) Student x is part-time. T (x, y) Student x is taking course y. Rewrite the following statements using the predicates given above together with quantifiers as needed.
Solution: Note that I am using ¬P (x), “student x is not part-time” to mean “student x is full-time”. ∀x(F (x) → ¬P (x)).
Solution: ∀x∃y((F (x) ∧ P (x)) → (U (y) ∧ T (x, y))).
(a) (10 points) A and B are subsets of U = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 }. If A¯ = { 7 , 8 , 9 , 10 , 11 , 12 } and B¯ = { 4 , 5 , 6 , 10 , 11 , 12 }, find A ∪ B and A ∩ B.
Solution: Solving this problem requires the use of de Morgan’s rules applied to sets. From what is given, we easily observe that
A¯ ∪ B¯ = { 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 } and A¯ ∩ B¯ = { 10 , 11 , 12 }.
Then
A ∪ B = A ∪ B = A¯ ∩ B¯ = { 10 , 11 , 12 } = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } and A ∩ B = A ∩ B = A¯ ∪ B¯ = { 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 } = { 1 , 2 , 3 }.
(b) (5 points) Define f (x) : [0, a] → [− 1 , 1] by f (x) = cos x where a > 0 is a real number. What is the largest value of a for which f is injective?
Solution: The cosine function is 1 at 0 and decreases strictly to 0 at π/2 and to −1 at π. It’s range is [− 1 , 1]. Clearly f (x) is injective for all a up to and including π. It is not injective for a > π since cos(π + x) = cos(π − x). The answer is a = π. Note that f (x) is surjective if a = π, but not if a < π. (c) (5 points) Let A be the subset of all positive real numbers less than one whose decimal expansion contains only even digits: { 0 , 2 , 4 , 6 , 8 }. Is A a proper subset of (0, 1)?. What is the cardinality of A? (Choose from: finite, countably infinite, uncountably infinite.)
Solution: A is a proper subset of (0, 1) since, for example 0.135 is a rational number not in A. A is clearly uncountably infinite.
(c) (10 points) Compute a = 57^4266 mod 61 without using a calculator. Express a as an integer between 0 and 61. (Note that 4266 = 69 ∗ 61 + 57 = 70 ∗ 61 − 4 = 71 ∗ 60 + 6 = 72 ∗ 60 − 54.) 61 is prime, so a^60 ≡ 1 mod 61 as long a a is not a multiple of 61. Note also that 57 ≡ − 4 mod 61. Then
574266 ≡ (57^60 )^71576 mod 61 ≡ 171 (−4)^6 mod 61 ≡ 46 mod 61 ≡ 642 mod 61 ≡ 32 mod 61 ≡ 9 mod 61.
(a) (10 points) Prove by mathematical induction that
∑^ n
i=
i ∗ i! = (n + 1)! − 1 ,
for all n ≥ 1.
Solution: For a positive integer n, let P (n) be the proposition that
∑^ n
i=
i ∗ i! = (n + 1)! − 1.
To verify P (1), note that the LHS is 1 ∗ 1! = and that the RHS is 2! − 1 = 1, so P (1) is true. Now assume that P (n) is true for some n ≥ 1. Then
∑^ n+
i=
i ∗ i! =
∑^ n
i=
i ∗ i! + (n + 1)(n + 1)!
= (n + 1)! − 1 + (n + 1)(n + 1)! by the induction hypothesis = (n + 1)!(1 + (n + 1)) − 1 = ((n + 1) + 1)! − 1 ,
so P (n) → P (n + 1). This completes the proof. (b) (10 points) Suppose that you have only 3 cent and 10 cent stamps. Prove that any postage of n cents can be formed exactly using these stamps as long as n > 17.
Solution: For a positive integer n, let P (n) be the proposition that a postage of n cents can be formed exactly using 3 cent or 10 stamps. Then P (n) is equivalent to the statement that n = 3a + 10b for non-negative integers a and b. Observe
that P (18) is true, since 18 = 3 ∗ 6, P (18) is true. (It is easy to see that P (17) is false.) Now suppose that P (n) is true for some n ≥ 18. Then there are non-negative integers a and b such that n = 3a + 10b. If b ≥ 2, then n + 1 = 3(a + 7) + 10 ∗ (b − 2) and both a + 7 and b − 2 are non-negative. If b < 2, then 3a must be at least n − 1 ∗ 10 ≥ 18 − 10 = 8, forcing a ≥ 3. In this case, n + 1 = 3(a − 3) + 10(b + 1), and both a − 3 and b + 1 are non-negative. This means that P (n) → P (n + 1), completing the proof. (c) (10 points) For any positive integer n, suppose that there are n^2 + 1 points {(xi, yi)}n (^2) + i=1 in the unit square defined by 0^ ≤^ x^ ≤^ 1 and 0^ ≤^ y^ ≤^ 1.^ Prove that there is at least one pair of points, (xi, yi) and (xj , yj ) (i 6 = j) such that the
distance between them is ≤
n
Solution: Since the first two problems in this part are solved by induction, it’s clear that you are meant to use the pigeonhole principle to solve this one. The unit square can be partitioned into n^2 squares of dimensions (^) n^1 × (^) n^1. A bit of care must be taken to make sure the regions are disjoint, but that is a detail and not related to the essence of the problem. For 0 ≤ i < n and 0 ≤ j < n, let
Bi,j =
[ (^) i n
i + 1 n
[ (^) j n
j + 1 n
replacing ) by ] when i = n − 1 or j = n − 1 as appropriate. This partitions [0, 1]^2 into n^2 boxes. Given that there are n^2 + 1 points in the unit square, there must be two different points in the same box. Suppose that (xi, yi) and (xj , yj ) are in some Bh,k. Then |xi − xj | ≤ (^1) n and |yi − yj | ≤ (^) n^1. Then
√ (xi − xj )^2 + (yi − yj )^2 ≤
n^2
n^2
=
n
This is a lot to write, especially on a test when time is limited. An example of a perfectly acceptable solution is: Divide the unit square into n^2 equal size squares of size 1/n by 1/n. Out of n^2 + 1 points, there must be at least two in the same sub-square. The distance between them is ≤ the length of the diagonal, which is
2 /n.