How to find the following sum? $$ \frac{2}{n} \sum_{i=1}^{n} \left(\frac{4i}{n} +1\right) $$ For example $$ \sum_{i = 1}^n i^2 = \frac{n(n+1)(2n+1)}{6}. $$ I need to find the value of which this would converge to and I know that it must be six because the integral from $1$ to $3$ of the function $(2x-1)$ is $6$.
Any help is appreciated!!!
Hint: You have to use $$\sum_{i=1}^n (a_i+b_i) = \left(\sum_{i=1}^na_i\right)+\left(\sum_{i=1}^n b_i\right)$$ and $$ \sum_{i=1}^n (\lambda a_i)=\lambda\left(\sum_{i=1}^n a_i\right) $$ For the second equation, you have to check that $\lambda$ can not depend on $i$ but it can depend on other variables like $n$.