

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!


a) an = n 2 + 3 n+ 2 , n = 1, 2,3,L 2 2 a 1 = 6, an (^) + 1 = ( n +1) + 3( n + 1) + 2 = n + 3 n + 2 + 2 n + 4 = an + 2 n+ 4 b) an = log ( !) 2 n , n = 1, 2,3,L a 1 = log 1! 2 = 0, an (^) + 1 = log (( 2 n + 1)!) = an + log ( 2 n+1) c) a n = 2 n^ + −( 2) n, n = 1, 2,3,L
1 1 2 1 1
, is even 0, 8, 4 , is odd
n n n
a n a a a a n
−
−
d) The set of positive integers congruent to 3 modulo 5. 3 ∈ S , and if x ∈ S , then x + 5 ∈S e) S = {( ,a b ) | a ∈ Z +^ , b ∈ Z +, and a +bis odd} (1, 2) ∈ S , (2,1) ∈ S , and if ( ,a b ) ∈ S , then ( a + 1, b + 1) ∈ S , ( a + 2, b) ∈ S , and ( ,a b + 2)∈S
a) We want to find a bound for each term of the sequence. (10 points, 6+2+2)
n n n n n n a n − − − −
n n n n n a n − − + +
6 points, 1 for the base case, 2 for the IH, 3 for the inductive step.
n a n − − ≤^ or^
2 2 2
n an − − ≤^ simply because they are not stated in the hypothesis.
b) We want not only a bound for each term, but also the exact value of each term. (12 points, 4+4+4)
4 points, 0.5 point for each base case, 2 points for the recursive step. 0.5 point for other issues.
4 points, 2 points for setting up the base cases appropriately, 2 for the iterative part.