$$\sum_{i=1}^n n$$
I am confused by the solution to this question: $$\sum_{x=0}^{n-2} 4n=4n(n-1)$$
I know by the distributive property, the 4 can be moved in front of the summation. However, plugging $k=(n-2)$ in $k(k+1)/2$ doesn't return the correct answer and c*k isn't correct either.
What generic form does the summation in the problem take that got that answer?
I don't know how to embed summations but if this is just the summation of a constant, shouldn't the answer be n(n-2)? Because it's c*n where c = n and n=n-2?
– Boy Feb 16 '23 at 20:23