My task is to determine the closed form of this summation.
$$ {\sum_{k=0}^{n-1}{} } (\sum_{j=0}^{n^3-1}{j } - \sum_{j=0}^{n^2-1}{7k})$$
I am unsure whether it is appropriate to apply Gauss's identity and similar identities to simplify the terms within the nested summation since they are not strictly of the form specified.
For example, Gauss's identity:
$$ {\sum_{i=0}^{n-1}{i} } $$
with the upper limit only being decremented by one, and the variables in the expression being summed and the lower limit matching. Is it appropriate to simply substitute $n^2$ for $n$? Does the fact that the lower limit and the expression do not match matter?
Sorry if these are simple questions. I have not worked with summations very much and the extension of these identities do not seem clear to me.
Note that: $$\sum_{j=0}^{n^3-1}j = 0+1+ \ldots +(n^3-1) = \frac{n^3(n^3-1)}2$$
Also note that: $$\sum_{j=0}^{n^2-1}7k = \underbrace{7k+ 7k\ldots 7k}_{n^2\text{ times}}=7n^2k$$
Thus, $$\sum_{k=0}^{n-1}\left[\frac{n^3(n^3-1)}2 - 7n^2k\right]$$ $$= \frac{n^3(n^3-1)}2\times n - 7n^2\left[0+1+\ldots +(n-1)\right]$$ $$= \frac{n^4(n^3-1)}2-\frac{7n^3(n-1)}2$$