I had to find the limit of the sequence
$$ a_n =\frac{1^k+2^k+\cdot \cdot \cdot +n^k}{n^k}-\frac{n}{k+1}$$, where $ k $ is a natural number.
After applying the Stolz theorem, I was able to get here.
$$\lim \:_{n\to \:\infty \:}\left(\frac{\left(k+1\right)\left(n+1\right)^k-\left(\left(n+1\right)^{k+1}-n^{k+1}\right)}{\left(k+1\right)\left(\left(n+1\right)^k-n^k\right)}\right)$$
I tried different ways on continuing from here but unfortunately I am unable to get anywhere. I appreciate any kind of help.
Edit:
For users who may want a solution without the Big O notation, I was able to solve this limit by using the binomial theorem to calculate largest coefficient, since the numerator and denominator are polynomials in $n$, as a user below suggested.