
\[\sum_{k=1}^{m}k^{n}=\frac{B_{n+1}\left(m+1\right)-B_{n+1}}{n+1},\]