09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Sums<br />

SUMS ARE EVERYWHERE in <strong>mathematics</strong>, so we need basic tools to handle<br />

them. This chapter develops the notation and general techniques that make<br />

summation user-friendly.<br />

2.1 NOTATION<br />

In Chapter 1 we encountered the sum of the first n integers, which<br />

wewroteoutas1+2+3+...+(n-1)fn. The‘...‘insuch<strong>for</strong>mulastells<br />

us to complete the pattern established by the surrounding terms. Of course<br />

we have to watch out <strong>for</strong> sums like 1 + 7 + . . . + 41.7, which are meaningless<br />

without a mitigating context. On the other hand, the inclusion of terms like<br />

3 and (n - 1) was a bit of overkill; the pattern would presumably have been<br />

clear if we had written simply 1 + 2 + . . . + n. Sometimes we might even be<br />

so bold as to write just 1 f.. . + n.<br />

We’ll be working with sums of the general <strong>for</strong>m<br />

al + a2 + ... + a,, (2.1)<br />

where each ok is a number that has been defined somehow. This notation has<br />

the advantage that we can “see” the whole sum, almost as if it were written<br />

out in full, if we have a good enough imagination.<br />

A term is how long Each element ok of a sum is called a term. The terms are often specified<br />

this course lasts. implicitly as <strong>for</strong>mulas that follow a readily perceived pattern, and in such cases<br />

we must sometimes write them in an expanded <strong>for</strong>m so that the meaning is<br />

clear. For example, if<br />

1 +2+ . . . +2+'<br />

is supposed to denote a sum of n terms, not of 2”-‘, we should write it more<br />

explicitly as<br />

2O + 2' +. . . + 2n-'.<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!