# Patterns in Infinity

**URL:** <https://boards.straightdope.com/t/patterns-in-infinity/217166>\
**Category:** Factual Questions\
**Created:** [December 5, 2003, 4:16pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166 "2003-12-05T16:16:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:16pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/1 "2003-12-05T16:16:03Z")

</div>

I was in an “Introduction to Logic” lecture the other evening (back at college at night… sheeh) when the Maths Prof. stated that pi represented in decimal form is infinite and after a certain point, random.

I asked him if he meant that we just _assume_ it’s random, 'cause we can’t find a pattern yet. I further ventured that we couldn’t _prove_ that pi was random, since a pattern _may_ emerge at some n-th decimal place.

The teacher just laughed at me and said - “You don’t understand.” and carried on with the lecture.

Well first up, of course I don’t understand - that’s why I’m here in the first place, but more importantly,

Why was my question so stupid ?

Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![raygirvan](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@raygirvan](https://boards.straightdope.com/u/raygirvan)\
**Post date:** [December 5, 2003, 4:25pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/2 "2003-12-05T16:25:44Z")

</div>

Depends what you mean by pattern. If you mean that it might start repeating, that’s definitely out. You can only get repeats if a number is “rational” (that is, it can be expressed as a whole-number fraction like 355/113) - but pi has been proved to be irrational.

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:28pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/3 "2003-12-05T16:28:24Z")

</div>

The pattern wouldn’t necessarily have to be repeating. But say it was - how can we _prove_ that this cannot happen.

I know I’m just missing something very obvious…

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [December 5, 2003, 4:30pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/4 "2003-12-05T16:30:49Z")

</div>

Your question was **not** stupid.

_pi_ is an example of an irrational number, which means that, when you write it out in decimal form, the digits after the decimal point neither terminate nor do they repeat the same pattern over and over again. But it’s not **obvious** that pi is irrational; it wasn’t proved until 1761. (By comparison, the ancient Greeks knew that the square root of two is irrational, for example; and _e_ was shown to be irrational in 1737.)

As for other sorts of patterns or randomness in the digits of pi, none has been found, as far as I know (and by know we have bazillions of digits); but it’d be tough to prove there’s no pattern anywhere, partly because you’d have to specify precisely what you mean by a “pattern.”

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:36pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/5 "2003-12-05T16:36:32Z")

</div>

**Thudlow Boink** - thanks for the understanding. So am I right in saying that irrational numbers never repeat, because they are irrational numbers. i.e. if they repeat at any point, then they’re not irrational.

So (hopefully) I understand that much. But how can we prove that maybe all irrational numbers start to repeat after the gazillionth decimal place ?

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:37pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/6 "2003-12-05T16:37:41Z")

</div>

That should read "how can we prove that maybe all irrational numbers **don’t** start to repeat after the gazillionth decimal place ?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [December 5, 2003, 4:37pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/7 "2003-12-05T16:37:58Z")

</div>

The digits of [symbol]p[/symbol] _do_ have a pattern, although it’s not as simple as a repeating decimal. In short, there’s an algorithm that will let you calculate the nth hexadecimal digit of [symbol]p[/symbol] without knowing any of the previous ones. Given the first n digits of [symbol]p[/symbol], we can compute the nth decimal digit of [symbol]p[/symbol], although it’s a slow process.

Now, there are real numbers whose decimal representations do not follow any pattern–in fact, most real numbers are like that–but it is not possible to show that any specific real number has this property.

---

<div class="post-metadata">

**Author:** ![Small\_Clanger](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Small\_Clanger](https://boards.straightdope.com/u/Small_Clanger)\
**Post date:** [December 5, 2003, 4:38pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/8 "2003-12-05T16:38:52Z")

</div>

I think you’d use proof by contradiction, you state pi = x/y where x and y are integers, and show that leads to a a false statement. Just wait, some maths whiz will show us I bet…

You want to be careful thinking about infinite stuff it gets very counter intuitive. Same with randomness. Slippery subjects.

Why didn’t the prof justify his statments? Sounds a bit off hand to me.

---

<div class="post-metadata">

**Author:** ![Trunk](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Trunk](https://boards.straightdope.com/u/Trunk)\
**Post date:** [December 5, 2003, 4:39pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/9 "2003-12-05T16:39:18Z")

</div>

Yeah, “pattern” could be anything.

It’s a matter of fact that the sequence 12345 repeats “infinitely often” if you write out all the digits of PI. Not just a billion times or a million times.

As a matter of fact, that’s true of any finite sequence, even a sequence a million digits long.

FWIW, PI goes beyond irrational. It’s transcendental. It can not be be the solution to a polynomial with integer coefficients. So even Sqrt(2), the solution to the equation X\*X - 2 = 0 is not transcendental, but it is irrational.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [December 5, 2003, 4:41pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/10 "2003-12-05T16:41:51Z")

</div>

> [@](#):
>
> \*Originally posted by Achilles \*  
> \*\*That should read "how can we prove that maybe all irrational numbers **don’t** start to repeat after the gazillionth decimal place ? \*\*

If they repeat, we can use that to show that they’re rational, by the same process you used in grade school to convert repeating decimals to fractions.

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:44pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/11 "2003-12-05T16:44:13Z")

</div>

Hmmm. Still sounds like the prof was right, but was being a jerk.

Thanks all…

I’ll remember for the next class…

🙂

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:45pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/12 "2003-12-05T16:45:31Z")

</div>

> [@](#):
>
> \*Originally posted by ultrafilter \*  
> \*\*If they repeat, we can use that to show that they’re rational, by the same process you used in grade school to convert repeating decimals to fractions. \*\*

Thanks - that was what I wanted to know…

Thanks again.

🙂

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [December 5, 2003, 4:48pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/13 "2003-12-05T16:48:26Z")

</div>

> [@](#):
>
> \*Originally posted by Trunk \*  
> \*\*It’s a matter of fact that the sequence 12345 repeats “infinitely often” if you write out all the digits of PI. Not just a billion times or a million times.
> 
> As a matter of fact, that’s true of any finite sequence, even a sequence a million digits long.\*\*

If you have a proof of this statement, you can become quite famous by publishing it.

---

<div class="post-metadata">

**Author:** ![Achilles](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Achilles](https://boards.straightdope.com/u/Achilles)\
**Post date:** [December 5, 2003, 4:53pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/14 "2003-12-05T16:53:37Z")

</div>

> [@](#):
>
> \*Originally posted by ultrafilter \*  
> \*\*If you have a proof of this statement, you can become quite famous by publishing it. \*\*

Yeah - I didn’t understand that post either, but considering the circumstances, I just left well enough alone.

---

<div class="post-metadata">

**Author:** ![lucwarm](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lucwarm](https://boards.straightdope.com/u/lucwarm)\
**Post date:** [December 5, 2003, 5:00pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/15 "2003-12-05T17:00:23Z")

</div>

One example of an irrational number with a pattern is the following:

0.101001000100001000001 . . . .

If you allow this sort of pattern, then it seems to me that pi can be said to have a pattern.

And for what it’s worth, my understanding is that it’s an open question as to whether any given sequence of digits can be found in pi.

---

<div class="post-metadata">

**Author:** ![raygirvan](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@raygirvan](https://boards.straightdope.com/u/raygirvan)\
**Post date:** [December 5, 2003, 5:07pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/16 "2003-12-05T17:07:31Z")

</div>

By the way, **Achilles** , I agree with **Thudlow Boink** that it definitely wasn’t a stupid question. Probably the guy was just in mid-lecture and didn’t want to get into a lengthy discussion. But he should have suggested discussing it afterward.

The deal with pi is that there are heavier methods to show that it’s irrational, even you don’t know the digits. It comes down to a 1761 proof by one Lambert, who showed by means way beyond me that if a number x is rational, then both e^x and tan(x) are irrational. Suppose x = pi/4? You find tan(pi/4) = 1 (i.e. it’s rational), so pi/4 - and hence pi - must be irrational.

---

<div class="post-metadata">

**Author:** ![Trunk](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Trunk](https://boards.straightdope.com/u/Trunk)\
**Post date:** [December 5, 2003, 6:53pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/17 "2003-12-05T18:53:56Z")

</div>

> [@](#):
>
> \*Originally posted by ultrafilter \*  
> \*\*If you have a proof of this statement, you can become quite famous by publishing it. \*\*

I may have been careless in an assumption.

Certainly it’s true for any infinite string of numbers with each successive digit chosen independently (straightforward application of the “borel-cantelli lemma”).

I was being sloppy assuming that you might have the necessary conditions in the digits of PI since it appears so random.

Still, I’d suspect it were true.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [December 5, 2003, 7:03pm UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/18 "2003-12-05T19:03:55Z")

</div>

> [@](#):
>
> \*Originally posted by Trunk \*  
> \*\*I may have been careless in an assumption.
> 
> Certainly it’s true for any infinite string of numbers with each successive digit chosen independently (straightforward application of the “borel-cantelli lemma”).
> 
> I was being sloppy assuming that you might have the necessary conditions in the digits of PI since it appears so random.
> 
> Still, I’d suspect it were true. \*\*

Most people do assume that it’s true for pi, but AFAIK no one’s produced a proof yet.

---

<div class="post-metadata">

**Author:** ![Race\_Bannon](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@Race\_Bannon](https://boards.straightdope.com/u/Race_Bannon)\
**Post date:** [December 6, 2003, 12:03am UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/19 "2003-12-06T00:03:37Z")

</div>

Achilles, I think your prof stuck his foot in his mouth - you asked a very good question, and he backed out.

I think it’s a bad idea to try to talk about randomness of the digits of pi. For one thing, as ultrafilter pointed out, nobody has proven anything about the probability distribution of the digits of pi, which would be the only way I can see of linking probability to the explanation. And, saying that an irrational number has some kind of “random” character is not a good way to explain irrational numbers.

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [December 6, 2003, 3:15am UTC](https://boards.straightdope.com/t/patterns-in-infinity/217166/20 "2003-12-06T03:15:54Z")

</div>

> [@](#):
>
> \*Originally posted by Trunk \*  
> \*\*I may have been careless in an assumption.
> 
> Certainly it’s true for any infinite string of numbers with each successive digit chosen independently (straightforward application of the “borel-cantelli lemma”).
> 
> I was being sloppy assuming that you might have the necessary conditions in the digits of PI since it appears so random.
> 
> Still, I’d suspect it were true. \*\*

The term for this property of a number is [normal](http://mathworld.wolfram.com/NormalNumber.html). It’s not currently known whether pi, or just about any interesting number, is normal, but (as **ultrafilter** says) I think most mathematicians suspect that it’s true.

[Next page](https://boards.straightdope.com/t/patterns-in-infinity/217166.md?page=2)
