MathsAlgebra

Summation
calculator.

Add up sigma notation term by term, with exact fractions and the running total.

How it's worked out

Sigma notation is a short way to write a long sum. The letter under the sigma is the index. It starts at the lower limit, climbs by 1 each time, and stops at the upper limit, and you write the term once for each value.

∑n=abf(n)\displaystyle \sum_{n=a}^{b} f(n)=f(a)+f(a+1)+⋯+f(b)\displaystyle {}= f(a) + f(a+1) + \dots + f(b)

With a step of 1 there are b−a+1b - a + 1 terms. A larger step skips values: from 1 to 99 in steps of 2 uses only the odd numbers, and those 50 terms add to 2,500. You can write the index as n, k or i, since the letter does not change the total.

When the term is a polynomial

If the term is a polynomial of degree 3 or lower, such as 2n−12n - 1 or n3−2nn^3 - 2n, it breaks into sums of powers, and each of those has a formula. Here N is the upper limit, and each sum starts at 1.

∑n=1Nn\displaystyle \sum_{n=1}^{N} n=N(N+1)2\displaystyle {}= \frac{N(N+1)}{2}
∑n=1Nn2\displaystyle \sum_{n=1}^{N} n^2=N(N+1)(2N+1)6\displaystyle {}= \frac{N(N+1)(2N+1)}{6}
∑n=1Nn3\displaystyle \sum_{n=1}^{N} n^3=(N(N+1)2)2\displaystyle {}= \left(\frac{N(N+1)}{2}\right)^2

For a sum that starts somewhere else, take the formula at the upper limit and subtract it at one below the lower limit. Each figure below was found by adding the terms one at a time, and the formulas give the same numbers.

Common sums at three upper limits
SumN = 5N = 10N = 20
Sum of n1555210
Sum of n²553852,870
Sum of n³2253,02544,100
Sum of 2ⁿ from n = 0632,0472,097,151

When each term is a fixed multiple of the last

That pattern is a geometric series, with first term a and ratio r. The sum of N terms is below, as long as r is not 1.

SN\displaystyle S_N=a(1−rN)1−r\displaystyle {}= \frac{a(1 - r^N)}{1 - r}

If r is strictly between −1 and 1, the powers of r fade away and the infinite sum exists.

S∞\displaystyle S_\infty=a1−r\displaystyle {}= \frac{a}{1 - r}

How the total stays accurate

Terms are added with compensated summation, which keeps a separate tally of the tiny rounding losses from long decimals, so a sum of 100,000 terms does not drift. For rational terms, up to 20,000 of them, the same sum also runs in whole-number arithmetic. That gives the exact fraction, and true digits for a whole number too long for a decimal to hold.

Worked examples

Mira stacks a can pyramid

Mira builds a store display from square layers: 1 can on top, then 4, then 9, down to a bottom layer of 10 by 10. The term is n2n^2 from 1 to 10, which gives 385 cans.

The square rule agrees: 10 × 11 × 21 over 6 is 385. The mean layer holds 38.5 cans, which no layer actually does. The bottom layer alone is 100 cans, more than a quarter of the stock.

Open this example in the tool

Jon raises his savings each week

Jon saves $1 in week 1, $2 in week 2, and so on for a year. The term is n from 1 to 52, and the total is $1,378.

He wants to know when he passes $1,000. Setting the target to 1000 gives week 45, when the total is $1,035. A week earlier it was $990, so the last stretch is quick: by then each week adds more than $40.

Open this example in the tool

Rosa adds up a ball's rebounds

Rosa's ball rebounds to 3 m, and each rebound after that reaches half the height of the one before. The term is 3×0.5n3 \times 0.5^n from 0 to 9, and those ten heights add to 5.9941 m.

The ratio is one half, so the infinite sum exists: 3 over one half is 6 m. Ten rebounds already reach all but about 0.0059 m of it. A real ball stops long before the maths does.

Open this example in the tool

Reading your result

A finite total is one number, and it cannot tell you what an infinite sum does. It can show you the pattern, though. Take the harmonic series, the sum of one over n. Its terms shrink toward 0, yet the total keeps climbing.

  • After 10 terms the total is 2.929.
  • After 100 terms the total is 5.1874.
  • After 1,000 terms the total is 7.4855.
  • After 10,000 terms the total is 9.7876.

Each tenfold increase in terms adds about 2.3021, because the total tracks ln⁡N+0.5772\ln N + 0.5772, where 0.5772 is Euler's constant. It takes 11 terms to pass 3, and over 12,000 to pass 10, but it does pass every number in the end.

Squaring the bottom changes everything. The sum of one over n squared has a limit, π26\frac{\pi^2}{6}, about 1.644934. After 10,000 terms it stands at 1.644834, still a little short. The alternating harmonic series, with signs that flip, also settles: after 200 terms it is 0.6907, closing in on ln⁡2\ln 2, about 0.6931.

The table of other upper limits helps you read this. If the change column keeps shrinking toward 0, the total may be settling. If it holds steady or grows, the total is still moving. For a firm answer, use a formal test from the series convergence calculator.

Common mistakes

  • Counting terms by subtraction alone. From 3 to 10 there are 8 terms, not 7, because both limits count.
  • Using the upper limit as N in the geometric formula. N is the number of terms. The sum of 2n2^n from 0 to 10 has 11 terms and equals 2,047. Starting at 1 instead drops the first term and gives 2,046.
  • Dropping brackets around a negative. A minus sign before a power applies after the power. So −n2-n^2 from 1 to 3 gives −14, and (−n)2(-n)^2 gives 14.
  • Starting at a value the term cannot use. One over n has no value at 0, so a sum from 0 stops with a message that names the index. Start at 1 instead.
  • Assuming a neat answer means a neat rule. The first 25 odd numbers add to 625, a perfect square, and that holds for any count of odd numbers. One matching case does not prove a pattern, so test a second upper limit.

Questions people ask

Terms that shrink to 0 are needed for a sum to settle, but they are not enough. Group the terms in blocks of 2, 4, 8 and so on, and each block adds at least one half. You can make as many blocks as you like, so the total passes any number.

Sources