102. Notation for sums and products
In this section we introduce a notation for sums and products that may be familiar to you from calculus. This will be used in studying induction in Chapter 103.
102.1 Definition: sum and product of a sequence
Let $a_{1},a_{2},\ldots,a_{n}$ be a sequence of numbers (not necessarily integers). The expression $\sum_{i=1}^{n} a_{i}$ denotes the sum $a_{1} + a_{2} + \cdots + a_{n}$ of the numbers in the sequence and the expression $\prod_{i=1}^{n} a_{i}$ denotes the product $a_{1}a_{2}\cdots a_{n}$ of the numbers in the sequence.
102.1.1 Example $\sum_{i=1}^{4} i = 1 + 2 + 3 + 4 = 10$ and $\prod_{i=1}^{4} i = 1 \times 2 \times 3 \times 4 = 24$.
102.1.2 Example $\sum_{k=1}^{5} 2k-1 = 1+3+5+7+9 = 25$. The sum $\sum_{i=1}^{5} 2i-1$ also gives 25 — the $i$ is a dummy variable just like the $x$ in $\int_{3}^{5} x^{2}\,dx$, which has the same value as $\int_{3}^{5} t^{2}\,dt$. On the other hand, $\sum_{i=1}^{5} 2k-1 = 10k-5$.
102.1.3 Exercise What is $\sum_{k=1}^{5} k^{2}$? What is $\prod_{k=1}^{5} k^{2}$? (Answer on page 248.)
102.1.4 Example For $b$ any fixed number, $\sum_{i=1}^{4} b = b+b+b+b = 4b$ and $\prod_{i=1}^{4} b = b \cdot b \cdot b \cdot b = b^{4}$.
102.1.5 Remark The numbering of the sequence does not have to start at 1. Thus a sequence $a_{3},a_{4},\ldots,a_{12}$ would have sum $\sum_{i=3}^{12} a_{i}$.
102.1.6 Exercise What are $\sum_{k=1}^{5} 2k$, $\sum_{k=0}^{4} 2(k+1)$ and $\sum_{k=0}^{4} 2k+1$? Two of them are the same. Explain why.
102.1.7 Sums and products in Mathematica To compute
$$\sum_{k=1}^{5} 2k-1$$
in Mathematica, you type the expression Sum[2 k-1,{k,1,5}]. Similarly, the expression Product[k,{k,1,6}] calculates $1 \cdot 2 \cdot 3 \cdot 4 \cdot 5 \cdot 6$.
The expression {k,1,5} is a range expression; range expressions are used in many Mathematica commands. The range expression {x,a,b} means that the variable x ranges from the value of a to the value of b.
Pages 150–151 of the book (PDF).