Math 210 Exam 2 - Practice Problems. 1. For each of the following, determine whether the statement is True or False.

Similar documents
Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Review 1. Andreas Klappenecker

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

Propositional Logic, Predicates, and Equivalence

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Functions as Relations

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers

PRINCIPLE OF MATHEMATICAL INDUCTION

Exam Practice Problems

Problem Set 5 Solutions

Midterm Preparation Problems

Recitation 7: Existence Proofs and Mathematical Induction

0 Sets and Induction. Sets

Proofs. Joe Patten August 10, 2018

All numbered readings are from Beck and Geoghegan s The art of proof.

MATH 2200 Final LC Review

Functions. Given a function f: A B:

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Discrete Mathematics. Spring 2017

Equivalence of Propositions

A n = A N = [ N, N] A n = A 1 = [ 1, 1]. n=1

1 Homework. Recommended Reading:

Practice Exam 1 CIS/CSE 607, Spring 2009

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

Direct Proof Universal Statements

Chapter 1 The Real Numbers

Lecture Notes: Mathematical/Discrete Structures

Sydney University Mathematical Society Problems Competition Solutions.

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

ASSIGNMENT 1 SOLUTIONS

MTH 299 In Class and Recitation Problems SUMMER 2016

Math 230 Final Exam, Spring 2009

The Process of Mathematical Proof

In 1854, Karl Weierstrauss gave an example of a continuous function which was nowhere di erentiable: cos(3 n x) 2 n. sin(3 n x), 2

Mathematical Fundamentals

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

IVA S STUDY GUIDE FOR THE DISCRETE FINAL EXAM - SELECTED SOLUTIONS. 1. Combinatorics

1.1 Inductive Reasoning filled in.notebook August 20, 2015

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

MATH CSE20 Homework 5 Due Monday November 4

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

Section 4.4 Functions. CS 130 Discrete Structures

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

MAT 300 RECITATIONS WEEK 7 SOLUTIONS. Exercise #1. Use induction to prove that for every natural number n 4, n! > 2 n. 4! = 24 > 16 = 2 4 = 2 n

Math 3000 Section 003 Intro to Abstract Math Homework 6

Math Fall 2014 Final Exam Solutions

447 HOMEWORK SET 1 IAN FRANCIS

MATH 2200 Final Review

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

1 Basic Combinatorics

DISCRETE MATH: FINAL REVIEW

With Question/Answer Animations. Chapter 2

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Spring

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Part II. Number Theory. Year

Review 3. Andreas Klappenecker

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

Mathematical Structures Combinations and Permutations

Chapter 2 - Basics Structures

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

3.4 Set Operations Given a set A, the complement (in the Universal set U) A c is the set of all elements of U that are not in A. So A c = {x x / A}.

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

A Guide to Proof-Writing

Name CMSC203 Fall2008 Exam 2 Solution Key Show All Work!!! Page (16 points) Circle T if the corresponding statement is True or F if it is False.

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Written Homework # 4 Solution

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Analysis of California Mathematics standards to Common Core standards Algebra I

Example: Use a direct argument to show that the sum of two even integers has to be even. Solution: Recall that an integer is even if it is a multiple

Appendix G: Mathematical Induction

Logic, Sets, and Proofs

Quiz 1. Directions: Show all of your work and justify all of your answers.

REVIEW FOR THIRD 3200 MIDTERM

HOMEWORK ASSIGNMENT 6

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

Consider an infinite row of dominoes, labeled by 1, 2, 3,, where each domino is standing up. What should one do to knock over all dominoes?

Name (please print) Mathematics Final Examination December 14, 2005 I. (4)

Discrete Structures Homework 1

Sequences. Chapter 3. n + 1 3n + 2 sin n n. 3. lim (ln(n + 1) ln n) 1. lim. 2. lim. 4. lim (1 + n)1/n. Answers: 1. 1/3; 2. 0; 3. 0; 4. 1.

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

CS Discrete Mathematics Dr. D. Manivannan (Mani)

1. From Lewis Carroll: extract a pair of premises and finish the conclusion.

Mathematical Induction

Transcription:

Math 20 Exam 2 - Practice Problems. For each of the following, determine whether the statement is True or False. (a) {a,b,c,d} TRE (b) {a,b,c,d} FLSE (c) {a,b, } TRE (d) {a,b, } TRE (e) {a,b} {a,b} FLSE (f) 0 {0,{},{0,}} TRE (g) {0,{},{0,}} FLSE (h) {0,} {0,{},{0,}} TRE (i) {0,} {0,{},{0,}} FLSE 2. Given the set = {a,b,{a,b}} (a) Find. (b) Find P() = 3 P() = {,{a},{b},{{a,b}},{a,b},{a,{a,b}},{b,{a,b}},{a,b,{a,b}}} 3. Given that = {,2,3} and = {a,b,c,d,e,f} (a) List the elements in. = {(,),(,2),(,3),(2,),(2,2),(2,3),(3,),(3,2),(3,3)} (b) How many elements are in? = = 3 6 = 8. (c) How many elements are in ( )? First notice that = = 6 6 = 36. Then ( ) = = 3 36 = 08. 4. Find the set of all elements that make the predicate Q(x) : x 2 < x true (where the domain of x is all real numbers). First notice that if x >, then x x > x, so x 2 > x. If x < 0, then since x 2 > 0 for all real x, x 2 > 0 > x. If x = 0, then 0 2 = 0. Similarly, if x =, then 2 =. If 0 < x <, then x x < x, or x 2 < x. Hence the set of all elements that make the predicate Q(x) : x 2 < x true is = {x 0 < x < }. 5. Given that = {0,2,4,6,8,0,2}, = {0,2,3,5,7,,2} and = {,2,3,4,6,7,8,9} are all subsets of the universal set = {0,,2,3,4,5,6,7,8,9,0,,2}, find each of the following: (a) = {4,6,8,0} (b) = {,3,5,7,9,} (c) = {0,2,2} (d) ( ) = {2,3,7}, so ( ) = {0,2,3,4,6,7,8,0,2} (e) ( ) = {,4,6,8,9,0}, so = {2,3,7,0}. Hence ( ) = {0,4,6,8,2} (f) ( ) ( ) = {2,4,6,8}, = {,3,5,7,9,}, and so = {0,2,2}. Thus ( ) ( ) = {0,2,4,6,8,2}

6. Draw Venn Diagrams representing each of the following sets: (a) (c) ( ) (e) ( ) (b) (d) (f) ( ) 7. se a membership table to show that ( ) ( ) = ( ). ( ) ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Since the last columns of these membership tables are identical, these two sets are equal. 8. se a 2-column proof to verify the set identity: ( ) =. Statement Reason ( ) Given = {x (x ) [(x ) (x )]} Definition of union and definition of intersection. = {x x } bsorption Law for logical statements. = Definition of The proof given in the table above verifies that these sets are equal, so this identity is always valid. 9. For each of the following, either prove the statement or show that it is false using a counterexample. (a) ( ) = ( ) FLSE. onsider the counterexample: = {,2,3,4}, = {2,3,5}, and = {3,4,5,6}. Then = {,4}, so ( ) = {}, while = {2}, so ( ) = {,3,4}. Then ( ) ( )

(b) ( ) = ( ) We will prove this equality using membership tables: ( ) ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Since the last columns of these membership tables are identical, these two sets are equal. (c) ( ) = ( ) ( ) ( ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ( ) ( ) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Since the last columns of these membership tables are identical, these two sets are equal. 0. onsider the function f(x) = x (a) Suppose that the domain of this function is R and the co-domain is R. Find the range of f. Is f -? Is f onto? Justify your answers. Recall that if x 0, then f(x) = x and if x < 0, then f(x) = x. From this, we see that the range of f is {x : x R,x 0}. Notice that f() = f( ) =, so f is not one-to-one. ased on the range we found, we see that f is not onto. For example, there is no x that maps to. (b) Suppose that the domain of this function is N and the co-domain is N. Find the range of f. Is f -? Is f onto? Justify your answers. If we change the domain and co-domain to N, then f has range {x : x N} = N. Thus f is onto. With the given domain and co-domain, f is also one-to-one, since on this domain, f(x) = x for all x N. (c) Suppose S = { 2,,0,,2}. Find f(s) (the image of the set S under f). Find f (S) (the preimage of the set S under f). f(s) = {0,,2}. However, since 2 and are not legal images, f (S) is undefined.

. For each of the following functions, determine whether f is a one-to-one. lso determine whether f is onto. Justify your answers. (a) f : R R, f(x) = x 3 x Notice that f(0) = f() = 0. Therefore, f is not one-toone. To see that f is onto, notice that f (x) = 3x 2, so f (x) 0 whenever x (d) f : Z Z Z f(m,n) = m 2 n 2 3 3. From this, we can deduce that f is increasing both on (, ] and on [, ). lso, note that lim f(x) = and lim f(x) =. x x Finally, since f() = 0 and f( ) = 0, f attains all positive values in R on the interval [, ), and f attains all negative values in R on the interval (, ]. Thus f is onto. (b) f : R + R + f(x) = x 2 Notice that since we have restricted the domain to include only positive values, if f(a) = f(b), then a 2 = b 2, so a = b. Hence f is one-to-one. lso, if we consider k R + and let x = k (which is defined since k 0). Then f(x) = ( k) 2 = k. (c) f : Z Z Z f(m,n) = m 2 n f is not one-to-one, since f(,) = f(,) = f(0,0) = 0. f is onto. To see this, let k N. Let m = 0, and n = k. Then f(m,n) = 0 ( k) = k. f is not one-to-one, since f(,) = f(,) = f(0,0) = 0. f is not onto. To see this, let k = 6. Now, the square numbers are 0,,4,9,6,25,36,... If we subtract consecutive squares, as we proved on a previous homework exercise, we get the odd numbers,3,5,7,9,,. To obtain an even difference, we must subtract nonconsecutive squares. Notice that 4 0 = 4, 9 = 8, and 6 4 = 2. Since our previous result shows that the difference between perfect squares increases as their size increases, we can see that there is no way of writing 6 as a difference of two perfect squares. Hence f is not onto. [Notice that we could prove that the difference between twoperfectsquaresiseitheroddorisamultipleof4, but that goes beyond what was asked for in this problem.] 2. Prove or Disprove: Suppose f : and g :. If f is one-to-one and g is onto, then f g is one to one. This statement is false. For example, Let = = = N consider f(n) = n and g(n) = n 2. f is the identity map, so f is one-to-one. g is onto since g(2n) = n for all n. However, notice that (f g)(n) = g(n) for all n. Therefore, f g is not one-to-one, since (f g)() = (f g)(2) =. 3. Prove or Disprove: Suppose f : and g :. If f is one-to-one and g is onto, then f g is onto. This statement is false. For example, Let = = = N consider f(n) = 2n and g(n) = n. g is the identity map, so g is one-to-one. f is one-to-one since if f(a ) = f(a 2 ), then 2a = 2a 2, so a = a 2. However, notice that (f g)(n) = 2n for all n. Therefore, f g is not onto, since there is no input n such that (f g)(n) =. 4. Find the first five terms of each of the following sequences (start with n = ): (a) a n = 3n (b) b n = ( ) n n 2 (c) c n = n n a = 2, a 2 = 5, a 3 = 8, a 4 =, a 5 = 4 b =, b 2 = 4, b 3 = 9, b 4 = 6, b 5 = 25 c = 0 =, c 2 = 2 = 2, c 3 = 3 2 = 9, c 4 = 4 3 = 64, c 5 = 5 4 = 625 (d) a n = 2a n, a 0 = 5 (e) b n = b n +n 2, b 0 = 7 (f) c n = c n +nc n 2, c 0 = 2, c = 3 a = 0, a 2 = 20, a 3 = 40, a 4 = 80, a 5 = 60 b = 7 + = 8, b 2 = 8 + 4 = 2, b 3 = 2+9 = 2, b 4 = 2+6 = 37, b 5 = 37+25 = 62 c = 3, c 2 = 3 + 2(2) = 7, c 3 = 7+3(3) = 6, c 4 = 6+4(7) = 44, c 5 = 44+5(6) = 24 5. Find three different sequences beginning with the terms a =, a 2 = 2 and a 3 = 4. There are many possible answers to this question. Here are some possibilities: a n = 2 n b n = b n +b n 2 +; b = ; b 2 = 2 c n = 2c n ; c =

6. Determine whether or not each of the following is a solution to the recurrence relation a n = 8a n 6a n 2 (a) a n = 0 (b) a n = 2 n Notice that if a n = 0 for all n, then 8a n 6a n 2 = 8(0) 6(0) = 0 = a n, so this sequence is a solution to the given recurrence relation. Notice that if a n = 2 n for all n, then 8a n 6a n 2 = 8(2 n ) 6(2 n 2 ) = 4 2 2 n 4 4 2 n 2 = 4 2 n 4 2 n = 0 a n, so this sequence is not a solution to the given recurrence relation. (c) a n = n4 n (d) a n = 2 4 n +3n 4 n Notice that if a n = n4 n for all n, then 8a n 6a n 2 = 8((n )4 n ) 6((n 2)4 n 2 ) = 2(4)4 n (n ) 4 2 4 n 2 (n 2) = 2(4 n )(n ) 4 n (n 2) = 4 n [2(n ) (n 2)] = 4 n [2n 2 n+2] = 4 n n = n4 n, sothissequenceisasolutiontothegivenrecurrence relation. Notice that if a n = 2 4 n + 3n 4 n for all n, then 8a n 6a n 2 = 8(2 4 n +3(n ) 4 n ) 6((2 4 n 2 + 3(n 2) 4 n 2 ) = 8 4 n [2+3(n )] 6 4 n 2 [2+3(n 2)] = 2 4 n [2+3n 3] 4 n [2+3n 6] = 4 n [2(3n ) 3n 4] = 4 n (3n+2) = 2 4 n + 3n 4 n, so this sequence is a solution to the given recurrence relation. 7. Find a recurrence relation satisfying each of the following: (a) a n = 3n 2 a n = a n +3; a = (b) a n = 3 n a n = 3a n +3; a 0 = (c) a n = n 2 a n = a n +2n ; a 0 = 0 8. Find the solution to each of the following recurrence relations and initial conditions (a) a n = 4a n, a 0 = Notice that a n = 4a n and a n = 4a n 2. Therefore, a n = 4(4a n 2 ) = 4 2 a n 2. ontinuing in this fashion, a n = 4 2 a n 2 = 4 2 (4a n 3 ) = 4 3 a n 3 = = 4 n a 0 where a 0 =. Hence this sequence has explicit form: a n = 4 n. (b) a n = a n +4, a 0 = 4 Notice that a n = a n +4 and a n = a n 2 +4. Therefore, a n = (a n 2 +4)+4 = a n 2 +2(4). ontinuing in this fashion, a n = a n 2 +2(4) = (a n 3 +4)+2(4) = a n 3 +3(4) = = a 0 +n(4) where a 0 = 4. Hence this sequence has explicit form: a n = 4n+4. (c) a n = a n +n, a 0 = Notice that a n = a n +n and a n = a n 2 +(n ). Therefore, a n = a n 2 +(n )+n. ontinuing in this fashion, a n = a n 3 +(n 2)+(n )+n = = a 0 + n k where a 0 =. Hence a n = + n n(n+) k = + 2 = n2 +n+2 2 9. ompute the value of each of the following summations: (a) 5 2k = 2+4+6+8+0 = 30 (b) 3 3 i = +3+9+27 = 40 (c) i=0 3 j=3 5 = (5) = 55 (d) (e) (f) 5 2 j 2j = (4 4)+(8 6)+(6 8)+(32 0) = 0+2+8+22 = 32 j=2 3 2 3 ij 2 ( = i(0 2 )+i( 2 )+i(2 2 ) ) 3 = 5i = 5()+5(2)+5(3) = 30 i= i= i= 2 2 2 ij 2 ( = j 2 +2j 2) 2 = 3j 2 = 3(0)+3()+3(2) = 9 i=

20. Prove that n 5 n is divisible by 5 for any non-negative integer n. We will proceed by induction. ase ase: n = 0 Notice that 0 5 0 = 0. Since 5 0 = 0, 0 is divisible by 5. Induction Step: Suppose that k 5 k is divisible by 5, and consider (k +) 5 (k +). Expanding this, (k+) 5 (k+) = (k 5 +5k 4 +0k 3 +0k 2 +5k+) (k+) = k 5 +5k 4 +0k 3 +0k 2 +(5k k) = 5k 4 +0k 3 +0k 2 +5k +(k 5 k). Since 5 divides k 5 k, by the induction hypothesis, 5 divides every term of the previous expression. This 5 divides (k +) 5 (k +). Hence n 5 n is divisible by 5 for any non-negative integer n.. 2. Prove that for r R, r and for all integers n, r j = rn+ r We will proceed by induction. ase ase: n = 0. Then r ). r j = r 0 =. While rn+ r = r r = (provided Induction Step: Suppose that k r j = rk+ r k+ and consider r j. k+ Then r j = k = rk+ +r k+2 r k+ r 22. Prove that for all n 2, r j +r k+ = rk+ r = rk+2 r k 2 < 2 n +r k+ = rk+ r We will proceed by induction. ase ase: n = 2. Then Induction Step: Suppose n+ n k 2 =. 2 k 2 < 2 n+ n and consider k 2. + rk+ (r ) r k 2 + (n+) 2 < 2 n + (n+) 2 = 2 n2 +2n+ n(n+) 2 + k 2 = + 4 = 5 4 < 2 2 = 3 2. n n(n 2 +2n+) = 2 n2 +n+ n(n+) 2 = 2 n2 +n n(n+) 2 n(n+) 2 = 2 n+ n(n+) 2 < 2 n+ Hence for all n 2, k 2 < 2 n. 23. Prove that n! < n n whenever n >. ase ase: n = 2. Then 2! = 2 while 2 2 = 2. Then 2 < 4. Induction Step: Suppose k! < k k and consider (k +)! Lemma: If 0 < x < y, then x n < y n for all n. ase ase: When n =, x < y. Inductive step: If x n < y n, then x x n = x n+ < x y n. Similarly, x y n < y y n = y n+ Hence x n+ < y n+.. pplying the Lemma, Since k < k +, k k < (k +) k. y the induction hypothesis, (k +)! = k!(k +) < k k (k +). Thus (k +)! < (k +) k (k +) = (k +) k+.

24. Prove that for all n, ase ase: n =. Then Induction Step: Suppose (2k )(2k +) = n 2n+ n+ sing the induction hypothesis, (2k )(2k +) = ()(3) = 3, while n 2n+ = 2+ = 3 (2k )(2k +) = n n+ 2n+ and consider (2k )(2k +). (2k )(2k +) = n 2n+ + (2n+)(2n+3) = = 2n2 +3n+ (2n+)(2n+3) = (2n+)(n+) (2n+)(2n+3) = n+ 2n+3 = n+ 2(n+)+. n(2n+3) (2n+)(2n+3) + (2n+)(2n+3)