

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!


**1. Find the value of
j 0 i
i 1 5
(i 1 ) 2 3 4 5 6 20 i 1 5
4. Let k be a positive integer. Show that 1k+2k+…+nk^ is O(B nk+1). 1 k 2 k ... n k (n 1 ) k (n 1 ) k ... (n 1 ) k n k (n 1 ) k 1 n k (n 1 )(n 1 ) k n k
To show that the sum is O(B nk+1), we must find constant C such that |1k+2k+…+nk^ | C|nk+1| when k > 0. From the above it is clear that this is so when C = 1.
5. Find a closed form solution for
n . 1 1 1 1 1 1 1 1 1 1 1 ... 3 1 2 1 2 1 1 1 1 1 1 1 ^ ^ ^ n n n n n n n i i n i Note that this solution uses a telescoping sum.
6. Use mathematical induction to prove that
2 n ^
for all positive integers n. Basis Case First we show that the closed form solution works for the smallest positive integer, 1. 1 i
i 1
i 1 2
Inductive Case: Assume that
2 n ^
We must show that
in 1 2 (n 1 ) ^