My friend recently came to me with this "proof":
$ a = \sum_0^\infty (-1)^n \times 1 = 1 - 1 + 1 - 1 + \dots = \frac{1}{2} $
$ \sqrt{n} = n^{\frac{1}{2}} = n^{1 - 1 + 1 - 1 + \dots} = n^{(1 - 1) + (1 - 1) + \dots} = n^{(1 - 1)} \times n^{(1 - 1)} \times \dots = n^0 \times n^0 \times \dots = 1 \times 1 \times 1 \dots = 1$
What's the problem here?
I have two ideas myself: a. that $1 - 1 + 1 - \dots$ is just an idea and not something that can be adopted to "usual" calculations (if so, how are these things called?). Or b., the error lies in finally "deciding" the previously "undecided" value of $a$ by favouring a certain bracketing-order? He could have chosen $1 + (1 - 1) + (1 - 1) + \dots = 1 + (0) + (0) + \dots = 1$ instead at that point.
Or is it something completely different? Clever and funny idea though.
If you could use your argument, then:
$$\frac{1}{2}=1+(-1)+1+(-1)+\cdots = (1-1)+(1-1)+\cdots =0$$
So you hardly need to go to square roots to find a contradiction.
You are dealing with a different sort of "summation" here than a standard summation. It does not allow you to group terms. In the more general sense, it is a Ramanujan summation, and we should, to be precise, write $(\mathfrak R)$ to indicate this:
$$1+(-1)+1+(-1)+\cdots = \frac{1}{2}\,(\mathfrak R)$$
(There are also some alternative summations that would return the same value, such as Cesàro summations, but Ramanujan summations is one of the most general. When Cesàro summation exists, a Ramanujan summation exists.)
Unfortunately, Ramanujan sums are deeply technical, and a lot of popular math sites and videos nowadays seems to want to shout:
It's been a source of much frustration on this site because, while there is some real math being loosely described in the above:
Ramanujan (and other non-standard sums) can be mysterious. For example, you can't simply remove zeros. For example:
$$1+0+(-1)+1+0+(-1)+\cdots =\frac{2}{3}\,(\mathfrak R)$$
But all we've done is add zeros between each $1,-1$ pair.
We've also seen that you can't just group terms together. (Technically, you also can't do this in standard infinite sums, either, but if a sum is already know to converge, we can group the terms like this and it still converges to the same number.)
The sorts of manipulations you can do with the terms, when computing a Ramanujan sum, are very different from (and more limited than) the sorts of manipulations you can do with standard infinite series.
Ramanujan sums can be fascinating - especially when they seem to be useful in dealing with facts from physics - but you have to be very careful with them. They are not as simple as they appear.