I'm trying to solve the the following series
$$\sum_{i=1}^{2k} (-1)^{n+1}n $$
The answer to the series is $$-k$$
This is what I've tried:
$$\sum_{i=1}^{2k} (-1)^{n+1}n =(-1)^{1+1}*1+(-1)^{2k+1}*2k$$
This is not the correct answer according to the book.
I'm struggling to find the proof. Can someone help?
Edit: After reading many of the comments, it appears as though there is a misprint in your text. I believe the solution I provided is addressing the intended question.
First, make sure you understand the sum notation: $$\sum_{i=1}^{2k}(-1)^{i+1}i = (-1)^{1+1} + (-1)^{2+1} +\cdots+(-1)^{2i+1}2i.$$ Notice that the terms in this sum alternate between positive and negative values. This means there is going to be some cancellation. We may rewrite the sum as $$ \sum_{i=1}^k(-1)^{2i}(2i-1) + (-1)^{2i+1}(2i). $$ Here we are just adding two terms at a time from the first sum. Notice that each of these new terms is in fact equal to $-1$. Thus, $$\sum_{i=1}^{2k}(-1)^{i+1}i = -k$$