Dejitaru is absolutely correct, this is a commonly known property of certain alternating infinite series, they're called conditionally convergent.
To explain his method:
we start with an obviously true statement, that one thing equals itself:
1+1-1+1-... = 1+1-1+1-...
Then, we realize that in R we can group terms of addition in any order we please:
1+(1-1)+(1-1)+... = 1+(1-1)+(1-1)+...
This is the part where you have to understand the meaning of infinity to realize why we can state the next line:
1+(1-1)+(1-1)+... = 1+1+(1-1)+(1-1)...
The thing here is to dispel any notion of infinity-1 being less than infinity, both are equally infinite. Therefore, I have an infinite number of -1's with which I can cancel down with an infinite number of +1's. This means, that even though it appears I haven't accounted for all +1 and -1 terms on the left, I HAVE, because there is an infinite number of each term, therefore I can always find another term, there's no end to them. So I could in fact write this in any form I wish, for instance:
(1-1)+(1-1)+... = 1+1+1+1+(1-1)+(1-1)...
=> 0 = 4
And this remains true, because there are an infinite number or terms on either side, and I can add in any order. So while it looks like I should have 4 extra -1's somewhere on the right side, I never do, because I can always find a +1 to cancel any -1 value with.
This is a common problem with solutions to certain series, especially the harmonic series, they converge to a logical value only for certain conditions: hence, conditionally convergent.
<edit> I finally remembered who proved this, it was Riemann, and you can find information about it under the topic of Reimann's Series Theorem, or Riemann's Rearrangement Theorem.</edit>