

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Supplementary exercises for cs 1050b students studying chapter 1 (logic and proofs) and chapter 4 (induction and recursion) of rosen's discrete mathematics text. The exercises cover various topics such as proving irrational numbers, mathematical induction, and recursive sequences.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


n is irrational whenever n is a positive integer that is not a perfect square, prove that
3 is irrational.
Prove that between every two rational numbers there is an irrational number.
(2n − 1)(2n + 1)
n 2 n + 1
whenever n is a positive integer.
a) an = 5 b) an = 10n c) an = n + (−1)n d) an = n!(n^2 + 2) (This was the first problem from quiz 1. Check out the solution if you are stuck. We are expecting that you will be able to write up the solution in the same way during the final exam.)
a) an = an− 1 + 2n + 3, a 0 = 4 b) an = 2an− 1 − 1 , a 0 = 1 c) an = 2nan− 1 , a 0 = 1
Suppose that the votes of n people for different candidates (where there can be more than two candidates) for a particular office are the elements of a sequence. A person wins the election if this person receives a majority of the votes.
a) Devise a divide-and-conquer algorithm that determines whether a candidate received a majority and, if so, determine who this candidate is. [Hint: Assume that n is even and split the sequence of votes into two sequences, each with n/2 elements. Note that a candidate could not have received a majority of votes without receiving a majority of votes in at least one of the two halves.] b) Use the Master Theorem to estimate the number of comparisons needed by the algorithm you devised in part 1.
2 apart.
Solution: See supplementary 2 solution key.
a) How many ways are there to pick out 5 cards (a 5-card hand) in a 52-card deck? b) How many 5-card hands are there that contains no pairs? c) What is the probability that a 5-card hand contains no pairs?