Why is $\sum_{i=0}^{n}1=(n+1)$?

367 Views Asked by At

Why is $$\sum_{i=0}^{n}1=(n+1)?$$ I mean, as 1 does not depend on $i$, so shouldn't be the sum equals to 1 (as I was adding nothing, just keeping 1)?

2

There are 2 best solutions below

0
On BEST ANSWER

In general, for any function $f$

$$\sum_{i=0}^n f(i) = f(0)+f(1)+f(2) + \dots + f(n)$$

Hence, if we let $f$ be the constant function $1$, then

$$\sum_{i=0}^n 1 = 1+ 1+ \dots + 1 = n+1$$

0
On

This summation means $1+1+1+1+\cdots+1$, where there are $n+1$ 1's in that string. This is because there are $n+1$ terms, and each one is 1.