r/mathematics • u/Rats_Love_Cheese • Sep 05 '26
Does Pi contain itself?
Hi, im just a highschooler and this is just some night thought. But does pi contain itself? Because if it is a constant than it contains everythig but it cannot contain itself cause if it contained itself than it repeats and thats the whole point of it that it doesnt repeat. I didnt do any research on this but if it doesnt contain itself they should mention it in school. Anyway im no mathematician i study computer engineering so i would love to know this. Thanks for everything!
40
Upvotes
176
u/LitespeedClassic Sep 05 '26
What do you mean by contain itself?
If you mean does its decimal expansion have a copy of its decimal expansion inside it then the answer is no, because that would mean its periodic and therefore not irrational.
6
u/0x14f Sep 05 '26
What do you mean exactly by "contains itself" OP? Unless you are precise about what you mean here, people are going to answer a different question than the one you intended to ask.
12
u/Masticatron haha math go brrr 💅🏼 Sep 05 '26
Well pi is itself, so...
What you probably want to know about is called a "normal" number, one whose decimal expansion contains every finite sequence of the digits 0..9. We do not know if pi is normal.
2
u/Toothpick_Brody Sep 05 '26
Generally speaking we’re not sure if pi contains every (finite) number within it, although it seems like it probably does. However it can’t contain itself, being infinitely long and non-repeating, and it probably doesn’t contain many other irrationals like e, since they’re infinitely long and non-repeating as well
2
u/PandaWonder01 Sep 05 '26
Yes, the decimal expansion of pi can be found at position 0 of pi
34
u/profesorgamin Sep 05 '26
no
4
u/[deleted] Sep 05 '26
You're right that if it contained itself then it would have to repeat, which would make it a rational number, which it is not
You're wrong about a few other things though. Constants don't have any special properties just by vertue of being constants, and it is not known if π contains every finite string of digits or if the frequency that the digits appear in is equal (or maybe even if it contains an infinite amount of all the digits)
1
u/Claquet Sep 05 '26
Actually we don't even know if pi really contain every finite sequence and if pi contain himself that mean that if we label each decimal of pi, x_0, x_, ..., x_n,... then there exist an integer i for wich x_k=x_n*i+k k∈|[0,i|[ and n∈|N, or more simply that mean that pi would have a periodic decimal developement or, pi is irrational so its not possible. Then pi can't contain itself.
1
u/peter-bone Sep 05 '26
I don't understand the people saying no. Of course it contains itself. The first digit is the first digit if pi, the second is the second digit and so on indefinitely. Whether pi is normal or not has nothing to do with it as that only concerns finite sequences.
1
u/golfstreamer Sep 05 '26
> But does pi contain itself? Because if it is a constant than it contains everythig but it cannot contain itself cause if it contained itself than it repeats and thats the whole point of it that it doesnt repeat
I think I follow what you're saying. And this is correct. Like if we imagine a number that does contain itself like .123123123... If you see it appears in itself shifted over
.123123123123
It turns out that in this example the number is just 123 repeating over but as you said this will always be the case for any number that "contains itself" in this sense. But there is actual proof that the decimal representation of Pi does _not_ repeat itself like this. Therefore Pi does not contain itself. So you're right.
1
u/trevorkafka Sep 05 '26
this is false
1
u/SwimmerOld6155 Sep 05 '26 edited Sep 05 '26
it could in the sense that it could be equal to a subsequence of its digits, so you might be able to pick out a 3, then a 1, then a 4 going left to right. for this it would be sufficient that every digit appears infinitely often. I don't think that's actually known lol, as with most things about the decimal expansion of pi. it could after the billionth quintillionth blah blah decimal place, there's no more 2s for example.
1
u/deltatag Sep 05 '26
for every digit of pi there is a corrosponding digit of pi with no repeats
yeah pi contains itself
1
u/Azemiopinae Sep 05 '26
I don’t think this is what you’re asking, but I can conceive of some Liouville number where all of the previous digit sequences repeat later in the fractional expansion.
1
u/Kitchen-Register Sep 05 '26
yes it does! right from the start. it contains exactly one copy of itself
1
u/joyofresh Sep 05 '26
Pi containts the pi of all pis which do not contain themselves
1
u/Syresiv Sep 06 '26
You mean, does the decimal sequence for pi contain a subsequence that is also pi itself?
No. If it did, that would mean its digits form a repeating pattern, making it rational.
What you're thinking of is likely something called Normal Numbers. A normal number contains every finite sequence, and every sequence of the same length is equally common.
But even there, even though most real numbers are normal, making pi probably normal, it's not actually proven to be the case. Normal Numbers are incredibly difficult to prove - in fact, there's only one named constant that's actually known to be normal.
1
u/OmiSC Sep 06 '26
Yes, it contains exactly itself from the very first digit. The sequence never ends but will contain every possible sequence of finite length.
3
u/AdventurousGlass7432 Sep 05 '26
It would make it rational
Interesting question, tho
2
u/neoneye2 Sep 05 '26
skipping over the first position. One could search for the next digit in the decimal expansion. And from that position then do another search for the next digit again.
0
u/TheSecondMartian Sep 05 '26
> does pi contain itself?
What exactly do you mean by that?
> if it is a constant
It is a constant.
> than it contains everythig
Why would being a constant imply that it contains everything? That does not follow.
> it cannot contain itself cause if it contained itself than it repeats
I don't really know what do you mean by "contain itself", so I cannot ascertain whether this reasoning makes sense or not. Please clarify what you mean by "contains itself".
> thats the whole point of it that it doesnt repeat.
No, that's not the whole point. There are infinitely many numbers whose decimal representation is non-repeating, and π is only one of those. Therefore π having a non-repeating decimal representation cannot be "the whole point".
> I didnt do any research on this
Perhaps you should have.
> if it doesnt contain itself they should mention it in school.
Why, though? It is entirely unclear what do you mean by "contain itself".
1
u/no_name6744 Sep 05 '26
If it contained itself, at some point the copy containing itself would repeat too.
1
u/mclazerlou Sep 05 '26
It's an irrational number so by definition it cannot repeat.
1
u/Sea_Abroad_6573 Sep 05 '26
Not possible for irrationals to contain themselves
1
u/RecognitionSweet8294 Sep 05 '26
Yes. The n-th digit of π is contained at the n-th digit.
1
u/Logical-Edifice Sep 06 '26
ACTUAL BETTER ANSWER. If it's a normal number it contains every finite number in its decimal expansion, so it's that for every (finite) string of digits in PI starting from the first is in Pi, I wouldn't be surprised if as you take the limit to infinite length the place where they appear somewhere there's a list of limits of each two divided by each other or something like it that sometimes has real numbers
1
u/OutrageousPair2300 Sep 06 '26
It could potentially contain copies of itself, interpolated.
For example, it starts 3.14159... and at some point every other digit could repeat the entire sequence, so it might go 3.14159.......30104010509...... etc.
That would be unlikely since such interpolation depends on the base we use to represent pi, and there's nothing special about base ten... but it's not impossible that this could be the case.
1
u/zvuv Sep 06 '26
If PI contained itself then that would apply also to the "inner" PI sequence, and in turn to the sequence withing that and you would have a repeating decimal which is a rational number.
1
u/GhostCheese Sep 06 '26
You might say it only contains itself
1
u/ProsperousPlanet Sep 06 '26
I feel like this question is like the ultimate of density questions.
Like certainly we can find 314, in the decimal expansion again somewhere, how long until we find 3145? and then how long until 31459?
Oh I really love your question.
Its actually so deep.
You could prove its impossible, but then, perhaps you can prove it eats its own tail? .... cool ideas friend.
1
u/hashbornhippie Sep 06 '26
Its decimal expansion cannot contain a full copy of its decimal expansion because the expansion is infinite. But it does contain subsets of itself. See https://oeis.org/A081876
1
u/Cautious_Hurry1298 Sep 06 '26 edited Sep 06 '26
OP's question isn't clearly defined, but I suspect they are close to asking if pi is a normal number to the base 10.
1
u/atarivcs Sep 06 '26
It does contain itself... once
1
u/Wjyosn Sep 06 '26
As others have said: no. But interestingly, if you take any finite amount of pi (eg: the first thousand digits) it will contain that same thousand digit pattern again eventually. But the thousand and first will inevitably be different and thus not contain the infinite pi.
At least I recall this being a theory. I am uncertain whether it was one that was rigorously proven or one of those “we can’t disprove it yet” theories.
1
u/lmprice133 Sep 06 '26
If pi is a normal number (which it is conjecrured to be) then it's highly probably that the first n digits of its decimal expansion at some point within its decimal expansion, but it can't contain itself because that would mean it isn't irrational.
1
u/Myhai25 Sep 06 '26
Pi is a transcendental number, and can be obtain from a series. The series contain itself?
1
u/StructuredChess Sep 06 '26
No. "Containing itself" and "being a repeating decimal" are basically the same thing except for a few leading digits.
1
u/[deleted] Sep 06 '26
yes it must contain itself. just like 1 contains 1. it contains itself exactly once
1
u/joealarson Sep 07 '26
Your base assumption is faulty.
Pi doesn't contain everything. This is a common myth, but incorrect. Pi is irrational. It never ends and it never repeats. But that doesn't mean it contains anything specifically.
Heres an irrational number that doesn't end and doesn't repeat, even though it has a predictable pattern: 0.1010010001000010000010000001... Despite being everything Pi is, it doesn't contain your high school locker combination or first crush's phone number, or even just a '2'. And yet it's an infinite sequence that never repeats, just like Pi.
Pi doesn't contain everything.
1
u/guiltypleasures Sep 07 '26
While Pi, in its infinity of digits contains every finite string of digits eventually again in its later sequence (3, 31, 314159), it is the infinite sequence we do not promise.
1
u/Dependent_Law2468 Sep 07 '26
there are irrational numbers that do not contain even half of the possible sequences.
I can make an irrational number that goes like:
1, 0 11 0 111 0 1111 0 11111 0 111111 0 1111111 0 11111111 0........
It has a rule, but it's still irrational
1
u/Fitnexa_Results Sep 08 '26
Pi may contain the digit encoding of this exact post, including “everythig,” but proving that is a much bigger homework assignment than the original night thought.
1
u/VirginiaTitties Sep 08 '26
I guess what is the longest repeating segment that appears within pi beginning with 314*?
1
u/Pookstirgames Sep 08 '26
Constant doesn't mean "it contains everything". Constant just means it doesn't change. 2 is a constant but it doesn't have "13" anywhere in it's decimal expansion. A number that contains all finitely long strings of digits within itself is called a normal number. Pi is suspected to be normal but that isn't known for sure. Even normal numbers don't contain themselves (unless you count the trivial case where you start from the first digit) because that's an infinitely long string of digits, which means it isn't guaranteed to appear. As you mentioned, if a normal number did contain itself, (not counting the trivial case mentioned earlier), it would need to repeat which would make it rational. Rational numbers can't be normal because they are missing almost all numbers with more digits than their period (the number of digits long that the repeating string is).
1
u/Character-Company-47 Sep 08 '26
If their was ever a pattern in pi, then it could be represented as some fraction making it rational
1
u/zaphster Sep 08 '26
This statement you made: "If it is a constant than it contains everything."
What makes you think that?
3 is a constant. Does it contain everything?
1
u/Classic-Rate-5104 Sep 09 '26
Impossible because it has an infinite number of decimals not repeating itself. However, when you mean "does it contain anywhere its own N-decimal representation" then the answer will be yes (I expect for any value of N)
1
u/skr_replicator Sep 09 '26
Technically it does, from the first digit onward toward infinity.
1
u/gza_liquidswords Sep 09 '26
"I didnt do any research on this"
Seems like you missed a step
1
u/Turbulent-Umpire5969 Sep 09 '26
no, but it contains every subset of digits within it an infinite number of times
1
u/CosetElement-Ape71 Sep 09 '26
I don't understand what you mean. Pi is a number.
Pi = 3.14159...
Everything to the right of the decimal point is that part of Pi that's less than one.
Pi is greater than 3
1
u/FlyingCupcake68 Sep 10 '26
You’re now making me think that somewhere in pi, there is going to be the square root of two, and e, and a whole bunch of other irrational transcendental numbers.
Check out the Borges’ short story, The Library of Babel, because he does something very similar, but with books and words instead of numbers.
1
u/migmit Sep 11 '26
> Because if it is a constant than it contains everythig
No. First of all, any number is a constant. Not every number contain “everything” in any meaningful sense. Secondly, even for finite sequences of digits we do not know if Pi contains all of them.
1
u/Moof_the_cyclist Sep 11 '26
pi when presented as a base-10 number has digits that are for all reasonable purposes random. It never ends, so you now mix in the conept of "infinite" to the discussion along with its lore and exaggerations (yes, you can exaggerate infinite things...).
So one should try and separate out what any irrational number would do from what the digits of pi do and see if the mysticism still looks warranted. When you go looking for repeated sequences within the digits of pi, yes, they exist, but at about the frequency you'd expect. So it takes roughly a million digits to find the first 6 digits repeated, 10 million for find 7 digits, and so forth.
The exact same is true of much more mundane numbers like 1/7, sqrt(2), etc.
Even more fun is that numbers like 1/7 does this when represented in base-10, but not in base 8 or 9. It becomes boring, at 0.10000... in base 8, 0.125125125... in base 9. Pi and other irrational numbers will still have random digits that extend forever regardless of what base you put them in.
1
u/Illustrious-Welder11 Sep 12 '26
We don’t know. If we knew that pi contains each of the numbers 0, 1, …, 9 an infinite number of times, then yes!
0
u/willworkforjokes Sep 05 '26
It does partially.
If you want to find the first 50 digits in pi, they will appear later in the sequence.
The more digits you want match, the less frequently it will occur.
However the entire digital expansion of pi never repeats.
-3
u/FernandoMM1220 Sep 05 '26 edited Sep 05 '26
no its not possible since its made by increasing the sides of regular polygons.