The Buenos Aires Constant
johndcook.com
johndcook.com
In a different world, we settled on a system of notation based on continued fractions rather than decimals for writing non-integers. In this world, nobody marvels at the irregularity of pi or e, the fact that they seem to go on for ever without a pattern - both numbers have elegant and regular representations as infinite sums of fractions.
In this world, we all found it slightly harder to make change at the grocery store, but perhaps we made up for that by producing a million high-school Ramanujans.
John D. Cook is an expert at posing as a 5-6 figure consultant by making use of extremely trivial Math.
Not a complain, but the opposite, I wish I had it like that!
Look at how we learn maths and physics right now, it is much simpler than what they had back then. Centuries of human work / knowledge / capital were compressed into tiny powerful equations / definitions / demonstrations, empowering new humans to look at more complex stuff more easily. And there is a good opportunity right now to simplify this even more
Indeed!
There are some less widely-known topics in math that seem to make some of those that learn them want to "evangelize" about them and wish they had a more starring role. Continued fractions are one.
Now, don't get me wrong. Continued fractions are very cool, some of the associated results are very beautiful. More people should know about them. But they never will be a viable alternative to decimals. Computation is too hard with them for one.
Also, while e has a nice regular continued fraction expansion [1], that is not the case for pi [2]. There is no known formula for the terms, they are as irregular as the decimal digits. There are nice simple formulas for pi as infinite sums of fractions (simplest is probably [3]) but those are not continued fractions.
[1] https://oeis.org/A003417 [2] https://oeis.org/A001203 [3] https://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80
I think this is too narrow-minded.
You could make the same argument for ideograms vs alphabetic writing: one is clearly superior and you could never have a technological superpower that relies primarily on the other, but thanks to historical path dependency we actually have both.
I could imagine a world where the SI system never took off in engineering, due to stubborn people at inopportune moments. Engineers and physicists would still get their jobs done in imperial units, just like American carpenters do today.
Also I did elide the distinction between continued fractions and infinite sums of fractions, but again we can use our imagination and say that if continued fractions were commonplace, we'd all be a lot more familiar with the infinite sums too.
Not any series for this specific approach. As simple examples:
- series containing zeroes will lead to division by zero when computing the number
- if a series repeats a number, the term for it will be zero, and the number cannot be recovered
- if a series grows too fast, the next term ‘overflows’ into the previous one.
s = 2.920050977316134
for _ in range(16):
i = int(s)
print(i)
s = i*(1 + s - i)
You might ask, "Isn't this just continued fractions?" But it's not, quite. The continued-fraction version of that script would be: s = 2.313036736433583
for _ in range(16):
i = int(s)
print(i)
s = 1 / (s - i)
The latter (continued-fraction) version is good for only 8 prime terms before it breaks down at the limits of IEEE double precision. The former (TFA, Buenos-Aires-constant) version is good for 13 prime terms! That is, the Buenos Aires protocol is a noticeably better "compressor" than the continued-fraction protocol, given the fixed bit-budget of IEEE double-precision floating point.If I'm reading it right, the explanation is that whereas the continued-fraction protocol is general enough to compress any positive-integer sequence, the Buenos Aires protocol can compress only any monotonically nondecreasing positive-integer sequence where each term is between 1 and 2 times the previous term. (The sequence of primes is such a sequence.) Greater flexibility means lower efficiency, and vice versa.
The paper says the mathematician James Grime helped "tiny up the proofs" - some people may recognize him from Numberphile on Youtube.
One of the ways to broadcast evidence of Math + Computing power could be to calculate this constant to an absurd-enough precision and have SETI (or someone) send the digits out into space.
Edit: in the sense that, we know how to encode a large set of primes in a single transcendental number, and by the way, here it is.
0.20305070110130 (...)
And now this whole shebang looks much less impressive, doesn't it?
I'm not sure why you ask? The above number already showed off the transition between 1 and 2 digit primes. And 0s inside the primes should not be a problem.
That last part means you can simply adjust your precision to your desired constraints. If you want to unambiguously represent the primes up through all the four-digit primes, simply change your padding accordingly: 0.000200030005....
Obviously the Buenos Aires Constant in the article is a neater representation, and relies on neater math. But GP's point was that you can stuff anything at all into a transcendent number.
Also, if I want to transmit a large set of primes (the complete calculated constant), I'll have to /retransmit/. How do I do that unambiguously? Well, "SOS". Transmit the set of primes. Pause long enough. Retransmit them. Ad infinitum. Ensure the pause is very very precise too.
It would be fun to pause for 2.<precision> seconds between retransmits.
Things are observable in the universe because we can tell when they are there and /not/ there. Any homogenous continuum ought to be undetectable (e.g. relativistic frame of reference, so my non-physicist brain says).
Edit: singular/plural bugfix
Of course, the aliens listening might not have proven it yet.
> ACKNOWLEDGMENTS:
> Dylan, Juli, Bruno and Massi are a group of 18/19-year-old friends from Buenos Aires, Argentina. The original idea came to Juli while having a shower. Bruno calculated the prime-generating constant, first by brute-force and then by finding its formula. As the investigation continued, Juli and Bruno were joined by Massi and Dylan. Later, the team contacted mathematician James Grime who helped by tidying up some of the proofs and writing this note. So ∞ thanks to James!
I sometimes come across your comments here, but I rarely have a chance to reply. I almost write the year as 02020 above just in case you found it, now I'm sad I didn't.
I'm not saying it as a graduate but my god FCEN has extremely bright students (not me of course, but I did manage to have a decent experience).
https://www.tandfonline.com/doi/abs/10.1080/00029890.1976.11...
which has the curious property that as you substitute nonnegative integers for the variables, the positive values of the polynomial are exactly the set of prime numbers. (The polynomial also yields negative values.)
When put like this, it sounds like the polynomial must reveal something deep about the primes... but it's another cool magic trick. The MRDP theorem (famous for solving Hilbert's 10th problem negatively) implies that this kind of multivariate polynomial exists for exactly those sets of natural numbers that are computably enumerable, so the polynomials could be seen as a really esoteric programming language for set-enumeration algorithms.
More tricks: https://en.wikipedia.org/wiki/Formula_for_primes
That being 42 for those wondering (not a book person), so it's pretty early on.
The article doesn't tell us what is this constant useful for.
So what's the point of this then?