Docsity

Exam 2 Study Guide - Discrete Structures | CSE 2813, Study notes of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Page 1
Practice problems for Test 2
1.
Find the prime factorization of 45,617.
2.
Find 289 mod 17.
3.
Find gcd(2
89
,2
346
) by directly finding the largest divisor of both numbers.
4.
Find lcm(20!,12!) by directly finding the smallest positive multiple of both numbers.
5.
Find an integer a such that a ≡ 3a (mod 7).
6.
7.
Suppose you wish to use the Principle of Mathematical Induction to prove that 1 ⋅ 1! + 2
⋅ 2! + 3 ⋅ 3! + ... + n ⋅ n! = (n + 1)! − 1 for all n ≥ 1.
(a) Write
P(1)
(b) Write P(5)
(c) Write
P(k)
(d) Write
P(k + 1)
(e) Use the Principle of Mathematical Induction to prove that
P(n)
is true for all n ≥ 1
8.
Find f (2)
and f (3)
if
f (n) = f (n − 1) / f (n − 2)
,
f (0) = 2
,
f (1) = 5
.
Use the following to answer questions 9-12:
In the questions below suppose that a “word” is any string of seven letters of the alphabet,
with repeated letters allowed.
9.
How many words are there?
10.
How many words end with the letter T?
pf3
pf4

Partial preview of the text

Download Exam 2 Study Guide - Discrete Structures | CSE 2813 and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Page 1

Practice problems for Test 2

  1. (^) Find the prime factorization of 45,617.
  2. Find 289 mod 17.
  3. (^) Find gcd(2^89 , 2346 ) by directly finding the largest divisor of both numbers.
  4. (^) Find lcm(20!, 12 !) by directly finding the smallest positive multiple of both numbers.
  5. Find an integer a such that a ≡ 3 a (mod 7).
  6. (^) Use the Principle of Mathematical Induction to prove that 1 + 2 n^ ≤ 3 n^ for all n ≥ 1.
  7. (^) Suppose you wish to use the Principle of Mathematical Induction to prove that 1 ⋅ 1! + 2 ⋅ 2! + 3 ⋅ 3! + ... + n ⋅ n! = ( n + 1)! − 1 for all n ≥ 1. (a) Write P (1) (b) Write P (5) (c) Write P ( k ) (d) Write P ( k + 1) (e) Use the Principle of Mathematical Induction to prove that P ( n ) is true for all n ≥ 1
  8. (^) Find f (2) and f (3) if f ( n ) = f ( n − 1) / f ( n − 2), f (0) = 2 , f (1) = 5.

Use the following to answer questions 9-12:

In the questions below suppose that a “word” is any string of seven letters of the alphabet, with repeated letters allowed.

  1. How many words are there?
  2. How many words end with the letter T?

Page 2

  1. How many words begin with a vowel and end with a vowel?
  2. How many words begin with a vowel or end with a vowel?

Use the following to answer questions 13-14:

In the questions below nine people (Ann, Ben, Cal, Dot, Ed, Fran, Gail, Hal, and Ida) are in a room. Five of them stand in a row for a picture.

  1. In how many ways can this be done if Ben is to be in the picture?
  2. In how many ways can this be done if both Ed and Gail are in the picture?

Use the following to answer questions 15-16:

In the questions below a club with 20 women and 17 men needs to form a committee of size six.

  1. How many committees are possible?
  2. How many committees are possible if the committee must have three women and three men?
  3. (^) Use the binomial theorem to expand (2 a + b )^4.
  4. A factory makes automobile parts. Each part has a code consisting of a digit, a letter, and a digit, with the digits distinct, such as 5C7, 1O6, or 3Z0. Last week the factory made 5,000 parts. Find the minimum number of parts that must have the same serial number.
  5. (^) Verify that an = 3 n^ + 1 is a solution to the recurrence relation an = 4 an − 1 − 3 an − 2.

Page 4

Answer Key

  1. P (1): 1 + 21 ≤ 31 , which is true since both sides are equal to 3. P ( k ) → P ( k + 1): 1 + 2 k^ +^1 = (1 + 2 k ) + 2 k^ ≤ 3 k^ + 2 k^ ≤ 3 k^ + 3 k^ = 2 ⋅ 3 k^ < 3 ⋅ 3 k^ = 3 k^ +^1.
  2. (^) (a) 1 ⋅ 1! = 2! − 1. (b) 1 ⋅ 1! + 2 ⋅ 2! + ... + 5 ⋅ 5! = 6! − 1. (c) 1 ⋅ 1! + 2 ⋅ 2! + ... + k ⋅ k! = ( k + 1)! − 1. (d) 1 ⋅ 1! + 2 ⋅ 2! + ... + ( k + 1)( k + 1)! = ( k + 2)! − 1. (e) P (1) is true since 1 ⋅ 1! = 1 and 2! − 1 = 1. P ( k ) → P ( k + 1): 1122(1)(1) (1)1(1)(1) (1)[1(1)] (1)(2) (2)

kk kkk kk kk k

.

  1. (^) f (2) = 5 / 2 , f (3) = 1 / 2.
  2. (^25) ⋅ 26^5.
  3. (^5) ⋅ 26^6 + 5 ⋅ 26^6 − 25 ⋅ 26^5.
  4. (^5) P (8,4).
  5. (^5) ⋅ 4 ⋅ P (7,3).
  6. (^37) 6

 ^.

  1. (^2017) 33

 ^.

  1. 16 a^4 + 32 a^3 b + 24 a^2 b^2 + 8 ab^3 + b^4.
  2. (^) The number of codes is 10 ⋅ 26 ⋅ 9 = 2 ,340. Since  6 , 000 / 2 , 340  = 3, at least three parts have the same code number.
  3. (^) 4(3 n^ −^1 + 1) − 3(3 n^ −^2 + 1) = 4 ⋅ 3 n^ −^1 − 3 n^ −^1 + 4 − 3 = 3 n^ −^1 (4 − 1) + 1 = 3 n^ + 1.
  4. (^) an = (− 7 /4)(−7) n^ + (15/4) ⋅ (−3) n.