How to evaluate: $$\lim_{n\to\infty} \dfrac{1^{p-1}+2^{p-1}+...+n^{p-1}}{n^p}$$
when
$i)$ $p\in\mathbb R,p\neq0$
$ii)\space p=0$
So for $i)$ I tried using Stolz–Cesàro theorem and Binomial theorem and If I didn't mess up I got $1$. But I'm unsure about it, but for $ii)$ and I don't have a clue where to begin with.
We can apply the Stolz-Cesàro theorem for positive real values $p, p\ne 1$ and consider other values of $p$ separately.
We consider for $p\in\mathbb{R}$: \begin{align*} \lim_{n\to \infty}\frac{1^{p-1}+2^{p-1}+\cdots+n^{p-1}}{n^p}\tag{1} \end{align*}
Case $p=1$:
We obtain
\begin{align*} \lim_{n\to \infty}\frac{1^{p-1}+2^{p-1}+\cdots+n^{p-1}}{n^p} =\lim_{n\to\infty}\frac{\overbrace{1+1+\cdots+1}^{n\mathrm{\ times}}}{n}=\lim_{n\to\infty}\frac{n}{n} \color{blue}{=1} \end{align*}
Case $p<0$:
We set $q:=-p$ and obtain with $q>0$: \begin{align*} \lim_{n\to \infty}\frac{1^{p-1}+2^{p-1}+\cdots+n^{p-1}}{n^p} =\lim_{n\to \infty}n^q\left(1+\frac{1}{2^{q+1}}+\cdots+\frac{1}{n^{q+1}}\right)\geq \lim_{n\to\infty} n^q \color{blue}{=\infty} \end{align*}