1 + 2 + 4 + 8 + 16 + 32... = -1 ?!

In this thread someone points out you seemingly can derive the equation 1+2+4+8+16+… = -1 as follows:

x = 1+2+4+8+16+…
x = 1+2(1+2+4+8+…)
x = 1+2x
x = -1

My question is, what do mathematicians take to be the right way to respond to this.

Is there a consistent way to build a mathematics of such “sums”? Or do there turn out to be more than one way to “sum” some infinite series? If the latter, then do we rule out such sums on this basis, or come up with a math which takes into account not only the members of the list of addends but also their order and groupings?

Or do we just call these kinds of sums “undefined” and move on?

It appears to me that there are some infinite sums which do not come out to a nice neat answer like this one does (I think 1+2+3+4+5… is an example of this), while some (like this one) do. Am I right to think this is the case? Or is there some way to find such a “sum” for any arbitrary infinite list of addends?

And so on.

-FrL-

The series 1+2+4+8+16+… does not have a limit, so it’s meaningless to do arithmetic with it.
[/QUOTE]

[/QUOTE]

So mathematicians say that a “sum” like this is undefined?

It seems so weird that it come out so nicely and neatly to a simple answer of -1. I’m used to seeing “undefined” appear wherever an answer to a problem ends u being something that intuitvely looks to me like infinity. In my head I think I have almost unconsciously conflated the two.

So am I right to suspect that if you changed the order of the numbers in the list, or changed the way you group them in your derivation, you can get nice neat little answers other than -1?

-FrL-

Hmm… can anyone explain anything from the following: Theorems on methods for summing divergent series to a(n intelligent) layman?

-FrL-

Ah… I bet if someone could explain this comment from here:

then I’d start to understand. Whats a metric? Whats a 2-adic valuation?

-FrL-

But you can also do this:

x = 1+2+4+8+16+…
x = 1+2+4(1+2+4+8+…)
x = 1+2+4x
x-4x = 3
-3x = 3
x = -1

Oh, wait. It comes out the same. So… um… I dunno. I thought it was going to come out with a different value of x, and then it would be like dividing by zero, where if you allow it, you can prove that 1 = 2.

I think that the problem is that you are dealing with infinities. It’s obvious that x is infinite in the first line. What is less obvious is that infinity would be a solution to the equation x = 1+2x. And I’m not sure how correct I am in saying that. But, I don’t see how you could say that twice infinity plus one would not be infinity, so infinity would have to be a solution, wouldn’t it? Though, this doesn’t explain why -1 wouldn’t also be a solution.

There’s some weird voodoo going on there. If you assume that the limit is a number s, you can prove that it’s -1, and that’s consistent with some other facts about this kind of series. However, the partial sums are clearly always positive, so if it had a limit, the limit would have to be positive (or possibly zero) – the limit can’t be -1. So what G.H. Hardy seems to have done might work in some axiom system, but it doesn’t work in ordinary real or complex analysis.

Well, it’s obvious. You keep adding in an infinite series, you’ll go right round the back of the number line and come up the other side at -1. :slight_smile:

Isn’t the “2-adic valuation” bit related to 2s complement? For a 4 bit signed number, you have the following binary representations

0 = 0000
1 = 0001

7 = 0111
-8 = 1000
-7 = 1001

-1 = 1111

so -8 + -4 + -2 + -1 becomes(*) in binary

1000 + 1100 + 1110 + 1111 = 0001

or -8 + -4 + -2 + -1 = 1

This generalizes for N-bit 2s complement numbers.

I think this is why Sunspace is getting the same result, instead of being able to get an arbitrary result, like you’d expect to be able to get from infinity - infinity.

(*)I can’t sum 8 + 4 + 2 + 1 because there is no +8. If you interpret 1000 as +8 instead of -8, you could.

I think that works (in this case), except that you need to represent integers with an unlimited number of bits. For positive integers, you have a infinite number of 0’s, followed by the usual binary representation; for negative integers, you have an infinite number of 1’s, followed by the usual 2’s-complement representation, e.g.:

+8 = …0000000001000
-8 = …1111111110111

So the sum looks like this:

…0000000000001 (+1)
…0000000000010 (+2)
…0000000000100 (+4)
…0000000001000 (+8)


…1111111111111 (-1)

Of course, that’s not normal arithmetic, or even normal computer arithmetic.

The problem is that, as Napier points out, the sum on the right diverges, so you
ve got infinity on the right. Then you equate that infinity to 1 plus two times itself, whivh is correct – it’s just as infinite, and you can make a one-to-one correspondence of the terms (except the one). What you can’t do, themn, is subtract the one from the other as you could in “normal” math. Infinities don’t behanve nicely when you do that, no matter how they’re written.
Notyice that, if you replace this infinite sum with something similar that converges, like x = 1 + (1/2) + (1/4) + (1/8)+… and do the same steps, everything works out fine, and you get x = 2. But that’s because you;re not trying to subtract one infinity from another, but one finite sum from another (even though both have an infinite number of sums).
As it stands, yor “proof” is like those proofs that rely on a “hidden” division by zero – you get in trouble because you’re trying to use infinity as if it’s just another number. It ain’t.

The series does not converge with twos complement number either. It just cycles through 1,3,7 -1 etc.

A metric is a function that gives you the distance between two points (in a metric space). Now, given that every rational x can be written as x = 2[sup]n[/sup] u/v, with u and v indivisible by 2, with n being a unique choice, we can then define the 2-adic valuation in this way: |x|[sub]2[/sub] = (1/2)[sup]n[/sup]. If x = 0, then |x|[sub]2[/sub] = 0. In the same way that the absolute value defines a metric on the rationals (d(x,y) = |x-y|), the 2-adic valuation does the same.

It’s been some time since I last worked with the p-adic numbers, but I’ve posted in the other thread to invite other mathematicians whose knowledge of the subject is better than mine to come explain why this series does converge (and to -1) in the 2-adic numbers.

Missed the edit window.

Of course, the convergence of sequences and series is defined in a metric space. A sequence x[sub]n[/sub] converges to x if, for every e > 0, then there exists a point N such that if n > N, then |x[sub]n[/sub] - x| < e. From this, we can see how different metrics lead to different definitions of convergence, and we can probably explain how this series converges in the 2-adic numbers.

Let x[sub]n[/sub] = 1 + 2 + 4 + … + 2[sup]n[/sup] = 2[sup]n+1[/sup] - 1. Then x[sub]n[/sub] - (-1) = 2[sup]n+1[/sup], and therefore |x[sub]n[/sub] - (-1)|[sub]2[/sub] = |2[sup]n+1[/sup]|[sub]2[/sub] = (1/2)[sup]n+1[/sup], which converges to 0 as n goes to infinity. This isn’t a very formal proof (I haven’t even proved that the 2-adic valuation really defines a metric on the rationals), but it can help you see how this series converges to -1 in the 2-adic numbers.

With N-bit numbers, there are always N terms to sum, so it converges. For all finite N, it converges to
-2^(N-1) + … + -8 + -4 + -2 + -1 = 1.

The standard Calculus II definition for the sum of an infinite series is that it’s limit of the sequence of partial sums, if such limit exists. So the sum of 1 + 2 + 4 + 8 + … would be the limit, as n approaches infinity, of 1 + 2 + 4 + … + 2[sup]n[/sup]. Since this limit doesn’t exist, the series diverges: it doesn’t have a sum.

In the earlier days of infinite series, mathematicians played around with them without being all that careful about whether or not they converged, leading to some weird, contradictory or controversial results.

Well, there’s a theorem that says that if you have a conditionally convergent series (i.e. a convergent series in which some of the terms are positive and some negative, which would diverge if you made all the terms positive), you can, by a suitable rearrangement of the terms, get it to add up to any sum you want.

I’m playing fast and loose with p-adic integers here, but this should express the basic idea:

Fix a prime p, and consider sequences of integers a = (a[sub]0[/sub], a[sub]1[/sub], a[sub]2[/sub], …). We introduce an equivalence relation such that a and b are equivalent iff a[sub]i[/sub] = b[sub]i[/sub] mod p except at finitely many points. The p-adic integers are the equivalence classes of this relation.

In the 2-adic integers, (1, 1, 1, 1, 1, …) = (0, 1, 1, 1, 1, …), (2, 2, 2, 2, 2, …) = (0, 0, 2, 2, 2, …), (4, 4, 4, 4, 4, …) = (0, 0, 0, 4, 4, …), (8, 8, 8, 8, …) = (0, 0, 0, 8, …), and so on. If you add together the right-hand side of every power of two in this form, you get (0, 1, 3, 7, 15, …), which is the same as (0, -1, -1, -1, -1, …), and that’s the same as (-1, -1, -1, -1, -1, …). Again, this is just a sketch, but the details work out well.

In the case of complex numbers, the power series 1 + r + r[sup]2[/sup] + r[sup]3[/sup] + … converges to 1/(1 - r) whenever |r| < 1. This is an analytic function on the unit disk, meaning that it’s defined there and its derivatives behave nicely, so there’s a unique analytic function defined on the complex plane that agrees with it on the unit disk. That function happens to be 1/(1 - r), which is defined everywhere except r = 1. That allows us to say in some sense that the sum of any geometric series is 1/(1 - r) as long as the common ratio r is not 1.

It might seem as though we can arbitrarily change the limits of sequences by changing the metric, but this is not the case. If we want to change the limit of even a single sequence, then the new metric will not be able to provide a limit for the exact same sequences the old one could.

If we had another metric that gave us limits for exactly the same sequences as 2-adic valuation, then the limit here would still be -1.