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)