What is the value of the following sum:
$$1-3+5-...+1993-1995+1997?$$
I realize that regrouping the series' first and last terms, second and penultimate terms and so on gives $1998$ and $-1998$. I'm stuck there, however, and I don't know how to determine how much of the sum cancels itself out in the middle part of the sum.
I have tried looking at simpler sums, such as $1-3+5-7+9-11+13$, which obviously equals $7$, but I don't know how to apply that to my larger sum.
Lastly, is there a general formula for the alternating sum of the first n odd numbers?
$$\sum_{k=1}^{n} (-1)^{k+1}(2k-1)$$
You could also separate is into two part, the positive values and the negative values:
$$(1+5+...1993+1997)-(3+7+...1991+1995)$$ The first part has $\frac{1997-1}{4}=499$ terms and the second part has $\frac{1995-3}{4}=498$ terms. Also notice if we now pair the first and last term we get 1998, the second and second last term we get 1998, etc. So there are $\frac{499}{2}$ pairs in the first group that add up to 1998 and $\frac{498}{2}$ pairs in the second group that add up to 1998. We have $$=\frac{499}{2}\times 1998-\frac{498}{2}\times 1998$$ $$=1998\left(\frac{499}{2}-\frac{498}{2}\right)$$ $$=1998\times \frac{1}{2}$$ $$=999$$