Differences between revisions 2 and 10 (spanning 8 versions)
Revision 2 as of 2009-09-06 16:49:18
Size: 1107
Editor: 24-183-238-75
Comment:
Revision 10 as of 2010-08-08 18:12:22
Size: 1321
Editor: 71-87-243-6
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Summing a finitite series of natural numbers = = Summing a finite series of natural numbers =
Line 3: Line 3:
Really we'll only treat the case starting with 1. Given a sequence of numbers <<latex(1, 2, 3, \ldots , N)>>, the series is given by <<latex(1+2+3+\ldots+N)>>. Finding the sum of the series is actually quite simple: Really we'll only treat the case starting with 1, but this can be easily extended to cover starting at some <<latex($n_0<N$)>>. Given a sequence of numbers <<latex($1, 2, 3, \ldots , N$)>>, the series is given by <<latex($1+2+3+\ldots+N$)>>. Finding the sum of the series is actually quite simple:
Line 8: Line 8:
\[ \begin{equation}
Line 10: Line 10:
\] \end{equation}
Line 12: Line 12:
\[
     \sum_{i=1}^{N}i = (1+N)+(2+N-1)+\ldots
\]
\begin{eqnarray}
     \sum_{i=1}^{N} i &=& (1+N)+(2+N-1)+\ldots \\
                      &=& (N+1) + (N+1) + \ldots

\end{eqnarray}
Line 17: Line 18:
\[
     \sum_{i=1}^{N}i = \frac{N(N+1)}{2}
\]
What what if its odd? Well, the middle term will now be $(N+1)/2$ (think about that a minute and it will be obvious to you), but you only have $N+1$ repeated $(N-1)/2$ times. That gives us the following
\begin{equation}
     \sum_{i=1}^{N} i = \frac{N(N+1)}{2}
\end{equation}
But what if its odd? Well, the middle term will now be $(N+1)/2$ (think about that a minute and it will be obvious to you), but you only have $N+1$ repeated $(N-1)/2$ times. That gives us the following

Summing a finite series of natural numbers

Really we'll only treat the case starting with 1, but this can be easily extended to cover starting at some <<latex($n_0<N$)>>. Given a sequence of numbers <<latex($1, 2, 3, \ldots , N$)>>, the series is given by <<latex($1+2+3+\ldots+N$)>>. Finding the sum of the series is actually quite simple:

Given the series:
\begin{equation}
     \sum_{i=1}^{N}i = 1+2+3+\ldots+N
\end{equation}
We can rearrange the series like so:
\begin{eqnarray}
     \sum_{i=1}^{N} i &=& (1+N)+(2+N-1)+\ldots \\
                      &=& (N+1) + (N+1) + \ldots
\end{eqnarray}
The question is where does it stop? That is, how many $N+1$ terms do we have? Obviously if there is an even number of elements in the sequence you can do this exactly $N/2$ times.
This gives us:
\begin{equation}
     \sum_{i=1}^{N} i = \frac{N(N+1)}{2}
\end{equation}
But what if its odd? Well, the middle term will now be $(N+1)/2$ (think about that a minute and it will be obvious to you), but you only have $N+1$ repeated $(N-1)/2$ times. That gives us the following
\begin{eqnarray}
     \sum_{i=1}^{N}i &=& \frac{(N+1)(N-1)}{2} + \frac{N+1}{2} \\
                     &=& \frac{N(N+1)}{2}
\end{eqnarray}
So we see that this series always converges to the same formula. 

SummingFiniteIntegerSeries (last edited 2020-01-26 21:02:57 by scot)