Why is $\sum_{j=i+1}^{n-1}1 = -i+n-1$?
I am having trouble understanding this result, we are summing up $1$ from $i+1$ to $n-1$ wouldn't that just be $1$?
Why is $\sum_{j=i+1}^{n-1}1 = -i+n-1$?
I am having trouble understanding this result, we are summing up $1$ from $i+1$ to $n-1$ wouldn't that just be $1$?
On
Note that by definition
$$\sum_{j=a}^{b}1 = b-a+1$$
that is the number of summands, then
$$\sum_{j=i+1}^{n-1}1 = n-1-(i+1)+1=n-1-i$$
To convince yourself let try with some simple example
$$\sum_{j=1}^{3}1 = 1+1+1 = 3-1+1=3$$
On
It's just the following: $$n-1-(i+1)+1=n-i-1$$
You can use $a_n=a_1+(n-1)d$ for the arithmetic progression: $$n-1=i+1+(x-1)\cdot1,$$ where $x$ is the needed sum.
On
Replace $1$ with $a_j$, so your sequence is $a_{j+1}+a_{j+2}+\dots+a_{n-1}$.
Now let $a_j=1\;\;\forall j\in\mathbb{Z^+}$.
The sum becomes $1+1+\dots+1$, i.e. $n-i-1$.
$$\sum_{j=1}^{n-1}1=n-1$$ and $$\sum_{j=1}^{i}1=i$$ notice that $$\sum_{j=i+1}^{n-1}1=\sum_{j=1}^{n-1}1-\sum_{j=1}^{i}1=n-1-i$$