What are some strategies for trying to determine the general formula for a summation?
For example, let's say I'm trying to determine the general formula for
$\sum_{i=1}^n \frac{i}{n}$
I was not sure how to approach this question, so I plugged and tested several values of $n$ in order to determine a pattern, and determined that:
$\sum_{i=1}^n \frac{i}{n}=\frac{n+1}{2}$
However, I feel that there are probably more efficient and reliable ways to solve these types of questions other than inserting values and finding patterns. If anyone has any guidance, it would be greatly appreciated!
Thanks.
Let $X$ be a uniform random variable on $\{1,\dotsc, n\}$. Then $$ EX=\sum_{i=1}^n\frac{i}{n}\tag{0} $$ But it is clear that $n+1-X$ and $X$ have the same distribution whence $$ EX=E(n+1-X)=n+1-EX $$ whence $$ EX=\frac{n+1}{2}. $$ Note that we immediately see that $$ \sum_{i=1}^ni=\frac{n(n+1)}{2} $$ from $(0)$.