When working on series and integrals, I attained two interesting limits: $$ \lim_{M\to \infty}\left\{\sum_{i=0}^{M-1}\left({i\over M}\right)^\alpha-{M\over \alpha+1}\right\}=-{1\over 2} $$ $$ \lim_{M\to \infty}\left\{M\cdot \sum_{i=0}^{M-1}\left({i\over M}\right)^\alpha-{M^2\over \alpha+1}+{M\over 2}\right\}=-{\alpha\over 12} $$ for $\alpha>0$. Now my question is:
How could these limits be found using the definition of integral? One I my friends advised to use a trapezoid approach for that, but I'm suspicious. Would it give me the answer to both of the limits?
Also
what is the value for the following limit? $$ \lim_{M\to \infty}\left\{M^2\cdot \sum_{i=0}^{M-1}\left({i\over M}\right)^\alpha-{M^3\over \alpha+1}+{M^2\over 2}+{M\alpha\over 12}\right\} $$