3

I stumbled upon two problems that I solved in an exam a while ago; however, the only reason why I solved them was through trial and error by picking each choice from the choices available, I set an upper limit and compared the two values from the closed form and the summation, and when they matched I knew that that closed form was the right answer. But this isn't very beneficial since I don't know the logic behind converting the summation to a closed form. So my question is, what are the steps that converted these two summations to its respective closed forms

Here is the two questions

  • Even though I do know how the closed forms arise, I would have done the same thing as you in a competitive/exam situation. For example, simply putting $n=0$ in the first question eliminates two possibilities, and putting $n=0$ in the second eliminates all but one, which is correct. – Sarvesh Ravichandran Iyer Dec 04 '17 at 04:40

3 Answers3

4

The quicker way is to use arithmetic series directly but I am showing you a more fundamental approach.

I will show you the first question and leave the second one as practice.

Result needed:

$$\sum_{i=1}^n 1 = n$$ Since we just counting how many terms are there. $$\sum_{i=1}^n i=\frac{n}{2}(1+n)$$ since this is just the arithmetic series.

\begin{align} \sum_{i=0}^n (5-i) &= 5 \sum_{i=0}^n1 - \sum_{i=0}^n i \\ &=5(n+1)-\sum_{i=1}^n i \end{align}

What remains are just algebraic manipulations.

Siong Thye Goh
  • 149,520
  • 20
  • 88
  • 149
  • For more details, I suggest this page: https://opendsa-server.cs.vt.edu/ODSA/Books/CS3/html/Summations.html#:~:text=Given%20a%20summation%2C%20you%20often,known%20as%20solving%20the%20summation. – Zachary Ryan Smith Jul 16 '23 at 22:18
1

Use the formula of the summation of arithmetic series

$$\dfrac{m(A+L)}2$$ where $m$ is the number of terms, $A,L$ being the first & last terms respectively

0

It's often easier to guess than calculate given a multiple choice question, and it can be a lot easier to guess if you choose the right cases to check. For question 1. for example, the sum for $n=0$ is $\sum_{i=0}^{0}(5-i)=5-0=5\,$. The only answer which evaluates to $5$ for $n=0$ is A.

To derive the closed form, it's enough to remember that $\sum_{i=1}^{n} i=\frac{n(n+1)}{2}\,$, then for example:

$$\sum_{i=0}^{n}(5-i)=\left(5 \, \sum_{i=0}^{n} 1\right) - \left(\sum_{i=0}^{n} i\right) = 5 (n+1) - \left( 0 + \sum_{\color{red}{i=1}}^{n} i \right)= 5(n+1) - \frac{n(n+1)}{2} = \cdots$$

dxiv
  • 76,497