Also is it even possible to prove it at all? My completely math inept brain thinks that it might be similar to the countable vs uncountable infinities thing, where even if you mapped every element of a countable infinity to one in the uncountable infinity, you could still generate more elements from the uncountable infinity. Would the same kind of logic apply to sequences in pi?
Man, you're giving me flashbacks to real analysis. Shit is weird. Like the set of all integers is the same size as the set of all positive integers. The set of all fractions, including whole numbers, aka integers, is the same size as the set of all integers. The set of all real numbers (all numbers including factions and irrational numbers like pi) is the same size as the set of all real numbers between 0 and 1. The proofs make perfect sense, but the conclusions are maddening.
It's almost sure to be the case, but nobody has managed to prove it yet.
Simply being infinite and non-repeating doesn't guarantee that all finite sequences will appear. For example, you could have an infinite non-repeating number that doesn't have any 9s in it. But, as far as numbers go, exceptions like that are very rare, and in almost all (infinite, non-repeating) numbers you'll have all finite sequences appearing.
Rare in this context is a question of density. There are infinitely many integers within the real numbers, for example, but there are far more non-integers than integers. So integers are more rare within the real.
There are lot that fit that pattern. However, most/all naturally used irrational numbers seem to be normal. Maths has, however had enough things that seemed 'obvious' which turned out to be false later. Just because it's obvious doesn't mean it's mathematically true.
Thats very cool. It brings to mind some sort of espionage where spies are exchanging massive messages contained in 2 numbers. They're index and the Metadata length. All the other spy has to do is pass it though pifs to decode. Maybe adding some salt as well to prevent someone figuring it out.
I'm a layman here and not a mathematician but how does it store the complete value of pi and not rounded up to a certain amount? Or do one of the libraries generate that?
You generate it when needed, using one of the known sequences that converges to π. As a simple example, the pi() recipe here shows how to compute π to arbitrary precision. For an application like pifs you can do even better and use the BBP formula which lets you directly calculate a specific hexadecimal digit of π.
I can't tell if this is a joke or real code... like for this sentence below.
The cat is back.
Will that repo seriously run until it finds where that is in pi? However long it might take, hours, days, years, decades, and then tell you, so you can look it up quickly?
Will that repo seriously run until it finds where that is in pi?
Sure. It'll take a very long while though. We can estimate roughly how long - encoded as ASCII and translated to hex your sentence looks like 54686520636174206973206261636b. That's 30 hexadecimal digits. So very roughly, one of each 16^30 30-digit sequences will match this one. So on average, you'd need to look about 16^30 * 30 ≈ 4e37 digits into π to find a sequence matching this one. For comparison, something on the order of 1e15 digits of pi were ever calculated.
so you can look it up quickly?
Not very quickly, it's still n log n time. More importantly, information theory is ruthless: there exist no compression algorithms that have on average a >1 compression coefficient for arbitrary data. So if you tried to use π as compression, the offsets you get would on average be larger than the data you are compressing. For example, your data here can be written written as 30 hexadecimal digits, but the offset into pi would be on the order of 4e37, which takes ~90 hexadecimal digits to write down.
No, the fact that a number is infinite and non-repeating doesn't mean that and since in order to disprove something you need only one example here it is: 0.1101001000100001000001... this is a number that goes 1 and then x times 0 with x incrementing. It is infinite and non-repeating, yet doesn't contain a single 2.
This proves that an infinite, non-repeating number needn't contain any given finite numeric sequence, but it doesn't prove that an infinite, non-repeating number can't. This is not to say that Pi does contain all finite numeric sequences, just that this statement isn't sufficient to prove it can't.
A nonrepeating number does not mean that a sequence within that number never happens again, it means that the there is no point in the number where you can predict the numbers to follow by playing back a subset of the numbers before that point on repeat. So for 01 to be the "repeating pattern", the rest of the number at some point would have to be 010101010101010101... You can find the sequence "14" at digits 2 and 3, 104 and 105, 251 and 252, and 296 and 297 (I'm sure more places as well).
They were showing that another Infinite repeating sequence 0.1010010001... is infinite and non-repeating (like pi) but doesn't contain all finite numbers
Wouldn’t binary ‘10’ be 2, which it does contain? I feel like that’s cheating, since binary is just a mode of interpreting information …all numbers, regardless of base, can be represented in binary.
They're not writing in binary. They're defining a base 10 number that is 0.11, followed by a single 0, then 1, then two 0s, then 1, then three 0s, then 1, and so on. The definition ensures that it never repeats, but because it only contains 1 and 0, it would never contain any sequence with the numbers 2 through 9.
A number for which that is true is called a normal number. It’s proven that almost all real numbers are normal, but it’s very difficult to prove that any particular number is normal. It hasn’t yet been proved that π is normal, though it’s generally assumed to be.
I love the idea (and it's definitely true) that there are irrational numbers which, when written in a suitable base, contain the sequence of characters, "This number is provably normal" and are simultaneously not normal.
Technically to meet OPs criteria it needs only be a rich number in base 10, not necessarily a normal one. Although being normal would certainly be sufficient
The jury is out on whether every finite sequence of digits is contained in pi.
However, there are a multitude of real numbers that contain every finite sequence of digits when written in base 10. Here's one, which is defined by concatenating the digits of every non-negative integer in increasing order. It looks like this:
fun fact, "most" real numbers have this property. If you were to mark each one on a number line, you'd fill the whole line out. Numbers that don't have this property are vanishingly rare.
My guess would be that - depending on the number of digits you are looking for in the sequence - you could calculate the probability of finding any given group of those digits.
For example, there is a 100% probability of finding any group of two, three or four digits, but that probability decreases as you approach one hundred thousand digits.
Of course, the difficulty in proving this hypothesis rests on the computing power needed to prove it empirically and the number of digits of Pi available. That is, a million digits of Pi is a small number if you are looking for a ten thousand digit sequence
But surely given infinity, there is no problem finding a number of ANY length. It's there, somewhere, eventually, given that nothing repeats, the number is NORMAL, as people have said, and infinite.
The probability is 100% for any number, no matter how large, isn't it?
no. it merely being infinitely non-repeating is insufficient to say that it contains any particular finite string.
for instance, write out pi in base 2, and reinterpret as base 10.
11.0010010000111111011010101000100010000101...
it is infinitely non-repeating, but nowhere will you find a 2.
i've often heard it said that pi, in particular, does contain any finite sequence of digits, but i haven't seen a proof of that myself, and if it did exist, it would have to depend on more than its irrationality.
The explanation is misdirecting because yes they're removing the penguins from the zoo. But they also interpreted the question as to if the zoo had infinite non-repeating exhibits whether it would NECESSARILY contain penguins. So all they had to show was that the penguins weren't necessary.
By tying the example to pi they seemed to be trying to show something about pi. I don't think that was the intention.
They also say "and reinterpret in base 10". I.e. interpret the base 2 number as a base 10 number (which could theoretically contain 2,3,4,etc). So 10 in that number represents decimal 10 and not binary 10
My birthday in American MMDDYYYY format shows up in the first few ten-million digits, but in standard DDMMYYYY format, it's not in any of the digits that site is able to check.
I don't know of one but the proof is simple. Let me try (badly) to make one up:
If it doesn't go into a loop of some kind, then it necessarily must include all finite strings (that's a theoretical compsci term).
Basically, take a string of any finite length, and then view pi in inrements of this length. Calculate it out to double the amount of substrings of length of your target string's interval you have [or intervals]. Check if your string one of those intervals. If not, do it again until it is, doubling how long you calculate each time.
Because pi is non-repeating, each doubling in intervals must necessarily include at least one new interval from all other previous ones. And because your target string length is finite, you have a finite upper limit to how many of these doublings you have to search. I think it's n in the length of your target string.
Someone please check my work I'm bad at these things, but that's the general idea. It's also wildly inefficient This doesn't work with Infinite strings because of diagnonalization.
When I was in high school, one of the maths teachers had printed out pi to 100+ digits on tractor feed paper (FYI I am old) and run it around the top of the classroom as a nerdy bit of cornice or whatever.
Because I was so insanely clever(...), I decided to memorise pi to 20 digits to use as my school login password, being about the maximum length password you could have.
Unbeknownst to me, whoever printed it had left one of the pieces of the tractor feed folded over on itself when they hung it up, leaving out a section of the first 20 digits.
I used that password all through school, thinking i was so clever. Until i tried to unrelatedly show off my knowledge of pi and found I'd learned the wrong digits.
I still remember that password / pi to 20 wrong digits. On the one hand, what a waste of brain space. On the other hand, pretty secure password I guess?
I’m going to say yes to both versions of your question. Infinity is still infinitely bigger than any expressible finite number. Plenty of room for local anomalies like long repeats and other apparent patterns.