How about ANY FINITE SEQUENCE AT ALL?

2 points

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

permalink
report
reply
1 point

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?

Smart people?

permalink
report
parent
reply
1 point

In theory, sure. In practice, are we really going to find a series of ten thousand ones? I would also like to hear more opinions from smart people

permalink
report
parent
reply
24 points

it’s actually unknown. It looks like it, but it is not proven

permalink
report
reply
9 points

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?

permalink
report
parent
reply
1 point

its been proven for some other numbers, but not yet for pi.

permalink
report
parent
reply
7 points

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.

permalink
report
parent
reply
41 points

This is what allows pifs to work!

permalink
report
reply
1 point

Thanks. I love these kind of fun OpenSource community projects/ideas/jokes whatever. The readme reminds me of ed

permalink
report
parent
reply
3 points

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?

permalink
report
parent
reply
9 points

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 π.

permalink
report
parent
reply
2 points

I want that project continues so hard. Sounds amazing

permalink
report
parent
reply
1 point
*

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?

permalink
report
parent
reply
9 points
*

I can’t tell if this is a joke or real code

Yes.

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 * 304e37 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.

permalink
report
parent
reply
6 points
*

Thats very cool. It brings to mind some sort of espionage where spies are exchanging massive messages contained in 2 numbers. The 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.

permalink
report
parent
reply
17 points

It has not been proven either way but if pi is proven to be normal then yes. https://en.m.wikipedia.org/wiki/Normal_number

permalink
report
reply
8 points

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.

permalink
report
reply
1 point
*

this is correct but i think op is asking the wrong question.

at least from a mathematical perspective, the claim that pi contains any finite string is only a half-baked version of the conjecture with that implication. the property tied to this is the normality of pi which is actually about whether the digits present in pi are uniformly distributed or not.

from this angle, the given example only shows that a base 2 string contains no digits greater than 1 but the question of whether the 1s and 0s present are uniformly distributed remains unanswered. if they are uniformly distributed (which is unknown) the implication does follow that every possible finite string containing only 1s and 0s is contained within, even if interpreted as a base 10 string while still base 2. base 3 pi would similarly contain every possible finite string containing only the digits 0-2, even when interpreted in base 10 etc. if it is true in any one base it is true in all bases for their corresponding digits

permalink
report
parent
reply
7 points

Isnt this a stupid example though, because obviously if you remove all penguins from the zoo, you’re not going to see any penguins

permalink
report
parent
reply
5 points

Its not stupid. To disprove a claim that states “All X have Y” then you only need ONE example. So, as pick a really obvious example.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
2 points

it’s not a good example because you’ve only changed the symbolic representation and not the numerical value. the op’s question is identical when you convert to binary. thir is not a counterexample and does not prove anything.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
8 points

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.

permalink
report
parent
reply
5 points

i just figured using pi was an easy way to acquire a known irrational number, not trying to make any special point about it.

permalink
report
parent
reply
4 points

It does contain a 2 though? Binary ‘10’ is 2, which this sequence contains?

permalink
report
parent
reply
4 points

Like the other commenter said its meant to be interpreted in base10.

You could also just take 0.01001100011100001111… as an example

permalink
report
parent
reply
10 points

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

permalink
report
parent
reply
1 point
*

that number is no longer pi… this is like answering the question “does the number “3548” contain 35?” by answering “no, 6925 doesnthave 35. qed”

permalink
report
parent
reply
4 points

I don’t think the example given above is an apples-to-apples comparison though. This new example of “an infinite non-repeating string” is actually “an infinite non-repeating string of only 0s and 1s”. Of course it’s not going to contain a “2”, just like pi doesn’t contain a “Y”. Wouldn’t a more appropriate reframing of the original question to go with this new example be “would any finite string consisting of only 0s and 1s be present in it?”

permalink
report
parent
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 7.9K

    Monthly active users

  • 5.9K

    Posts

  • 319K

    Comments