Let k be a positive integer. Show that 1^k + 2^k + 3^k + ... + n^k is

O(n^k+1).

Printable View

- October 9th 2008, 07:37 PMaaronrjBig O Proof
Let k be a positive integer. Show that 1^k + 2^k + 3^k + ... + n^k is

O(n^k+1). - October 9th 2008, 08:50 PMTwistedOne151
Consider the integral . Suppose we consider a Riemann sum with the interval divided into n rectangles of width 1, and with the height of the rectangles being the value of the integrand at the right side of each subdivision. Then this sum is an upper bound on the integral (as our function is increasing on our interval, because k>0), and is equal to , our sum. Thus .

Now, let us similarly do the Riemann sum with n subdivisions of width 1, but this time let the height of the rectangles be the value at the left side of each. Then we have a lower bound on our integral, and our sum is . Thus

and by replacing n with n+1, we find

Thus

Do both of those integrals, and the resulting bounds will allow you to show that the sum is O(n^(k+1))

--Kevin C. - October 10th 2008, 04:35 AMLaurent