For $a,b>-1$
$$\lim_{n\to \infty} n^{b-a}\frac{1^a+2^a+\cdots +n^a}{1^b+2^b+\cdots +n^b}$$
I am really confused in this one. I tried to calculate it but the answer comes out to be $1$ as I divided the numerator and denominator with $n^a$ and $n^b$ respectively. But the answer is wrong.
Please help.
Here's an alternative method that Lord Shark the Unknown suggested (as Oscar Lanzi pointed out, this only works for integer $a,b$, though Claude Leibovici's answer is essentially this only generalized with asymptotics for any $a,b$):
We have by Faulhaber's formula that $$ \sum_{k=1}^nk^a=\frac{n^{a+1}}{a+1}+P_a(n) $$ where $P_a$ denotes some polynomial of degree $a$. So we get that \begin{align} \lim_{n\rightarrow\infty}n^{b-a}\frac{\sum_{k=1}^nk^a}{\sum_{r=1}^nr^b}=\lim_{n\rightarrow\infty}\frac{n^{-(a+1)}\left(\frac{n^{a+1}}{a+1}+P_a(n)\right)}{n^{-(b+1)}\left(\frac{n^{b+1}}{b+1}+P_b(n)\right)}=\lim_{n\rightarrow\infty}\frac{\frac{1} {a+1}+n^{-(a+1)}P_a(n)}{\frac{1}{b+1}+n^{-(b+1)}P_b(n)} \end{align} The expressions $n^{-(c+1)}P_c(n)$ tend to $0$ as $n\rightarrow\infty$ since the degree of $P_c$ is $c$. Therefore: $$ \lim_{n\rightarrow\infty}\frac{\frac{1} {a+1}+n^{-(a+1)}P_a(n)}{\frac{1}{b+1}+n^{-(b+1)}P_b(n)}=\lim_{n\rightarrow\infty}\frac{\frac{1} {a+1}+0}{\frac{1}{b+1}+0}=\frac{b+1}{a+1} $$