Cover Data Structures and Algorithms with Object-Oriented Design Patterns in Java
next up previous contents index

About Arithmetic Series Summation

The series, tex2html_wrap_inline57612, is an arithmetic series  and the summation

displaymath57610

is called the arithmetic series summation .

The summation can be solved as follows: First, we make the simple variable substitution i=n-j:

  eqnarray927

Note that the term in the first summation in Equation gif is independent of j. Also, the second summation is identical to the left hand side. Rearranging Equation gif, and simplifying gives

eqnarray946

There is, of course, a simpler way to arrive this answer. Consider the series, tex2html_wrap_inline57618, and suppose n is even. The sum of the first and last element is n+1. So too is the sum of the second and second-last element, and the third and third-last element, etc., and there are n/2 such pairs. Therefore, tex2html_wrap_inline57626.

And if n is odd, then tex2html_wrap_inline57630, where n-1 is even. So we can use the previous result for tex2html_wrap_inline57634 to get tex2html_wrap_inline57636.


next up previous contents index

Bruno Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.