0

Let k be a positive integer. Show that $f(i) = 1^k+2^k+...+n^k$ is $O(n^{k+1})$.

Hi, I know that $f(i) ≤ \int\limits_{1}^{n+1}x^{k}dx$

When I integrate f(i) using this rule, I get $\frac{((n+1)^{k+1}-1)}{(k+1)}$

How do I use this information to prove that $f(i)$ is $O(n^{k+1})$?

(the use of the integral is required for this problem by my teacher)

0 Answers0