- #1

- 1,030

- 4

For example, [tex]\sum_{x\in S}\frac{1}{x}[/tex] where S is the set of integers that, when expanded in binary, represents a valid Java program compiled on the x86 architecture. Is it convergent? Divergent?

- Thread starter Dragonfall
- Start date

- #1

- 1,030

- 4

For example, [tex]\sum_{x\in S}\frac{1}{x}[/tex] where S is the set of integers that, when expanded in binary, represents a valid Java program compiled on the x86 architecture. Is it convergent? Divergent?

- #2

- 107

- 0

To answer your second question, would'nt you consider 0 an integer?

edit: Well in that case if S is symmetric about 0 you also see something interesting happening. But with 1/x as a summand the sum is usually divergent.

edit: Well in that case if S is symmetric about 0 you also see something interesting happening. But with 1/x as a summand the sum is usually divergent.

Last edited:

- #3

- 1,030

- 4

I suppose we'll have to remove 0 from the sets.

- #4

- 401

- 0

- #5

- 352

- 0

"A valid program compiled for the Java VM" might not be.

- #6

- 1,030

- 4

Well then let's go with "a valid program compiled for the java VM". Does it converge?

"A valid program compiled for the Java VM" might not be.

The set of integers is not finite, expressed in binary or otherwise.The set of binary numbers would have to be finite so convergence or divergence isn't really a question.

- #7

- 401

- 0

I meant a set of binary numbers representing a program would have to be finite.

- #8

- 352

- 0

But the set of all integers representing a program isn't...

- #9

- 1,030

- 4

Like Uman said,I meant a set of binary numbers representing a program would have to be finite.

- #10

- 3

- 0

Here's a 'top of the head' answer - I haven't actually worked it out. But I suspect the java example converges (edit - diverges). Here's my thinking: the simplest valid java program would just be some declaration of a constant (say a string), along with a bit of overhead. So there would be a sequence of valid programs where the constant value increases by 1 in the coding representation. The question is, what happens when a new byte needs to be added? Can we always get away with just adding one more byte to the binary (I don't know enough about java byte-coding to wnaswer that). Is it ever the case where the consecutive gaps between valid programs are large enough that the sum of their inverses converge? I strongly suspect the answer is no, but I don't have time right now to work out the details. If someone else doesn't beat me to it, maybe I'll work through it this weekend.

edit - oops. I meant to say diverges.

edit - oops. I meant to say diverges.

Last edited:

- #11

- 1,030

- 4

It depends on how Java "enumerates" programs. Two different enumerations of Turing machines, for example, might give a convergent and a divergent sum. For example, in one enumeration all valid programs are enumerated at powers of 2, and in the other it's the opposite.

EDIT: In fact, I think the Java example diverges. Any set containing an infinite arithmetic progression leads to a divergent sum, and*maybe* that Java binaries set contains such a sequence.

EDIT: In fact, I think the Java example diverges. Any set containing an infinite arithmetic progression leads to a divergent sum, and

Last edited:

- #12

- 3

- 0

Yes. But I'd be very surprised if the java byte-code compiler used any kind of sparse coding, much less exponential. I think it's much more likely that it's going to be linear, so S will look a lot more like {x: x=m + 1} for some minimum m chars of overhead.It depends on how Java "enumerates" programs. Two different enumerations of Turing machines, for example, might give a convergent and a divergent sum. For example, in one enumeration all valid programs are enumerated at powers of 2, and in the other it's the opposite.

If we were talking about Godel-numbering, or some such scheme, then the "weird set" will almost certainly converge. But that's because Godel numbers are constructed so as to have lots of desirable properties when considered "all at once", as a number. There's no need for the Java VM to consider programs in that way - so it will fill the "valid program space" much more efficiently, i.e. much more densely.

- #13

- 3

- 0

I'm not sure my last post was actually coherent - but I hope my point gets across.

What I'm trying to say is that, in order to find a set you're talking about that converges, you'll have to find some set S that "grows fast". One potentially interesting example that springs to my mind is Ramsey numbers.

- #14

- 401

- 0

- #15

- 1,030

- 4

- Last Post

- Replies
- 4

- Views
- 2K

- Last Post

- Replies
- 11

- Views
- 3K

- Last Post

- Replies
- 4

- Views
- 2K

- Last Post

- Replies
- 11

- Views
- 3K

- Last Post

- Replies
- 4

- Views
- 6K

- Last Post

- Replies
- 8

- Views
- 12K

- Last Post

- Replies
- 3

- Views
- 3K

- Last Post

- Replies
- 11

- Views
- 844

- Last Post

- Replies
- 1

- Views
- 1K

- Last Post

- Replies
- 7

- Views
- 2K