this post was submitted on 26 Dec 2024
230 points (98.3% liked)

Asklemmy

47404 readers
1300 users here now

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_[email protected]~

founded 6 years ago
MODERATORS
 

How about ANY FINITE SEQUENCE AT ALL?

(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 27 points 3 months ago (3 children)

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

load more comments (3 replies)
[–] [email protected] 44 points 3 months ago (5 children)

This is what allows pifs to work!

[–] [email protected] 3 points 3 months ago (1 children)

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?

[–] [email protected] 9 points 3 months ago

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 Ο€.

[–] [email protected] 2 points 3 months ago

I want that project continues so hard. Sounds amazing

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (1 children)

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?

[–] [email protected] 9 points 3 months ago* (last edited 3 months ago)

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

[–] [email protected] 7 points 3 months ago* (last edited 3 months ago)

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.

load more comments (1 replies)
[–] [email protected] 18 points 3 months ago

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

[–] [email protected] 7 points 3 months ago (3 children)

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.

[–] [email protected] 8 points 3 months ago (2 children)

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

[–] [email protected] 7 points 3 months ago (14 children)

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.

load more comments (13 replies)
[–] [email protected] 8 points 3 months ago (1 children)

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.

[–] [email protected] 5 points 3 months ago (1 children)

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

load more comments (1 replies)
[–] [email protected] 4 points 3 months ago (2 children)

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

[–] [email protected] 4 points 3 months ago

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

You could also just take 0.01001100011100001111.... as an example

[–] [email protected] 10 points 3 months ago (4 children)

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

[–] [email protected] 4 points 3 months ago (2 children)

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?”

[–] [email protected] 4 points 3 months ago

They just proved that "X is irrational and non-repeating digits -> can find any sequence in X", as the original question implied, is false. Maybe pi does in fact contain any sequence, but that wouldn't be because of its irrationality or the fact that it's non-repeating, it would be some other property

load more comments (1 replies)
load more comments (3 replies)
load more comments (1 replies)
load more comments
view more: β€Ή prev next β€Ί