Can this limit be solved with Riemann sums?:
$$\lim_{n\to\infty}\left( n-\sum_{k=1}^ne^{\frac{k}{n^2}}\right) $$
Tried solving it like this:
$$\lim_{n\to\infty}n\left(1-\frac{1}{n}\sum_{k=1}^ne^{\frac{k}{n^2}}\right)$$
and after integrating the sum I got this should be infinity.
Is it correct like this?