Question :
For each arbitrary constant $n$, using induction, Prove that :
For each natural number $r$ :
$\sum_{i=1}^{n}i^r = \frac{n^{r+1}}{r+1}+\frac{n^r}{2}+P_r(n)$
Such that $P_r$ is a polynomial with degree less than $r$.
Note : It has to be related with integration but i don't know how show the connection between that polynomial and the rest of it... Also, Induction on which variable?
Thanks in advance.
The problem is an algebraic one and does not really require the machinery of calculus. Below is an easy proof based on induction.
We can prove using induction on $r$ that for all natural numbers $r$ we have $$\sum_{k = 1}^{n}k^{r} = S_{r}(n)$$ where $S_{r}(n)$ is a polynomial of degree $r + 1$ in $n$. Clearly for $r = 0$ we have $S_{0}(n) = n$ so the induction hypothesis is true for $r = 0$. Assume it is true for all $r = 0, 1, 2, \ldots, m - 1$ and then see what happens when $r = m$.
We have via Binomial Theorem $$k^{m + 1} - (k - 1)^{m + 1} = \binom{m + 1}{1}k^{m} - \binom{m + 1}{2}k^{m - 1} + \cdots$$ And summing for $k = 1, 2, \ldots, n$ we get $$n^{m + 1} = (m + 1)S_{m}(n) - \binom{m + 1}{2}S_{m - 1}(n) + \cdots$$ We have now assumed that $S_{r}$ is a polynomial of degree $r + 1$ for all $r = 0, 1, 2, \ldots, m - 1$ and hence from the last equation we see that $$S_{m}(n) = \frac{n^{m + 1}}{m + 1} + \frac{m}{2}S_{m - 1}(n) - \cdots$$ and it follows that $S_{m}(n)$ is of degree $m + 1$ in $n$. It follows via induction that $S_{r}(n)$ is a polynomial of degree $r + 1$ in $n$. Also note that the same proof above shows that the leading term in $S_{r}(n)$ is $n^{r + 1}/(r + 1)$. And because of this we can see that $$S_{r + 1}(n) = \frac{n^{r + 1}}{r + 1} + \frac{r}{2}S_{r - 1}(n) - \cdots = \frac{n^{r + 1}}{r + 1} + \frac{r}{2}\left(\frac{n^{r}}{r} + \frac{r - 1}{2}S_{r - 2}(n) -\cdots\right) - \cdots$$ and finally we get $$S_{r}(n) = \frac{n^{r + 1}}{r + 1} + \frac{n^{r}}{2} + P_{r}(n)$$ where $P_{r}(n)$ is a polynomial of degree less than $r$.