Sum Of Sequence

The series $\sum\limits_{k=1}^n k^a = 1^a + 2^a + 3^a + \dots + n^a$ gives the sum of the $a^\text{th}$ powers of the first nn positive numbers, where aa and $n$ are positive integers. Each of these series can be calculated through a closed-form formula.

The case $a=1,n=100$ is famously said to have been solved by Gauss as a young schoolboy: given the tedious task of adding the first 100 positive integers, Gauss quickly used a formula to calculate the sum of 5050.

The formulas for the first few values of $a$ are as follows:

k=1nk=n(n+1)2\sum\limits_{k=1}^n k = \frac{n(n+1)}{2}

k=1nk2=n(n+1)(2n+1)6\sum\limits_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}

k=1nk3=n2(n+1)24\sum\limits_{k=1}^n k^3 = \frac{n^2(n+1)^2}{4}

Reference

Last updated