Why do people say irrational numbers must contain any sequence of numbers?

Watch out for all those spam text messages now.

How would one even start to try to prove that pi never repeats itself? By repeat, I mean in the form of 3.XX where “X” can be any sequence of integers, obviously starting with 1415…

I do not mean repetition like 0.31313131313131313131…

Or maybe a slightly more meta-question: Can it be proven that such a proof is impossible?

All you have to do is show that pi is irrational.

It seems to me, from what Bremidon wrote, that they’re not asking about showing that pi is irrational; they’re just asking about showing that the decimal expansion of pi does not start off 3.XX [followed by further irrelevant digits] for any finite (nontrivial) string of digits X.

That is, showing that there is no positive integer N and natural X <= 10^N such that pi - 3 - X/10^N - X/10^(2N) < 1/10^(2N), if I’ve done my fiddling correctly…

I have no idea if anyone knows how to prove such a thing. But it may well be possible; there’s no obvious reason it shouldn’t be.

One could doubtless find some base in which the first two digits of pi after the radix point are the same. In such a base, pi would indeed have the form 3.XXetc where X was a sequence of digits.

While we’re at it, everyone’s second-favorite irrational (and transcendental) number, e, starts off 2.718281828…, with a repeated “1828”. And in fact, e actually has a tendency towards early repeats of this sort, in arbitrary base. The pattern always disappears once you get a ways in, though.

Oh? Why is there such a tendency? (And what are other examples? I’m having trouble finding them)

OK, now I have a bit of egg on my face, because it appears that, if it does have that tendency, it’s not very strong. Let me at least tell a story about how I came to that conclusion.

Many years ago, I noticed the repeat in base 10, and wondered if it was a pure coincidence. So I reasoned, well, e = 1/0! + 1/1! + 1/2! + 1/3! + … Since factorial numbers have a lot of factors, and in particular have a lot of factors in common with other factorial numbers, this means that it’s easy to find common denominators for the partial sums of that series. This would, I reasoned, naturally lead to e resembling a rational number, which would explain why it might have repeats in the first few digits. I thus became satisfied that the pattern wasn’t a coincidence, and that there thus no reason something similar shouldn’t also occur in other bases. At the time, I had no easy way available to me to calculate e in other bases, so I left it go at that.

Now, though, I do have such tools available. And playing around with it a bit, I haven’t found any other base with such a pattern. So, as so often is the case, a beautiful theory is ruined by cold experiment.

Oh. That’s an interesting idea. Let’s see what we can do with it.

Take e[sub]n[/sub] to be the sum of reciprocal factorials up through 1/n!. We know that e[sub]n[/sub] is an integer over n!, and that e - e[sub]n[/sub] < e/(n + 1)!. That’s not nothing; it tells us how to easily get rational approximates that quite quickly approach e.

But unfortunately, the denominators of the rational approximates grow at almost the same speed as the reciprocal of the error, which scuttles the idea of using this to guarantee patterns in digits [in general, 1/x can take up to x - 1 digits to start repeating, which means we’ll need accuracy on the order of 10[sup]-n![/sup] for this repetition to stay visible after the error term, but our error term is only on the order e/(n + 1)!].

We might be able to get more clever about bounding the denominator and digits-till-repetition of e[sub]n[/sub] and the magnitude of e - e[sub]n[/sub], but not clever enough to make the whole thing tick, I suppose, given that experiment shows it doesn’t actually work out. Ah well, happens to the best of us.

Thank you Indistinguishable. That’s exactly what I’m asking. Proving irrationality would only prove that it does not repeat an infinite number of times.

I suspect that such a proof is not possible from non-rigorous intuition: to find a particular digit in an irrational number, you have to calculate the number out to said digit. Any proof that a number repeats itself (once) would imply that we know something about digits we have not yet calculated. While I can see the possibility of this being true, it does not seem likely.

Huh. It just occurred to me that if we were able to prove 3.XX, it might be easy to expand that to 3.XXX, and 3.XXXX.

In fact, we might be able to expand it, so that we could say that the number repeats itself indefinitely, but not infinitly.

I suppose we could try to construct such a number:

0.1
0.1221
0.122122212212221221
0.122122212212221221222212212221221222122122221221222122122212212222122122212212221221

I think it should be clear how I am constructing the number. I use the 2’s to make sure that we never get an infintely repeating number; the number of 2’s also indicates the number of repetitions of 1’s and smaller groups of 2’s. This number is irrational with an indefinite number of repeats but not an infinite number of repeats.

So I guess I just partially torpedoed my own intuition. It is at least possible to construct a number with these attributes. Now, is it possible to prove a number has these attributes without having deliberately constructed it to be so?

scratch this post

Consider the sequence whose kth digit is 1 if k is prime and 0 otherwise.

I know that this sequence does not start off XX, for X of any finite positive length. For we can easily check there is not a length 1 repeat [the 1st and 2nd digits of the sequence are 0 and 1, respectively], and for N > 1, taking p to be a prime factor of N, we know that the pth digit of the sequence is 1 while the (p + N)th digit of the sequence is 0, and thus there is not a length N repeat. Q.E.D.

For all that, no one has ever calculated this sequence out beyond some particular point. So, you see, it’s possible in at least some cases to prove this sort of thing about a digit-sequence even though it entails facts about digits we have not yet calculated.

And, for base 16, we have such a formula for pi, see Bailey–Borwein–Plouffe formula

Oh I misread that, missing the entailing stuff about numbers not yet calculated. In any case, to know the nth digit of pi, in base 16, we don’t need to calculate all the preceding numbers, which is cool.

The post about repeating digits reminds me of a fairly well-known but still interesting puzzle:

Construct an infinitely long ternary representation in which no adjacent groups are identical.

As a clarifying example, if you start .01202101202… you’re stymied:

If you add 0 then 20 20 is a forbidden duplication.
If you add 1 then 012021 012021 is a forbidden duplication.
If you add 2 then 2 2 is a forbidden duplication.

(Most solutions will have 33% each of 0,1,2. If the puzzle is too easy, look for a solution most skewed from the 33%-33%-33% distribution. :dubious: )

Wow, my intuition is taking a beating. Of course, I scored the first hit by construction, but it’s interesting to see that there are other examples.

Btw, interesting story about Plouffe and his (bad) impressions of his collaboration with Bailey and Borwein. (story here with link to original post) They really come off looking like cads, if you accept Plouffe’s PoV. I was unable to find any verifications of his story or any responses from the other two, so I am somewhat skeptical.