Very short question. Could you please explain me why
$$\sum_{i=0}^{n-1} a = na$$ with $a$ a constant? I know that
$$\sum_{i=1}^{n} a = na$$
but in my case the sum starts from zero and finishes for $(n-1)$.
Thanks.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityVery short question. Could you please explain me why
$$\sum_{i=0}^{n-1} a = na$$ with $a$ a constant? I know that
$$\sum_{i=1}^{n} a = na$$
but in my case the sum starts from zero and finishes for $(n-1)$.
Thanks.
In both cases – $$\sum_{i=0}^{n-1}a\quad \text { and }\quad\sum_{i=1}^{n}a$$
– there are exactly $n$ summands.
Since you are already convinced that $\sum_{i=1}^{n}a=na$ this might help:
$$\sum_{i=0}^{n-1}a={a}+\sum_{i=1}^{n-1}a=a+\sum_{i=1}^{n}a-{a}=\sum_{i=1}^{n}a.$$
Since $a$ is not $i$-depending one can write: $$\sum_{i=0}^{n-1}{a}=a\sum_{i=0}^{n-1}{1}$$ And $\sum_{i=0}^{n-1}{1}=1+1+\cdots+1$ $n$ times which obviously is $n$.
What is the definition of $\sum_{i=0}^{n-1} x_i$? It is exactly $x_0+x_1+...x_{n-1}$. If $x_0=x_1=...x_{n-1}=a$ then it means you just sum $a$ $n$ times. And that gives $na$.
You are summing $n$ terms, all equal to $a$. So $$\sum_{i=0}^{n-1} a = a+ a+\dotsb + a = na.$$