I came across the following problem that says:
Let $p(x)=a_kx^k+a_{k-1}x^{k-1}+\cdots+a_0$ be a polynomial. Then $\lim_{n \to \infty} n \int_{0}^{1} x^np(x) \, dx$ equals to which of the following?
$1.\quad p(1)$
$2.\quad p(0)$
$3.\quad p(1)-p(0)$
$4.\quad \infty$
My Attempt: $$\lim_{n \to \infty} n \int_0^1 x^np(x) \, dx=\cdots=\lim_{n \to \infty} n\left[\frac {a_k}{n+k+1}+\frac {a_{k-1}}{n+k}+\frac {a_{k-2}}{n+k-1}+\frac {a_{k-3}}{n+k-2}+\cdots+\frac {a_0}{n+1}\right]=\lim_{n \to \infty}\left[\frac {a_k}{1+\frac {k+1}{n}}+\cdots+\frac {a_0}{1+\frac {1}{n}}\right]=a_k+a_{k-1}+\cdots+a_0=p(1).$$
Am I going in the right direction? Thanks in advance for your time.