I know that these are some existing sums that are true: $$\sum_{r=1}^{n}r = \frac{n(n+1)}{2} = \mathcal{O}(n^2)$$ $$\sum_{r=1}^{n}r^2 = \frac{n(n+1)(2n+1)}{6} = \mathcal{O}(n^3)$$ $$\sum_{r=1}^{n}r^3 = \frac{n^2(n+1)^2}{4} = \mathcal{O}(n^4)$$
I may be butchering the definition of Big O' Notation, but I believe it describes the form of the function, i.e. the highest power of $n$ in these cases. Is there a proof for: $$\sum_{r=1}^{n}r^k = \mathcal{O}(n^{k+1})$$ since there seems to be this pattern?
Or even better, is there a general formulae that mirrors $$\sum_{r=1}^{n}r^k$$ in terms of only $n$ and $k$?
I didn't know how to phrase the question very well on Google, so I apologise if this question has been answered many times.
The general formula for a sum of $k^{th}$ powers of the first $n$ integers is Faulhaber's formula:
$$\sum_{r=1}^n r^k=\dfrac {n^{k+1}}{k+1}+\dfrac12n^k+\sum_{r=2}^k\dfrac {B_r}{r!}\dfrac {k!}{(k-r+1)!}n^{k-r+1},$$ where $B_r$ is the $r^{th}$ Bernoulli number. This is indeed a polynomial of degree $k+1$.