Processing math: 100%

Sequences and Sums

A sequence is a function from a subset of Z (usually {0,1,2,3,} or {1,2,3,}) to a set S. We use an to refer to the image of the integer n. We call an a term of the sequence. The sequence itself is denoted {an}.

For example, if an=1/n, then the sequence {an} (beginning with a1) is a1,a2,a3,, or 1,1/2,1/3,1/4,.

A geometric sequence has the form a,ar,ar2,ar3,,arn where a is the initial term (a real number) and r is the common ratio (also a real number). Typically, we think of such a sequence as starting with n=0 (since ar0=a). Here are some examples of geometric sequences:

An arithmetic sequence has the form a,a+d,a+2d,a+3d,,a+nd where a is the initial term and d is the common difference. Typically, we think of such a sequence as starting with n=0 (since a+0d=a). Here are some examples of arithmetic sequences:

One common operation on sequences is to compute a sum of certain portions of the sequence. Suppose we have a1,a2,a3,,am,am+1,am+2,,an, and we want to consider the sum from am to an: am+am+1+am+2++an. We can write this using sigma notation: ni=mai where:

There is nothing special about using i; any (unused) variable would work!

Here are some examples of summations and sigma notation:

Sometimes we might want to change the lower/upper limits without changing the sum. For example, suppose we want to change the sum 5j=1j2 to be written with lower limit 0 and upper limit 4. Then let k=j1 to get 5j=1j2=4k=0(k+1)2

We can also split a sum up: ni=1ai=5i=1ai+ni=6ai

This means that to exclude the first few terms of a sum, we can say: ni=6ai=ni=1ai5i=1ai

Summations can also be nested: ni=1nj=1ij

As an example, we compute 4i=13j=1ij: 4i=13j=1ij=4i=1(1i+2i+3i)=4i=16i=6+12+18+24=60

When every term is multiplied by the same thing, we can factor it out: ni=16i=6×ni=1i

Here is another example of factoring, this time with a nested summation: 4i=13j=1ij=4i=1(i×3j=1j)=4i=16i=6×4i=1i=6×10=60

You can also split over addition: ni=1(i+2i)=ni=1i+ni=12i This does not work for multiplication!

One useful tool is the sum of a geometric sequence, where a,rR and r0: nj=0arj={arn+1ar1if r1(n+1)aif r=1

Why does this work? Let S=nj=0arj. Then: rS=rnj=0arj=nj=0arj+1=n+1k=1ark=nk=0ark+(arn+1a)=S+(arn+1a)

Therefore, rS=S+(arn+11), so S=arn+1ar1 as long as r1 (the case when r=1 is easy).

Here are some more useful summation formulas:

Try to derive some of these yourself. For example, nk=1k=n(n+1)2 can be derived by letting S=nk=1k and observing that: S=1+2+3++k1+kS=n+n1+n2++2+12S=(n+1)+(n+1)+(n+1)++(n+1)+(n+1)

Since there are n terms, we have 2S=n(n+1), so S=n(n=1)2=nk=1k.