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)?
Asked
Active
Viewed 365 times
0
-
1You aren't "adding nothing", you are adding $1$ for each value of $i$ from $0$ to $n$. – Robert Israel Jul 11 '14 at 04:02
2 Answers
9
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$$
Mastrel
- 1,487
3
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.
gregkow
- 853