Discrete Mathematics – Changing Summation Index Explained

discrete mathematicssummation

I'm sorry if this seems like a very novice question, but I am still relatively new to the world of discrete math ( still in 9th grade). I've been reviewing some of the concepts I learned in a chapter from Concrete Mathematics (Graham,Knuth,Patashnik) about Sums, and I seem to have completely missed something that threw me off.

I remember going over this problem, so I decided to re-solve it just to make sure I was 100% percent sure I knew those concepts. But, I've been trying to get it for a while and I still cannot find out the answer to my problem.

The problem starts as follows:

\begin{equation}
S = \sum_{0 \le k \le n} (a + bk)
\end{equation}

Using the commutative law, the index $k$ can be re-written as $n-k$

\begin{equation}
S = \sum_{0 \le (n-k) \le n} (a + b(n-k))
\end{equation}

And this can then equal

\begin{equation}
S = \sum_{0 \le k \le n} (a + bn-bk)
\end{equation}

My question is not as to how we got $a + bn – bk$, but as to why the index can change from $n-k$ to $k$ from the previous equation? Why and how can this be done?

Best Answer

The author's contention seems to be that the two sums listed are the same, as looping over the values in the set $0 \leq n-k \leq n$ is the same as looping over $k$ such that $0 \leq k \leq n$. To see why this is true, we just need to see that the values they loop over are the same. Then, by the commutativity of addition, the order of the values appearing in the sum doesn't matter, so the two sums can be taken to be equal.

Then it is a matter of seeing that if $0 \leq k \leq n$ defines the same set as $0 \leq n-k \leq n$, which we can see as follows:

$k \in \mathbb{N}$ such that $0 \leq k \leq n$ corresponds to the set of values $\{0, 1, 2, \ldots, n-1, n\}$.

$n-k \in \mathbb{N}$, then, such that $0 \leq (n-k) \leq n$, corresponds to the set of values $\{n, n-1, n-2, \ldots, 1, 0\}$.

Clearly, these two sets are the same.

Related Question