We simply acknowledge the following fact: for any positive integer p, the power sum \sum_{k=1}^n k^p can always be expressed as a polynomial f(n) that has degree p+1 and has rational coefficients.
Let's try to derive the first and the last formula. For the first, let f(n)=an^2+bn+c. We have f(1)=1,f(2)=3,f(3)=6. We want to solve the linear system: a+b+c=1\\ 4a+2b+c=3\\ 9a+3b+c=6, or equivalently in matrix form \begin{pmatrix}1&1&1\\ 4&2&1\\ 9&3&1\end{pmatrix}\begin{pmatrix}a\\b\\c\end{pmatrix}=\begin{pmatrix}1\\3\\6\end{pmatrix}. Note that \begin{pmatrix}1&1&1\\ 4&2&1\\ 9&3&1\end{pmatrix} is a Vandermonde matrix. Just type in
For the last formula, let f(n)=an^5+bn^4+cn^3+dn^2+en+f. Then f(1)=1,f(2)=17,f(3)=98,f(4)=354,f(5)=979,f(6)=2275. Type
No comments:
Post a Comment