I am attempting to evaluate the sum $$ \sum_{i=0}^{x-1} \Biggl(4+4\sum_{j=3}^{i+2} j(-1)^j\Biggr) $$ I'm not that experienced at summations, so I can go as far as $$ 4x+4\sum_{i=0}^{x-1} \sum_{j=3}^{i+2} j(-1)^j $$ Before I get stuck.
Using a WolframAlpha widget, I get $$((-1)^{x-1} + 8){(x-1)} + 3 (-1)^{x-1} + 10$$
My question is, how would this be evaluated on paper?
Edit: I wrote the summation incorrectly.
Edit 2: The Wolfram Alpha version of the summation may be wrong.
The easiest approach is to simply evaluate the inner sum directly. To this end, let $S(i)$ represent the inner summation; we consider cases where $i$ is even versus $i$ odd. Note that there are exactly $(i+2) - 3 + 1 = i$ terms in the sum. When the number of terms in the sum is even, they can be grouped into consecutive pairs. When the number of terms in the sum is odd, there is an "extra" term at the end which we will handle separately.
In the even case, say $i = 2k$, $$\begin{align*} S(i) = \sum_{j=3}^{i+2} j(-1)^j &= \sum_{j=3}^{2(k+1)} j(-1)^j \\ &= \sum_{m=1}^k (2m+1)(-1)^{2m+1} + (2m+2)(-1)^{2m+2} \\ &= \sum_{m=1}^k -(2m+1) + (2m+2) \\ &= \sum_{m=1}^k 1 = k = \frac{i}{2}. \end{align*}$$ In the odd case, we have the "extra" final term $(i+2)(-1)^{i+2} = -(i+2)$ (remember, this last term is negative because if $i$ is odd, then so is $i+2$); thus $$S(i) = \sum_{j=3}^{i+2} j(-1)^j = \sum_{j=3}^{(i-1)+1} j(-1)^j + (i+2)(-1)^{i+2} = \frac{i-1}{2} - (i + 2) = -\frac{i+5}{2}.$$ Note carefully that in the second step, we wrote $$\sum_{j=3}^{(i-1)+2} j(-1)^j = \frac{i-1}{2}.$$ We did this because when $i$ is odd, this sum is now for an even $i-1$, so we can apply the result we had for the even case, except now $i$ is replaced with $i-1$. So now we put this together to find $$S(i) = \sum_{j=3}^{i+2}j(-1)^j = \begin{cases}i/2, & i \text{ is even} \\ -(i+5)/2, & i \text{ is odd.} \end{cases}$$ All that remains now is to evaluate the outer sum: $$\sum_{i=0}^{x-1}(4 + 4S(i)) = 4x + 4 \sum_{i=0}^{x-1} S(i).$$ Since $S(i)$ depends on whether $i$ is odd or even, the desired sum will also depend on whether $x$ is odd or even. As before, we count the number of terms as $(x-1) - 0 + 1 = x$, so if $x$ is even, we can pair off the terms, and if $x$ is odd, there will be an "extra" term left. In the even case, we can let $x = 2k$ and write $$\sum_{i=0}^{x-1} S(i) = \sum_{m=0}^{k-1} S(2m) + S(2m+1) = \sum_{m=0}^{k-1} m - \frac{(2m+1)+5}{2} = \sum_{m=0}^{k-1} (-3) = -3k = -\frac{3x}{2}.$$ And in the odd case, the final term is of the form $S(x-1) = (x-1)/2$ (remember, when $x$ is odd, $x-1$ is even and we must use the even case for $S(i)$), so the desired sum becomes $-\frac{3(x-1)}{2} + (x-1)/2 = -(x-1)$. So your answer for positive integers $x$ is $$\sum_{i=0}^{x-1} \left(4 + 4 \sum_{j=3}^{i+2} j(-1)^j \right) = \begin{cases} -2x, & x \text{ is even} \\ 4, & x \text{ is odd.}\end{cases}$$