Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.math > #488215 > unrolled thread
| Started by | David Petry <davidlpetry@gmail.com> |
|---|---|
| First post | 2020-06-17 21:35 -0700 |
| Last post | 2020-06-22 09:26 -0700 |
| Articles | 20 on this page of 52 — 11 participants |
Back to article view | Back to sci.math
enumerating the rationals David Petry <davidlpetry@gmail.com> - 2020-06-17 21:35 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-18 03:41 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 04:23 -0700
Re: enumerating the rationals Jim Burns <james.g.burns@att.net> - 2020-06-19 16:58 -0400
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 14:09 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 14:15 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 14:17 -0700
Re: enumerating the rationals Jim Burns <james.g.burns@att.net> - 2020-06-19 18:41 -0400
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 16:39 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-19 16:47 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-22 08:53 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-22 08:56 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-22 08:58 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 14:49 -0700
Re: enumerating the rationals Sergio <invalid@invalid.com> - 2020-06-19 20:39 -0500
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 18:54 -0700
Re: enumerating the rationals Sergio <invalid@invalid.com> - 2020-06-19 21:03 -0500
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 19:10 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 19:13 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 23:33 -0700
Re: enumerating the rationals Me <franz.fritschee.ff@gmail.com> - 2020-06-19 20:17 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 22:23 -0700
Re: enumerating the rationals Jim Burns <james.g.burns@att.net> - 2020-06-19 23:53 -0400
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 00:18 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 01:17 -0700
Re: enumerating the rationals Julio Di Egidio <julio@diegidio.name> - 2020-06-20 03:45 -0700
Re: enumerating the rationals Jim Burns <james.g.burns@att.net> - 2020-06-21 16:44 -0400
Re: enumerating the rationals FredJeffries <fredjeffries@gmail.com> - 2020-06-20 08:21 -0700
Re: enumerating the rationals Jim Burns <james.g.burns@att.net> - 2020-06-20 16:53 -0400
Re: enumerating the rationals Julio Di Egidio <julio@diegidio.name> - 2020-06-21 06:42 -0700
Re: enumerating the rationals FredJeffries <fredjeffries@gmail.com> - 2020-06-20 09:22 -0700
Re: enumerating the rationals "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2020-06-20 09:37 -0700
Re: enumerating the rationals "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2020-06-20 09:42 -0700
Re: enumerating the rationals "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2020-06-20 10:03 -0700
Re: enumerating the rationals "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2020-06-20 23:03 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-21 05:14 -0700
Re: enumerating the rationals Sergio <invalid@invalid.com> - 2020-06-21 11:46 -0500
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-21 10:02 -0700
Re: enumerating the rationals Sergio <invalid@invalid.com> - 2020-06-21 14:40 -0500
Re: enumerating the rationals FromTheRafters <erratic@nomail.afraid.org> - 2020-06-22 09:36 -0400
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-19 23:19 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 00:24 -0700
Re: enumerating the rationals FredJeffries <fredjeffries@gmail.com> - 2020-06-20 09:32 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 12:34 -0700
Re: enumerating the rationals FredJeffries <fredjeffries@gmail.com> - 2020-06-20 12:45 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 12:57 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-20 10:23 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-20 10:28 -0700
Re: enumerating the rationals "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-06-20 13:12 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-21 05:20 -0700
Re: enumerating the rationals Mostowski Collapse <bursejan@gmail.com> - 2020-06-21 05:35 -0700
Re: enumerating the rationals djoyce099 <hlauk.h.bogart@gmail.com> - 2020-06-22 09:26 -0700
Page 1 of 3 [1] 2 3 Next page →
| From | David Petry <davidlpetry@gmail.com> |
|---|---|
| Date | 2020-06-17 21:35 -0700 |
| Subject | enumerating the rationals |
| Message-ID | <5be0e9e8-0623-41f5-995c-0c008facf9c9o@googlegroups.com> |
I noticed that there are several threads on the topic of enumerating the positive rational numbers. So let me add to the discussion.
The simplest way to enumerate pairs of positive integers is to interlace the digits.
e.g. 2468 (interlace) 135 (or 0135) => 20416385
Note that it would be very much easier to teach grade school students this way of enumerating pairs of positive integers than using Cantor's way (IMO).
To get a bijection from positive rationals to postive integers, one very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is the set of prime factors of B.
From a very practical perspective, that's not especially useful, since factoring is hard. A more practically useful way can be based on the continued fraction
expansion of A/B.
[toc] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-18 03:41 -0700 |
| Message-ID | <b3fb467b-9b7f-469d-95f1-8c4bcebc6dc7o@googlegroups.com> |
| In reply to | #488215 |
Can it handle the Culio blooper?
Am Donnerstag, 18. Juni 2020 06:35:59 UTC+2 schrieb David Petry:
> I noticed that there are several threads on the topic of enumerating the positive rational numbers. So let me add to the discussion.
>
> The simplest way to enumerate pairs of positive integers is to interlace the digits.
>
> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>
> Note that it would be very much easier to teach grade school students this way of enumerating pairs of positive integers than using Cantor's way (IMO).
>
>
> To get a bijection from positive rationals to postive integers, one very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is the set of prime factors of B.
>
> From a very practical perspective, that's not especially useful, since factoring is hard. A more practically useful way can be based on the continued fraction
> expansion of A/B.
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 04:23 -0700 |
| Message-ID | <468e9795-a9f2-41fe-8161-e46e7c33abc8o@googlegroups.com> |
| In reply to | #488230 |
Yes this here:
A/B --> A^2*B^2/squarefree(B)
works as a Cantor pairing. But it does
not de-duplicate. And also as soon as
A=0 or B=0 the result is 0 or undef,
so it wouldn't work for Culio blooper.
Proof:
Two numbers A and B, have prime factors:
A = p1^n1*..*pk^nk
B = q1^m1*..*ql^ml
Define square free:
squarefree(B) := q1*..*ql
A^2 makes all exponents even, of the form
2*ni. B^2/squarefree(B) makes all exponents
odd, of the form 2*mj-1. So you can combined
them, and safely later separate again.
Q.E.D.
Am Donnerstag, 18. Juni 2020 12:41:53 UTC+2 schrieb Mostowski Collapse:
> Can it handle the Culio blooper?
>
> Am Donnerstag, 18. Juni 2020 06:35:59 UTC+2 schrieb David Petry:
> > I noticed that there are several threads on the topic of enumerating the positive rational numbers. So let me add to the discussion.
> >
> > The simplest way to enumerate pairs of positive integers is to interlace the digits.
> >
> > e.g. 2468 (interlace) 135 (or 0135) => 20416385
> >
> > Note that it would be very much easier to teach grade school students this way of enumerating pairs of positive integers than using Cantor's way (IMO).
> >
> >
> > To get a bijection from positive rationals to postive integers, one very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is the set of prime factors of B.
> >
> > From a very practical perspective, that's not especially useful, since factoring is hard. A more practically useful way can be based on the continued fraction
> > expansion of A/B.
[toc] | [prev] | [next] | [standalone]
| From | Jim Burns <james.g.burns@att.net> |
|---|---|
| Date | 2020-06-19 16:58 -0400 |
| Message-ID | <5232a751-de74-d46c-0f2a-04876ab12e6b@att.net> |
| In reply to | #488315 |
On 6/19/2020 7:23 AM, Mostowski Collapse wrote: > Yes this here: > > A/B --> A^2*B^2/squarefree(B) > > works as a Cantor pairing. But it does > not de-duplicate. If David Petry is referring to an earlier post of mine, I specified in that post that A/B should be in lowest terms, gcd(A,B)=1. With that added, it de-duplicates. If you want, we could work that requirement into our definitions Suppose A and B positive (standard) naturals. Define lowest-term naturals A', B'. A' = A/gcd(A,B) B' = B/gcd(A,B) Then A/B --> A'^2*B'^2/squarefree(B') Also, whenever C/D = A/B C/D --> A'^2*B'^2/squarefree(B') Without putting things in lowest terms, it's a horrible mess. 2/4 --> 2^2 * 2^3 = 32 but also 1/8 --> 2^5 = 32 etc.
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 14:09 -0700 |
| Message-ID | <d9f2a7f4-09c9-4277-9426-5f7639f147f9o@googlegroups.com> |
| In reply to | #488342 |
No it doesn't de-duplicate. Its not a surjective mapping. Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns: > On 6/19/2020 7:23 AM, Mostowski Collapse wrote: > > > Yes this here: > > > > A/B --> A^2*B^2/squarefree(B) > > > > works as a Cantor pairing. But it does > > not de-duplicate. > > If David Petry is referring to an earlier post of mine, > I specified in that post that A/B should be in lowest terms, > gcd(A,B)=1. With that added, it de-duplicates. > > If you want, we could work that requirement into our definitions > Suppose A and B positive (standard) naturals. > Define lowest-term naturals A', B'. > A' = A/gcd(A,B) > B' = B/gcd(A,B) > > Then > A/B --> A'^2*B'^2/squarefree(B') > > Also, whenever C/D = A/B > C/D --> A'^2*B'^2/squarefree(B') > > Without putting things in lowest terms, it's a horrible mess. > 2/4 --> 2^2 * 2^3 = 32 > but also > 1/8 --> 2^5 = 32 > > etc.
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 14:15 -0700 |
| Message-ID | <e7b7b2ed-ca5a-41e0-a7f2-b1489f8085eco@googlegroups.com> |
| In reply to | #488343 |
Wait, you are right! Maybe. Its only injective if
we have gcd(A,B)=1. Because then it is not only:
A = p1^n1*..*pk^nk
B = q1^m1*..*ql^ml
But also p1,..,pk disjoint from q1,..,ql. Disjoint
is important, otherwise odd and even exponents would mix.
Ok thanks!
So its also surjective.
Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb Mostowski Collapse:
> No it doesn't de-duplicate. Its not a surjective mapping.
>
> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> > On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> >
> > > Yes this here:
> > >
> > > A/B --> A^2*B^2/squarefree(B)
> > >
> > > works as a Cantor pairing. But it does
> > > not de-duplicate.
> >
> > If David Petry is referring to an earlier post of mine,
> > I specified in that post that A/B should be in lowest terms,
> > gcd(A,B)=1. With that added, it de-duplicates.
> >
> > If you want, we could work that requirement into our definitions
> > Suppose A and B positive (standard) naturals.
> > Define lowest-term naturals A', B'.
> > A' = A/gcd(A,B)
> > B' = B/gcd(A,B)
> >
> > Then
> > A/B --> A'^2*B'^2/squarefree(B')
> >
> > Also, whenever C/D = A/B
> > C/D --> A'^2*B'^2/squarefree(B')
> >
> > Without putting things in lowest terms, it's a horrible mess.
> > 2/4 --> 2^2 * 2^3 = 32
> > but also
> > 1/8 --> 2^5 = 32
> >
> > etc.
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 14:17 -0700 |
| Message-ID | <754e6b40-af05-4ae2-a4a9-abd64081ad5co@googlegroups.com> |
| In reply to | #488344 |
Cool! Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb Mostowski Collapse: > Wait, you are right! Maybe. Its only injective if > we have gcd(A,B)=1. Because then it is not only: > > A = p1^n1*..*pk^nk > > B = q1^m1*..*ql^ml > > But also p1,..,pk disjoint from q1,..,ql. Disjoint > is important, otherwise odd and even exponents would mix. > > Ok thanks! > > So its also surjective. > > Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb Mostowski Collapse: > > No it doesn't de-duplicate. Its not a surjective mapping. > > > > Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns: > > > On 6/19/2020 7:23 AM, Mostowski Collapse wrote: > > > > > > > Yes this here: > > > > > > > > A/B --> A^2*B^2/squarefree(B) > > > > > > > > works as a Cantor pairing. But it does > > > > not de-duplicate. > > > > > > If David Petry is referring to an earlier post of mine, > > > I specified in that post that A/B should be in lowest terms, > > > gcd(A,B)=1. With that added, it de-duplicates. > > > > > > If you want, we could work that requirement into our definitions > > > Suppose A and B positive (standard) naturals. > > > Define lowest-term naturals A', B'. > > > A' = A/gcd(A,B) > > > B' = B/gcd(A,B) > > > > > > Then > > > A/B --> A'^2*B'^2/squarefree(B') > > > > > > Also, whenever C/D = A/B > > > C/D --> A'^2*B'^2/squarefree(B') > > > > > > Without putting things in lowest terms, it's a horrible mess. > > > 2/4 --> 2^2 * 2^3 = 32 > > > but also > > > 1/8 --> 2^5 = 32 > > > > > > etc.
[toc] | [prev] | [next] | [standalone]
| From | Jim Burns <james.g.burns@att.net> |
|---|---|
| Date | 2020-06-19 18:41 -0400 |
| Message-ID | <e297ff6c-54f7-f851-26c0-56671144e2b4@att.net> |
| In reply to | #488345 |
On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> Cool!
>
> Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> Mostowski Collapse:
>> Wait, you are right! Maybe. Its only injective if
>> we have gcd(A,B)=1. Because then it is not only:
>>
>> A = p1^n1*..*pk^nk
>>
>> B = q1^m1*..*ql^ml
>>
>> But also p1,..,pk disjoint from q1,..,ql. Disjoint
>> is important, otherwise odd and even exponents would mix.
>>
>> Ok thanks!
>>
>> So its also surjective.
An earlier post of yours seems to suggest the following.
I'm also suggesting it.
We can extend the notion of a unique prime factorization
for _positive naturals_ to a unique prime factorization
for _positive rationals_
Instead of letting the exponents of primes vary over 0,1,2,3,...
let them vary over ...-3,-2,-1,0,1,2,3,...
for example,
1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
It's a simple matter to biject { 0,1,2,... } and
{ ...,-2,-1,0,1,2,... } and, if we do biject them,
one by one, for each prime's exponent, then we have a
bijection between positive naturals and positive rationals.
1001/1000 =
2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
100200100000
----
I don't have a problem with the usual Cantor diagonal
enumeration, but I find this one simpler. Conceptually
simpler, anyway.
David Petry points out that factoring is hard.
>> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
>> Mostowski Collapse:
>>> No it doesn't de-duplicate. Its not a surjective mapping.
>>>
>>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
>>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
>>>>
>>>>> Yes this here:
>>>>>
>>>>> A/B --> A^2*B^2/squarefree(B)
>>>>>
>>>>> works as a Cantor pairing. But it does
>>>>> not de-duplicate.
>>>>
>>>> If David Petry is referring to an earlier post of mine,
>>>> I specified in that post that A/B should be in lowest terms,
>>>> gcd(A,B)=1. With that added, it de-duplicates.
>>>>
>>>> If you want, we could work that requirement into our definitions
>>>> Suppose A and B positive (standard) naturals.
>>>> Define lowest-term naturals A', B'.
>>>> A' = A/gcd(A,B)
>>>> B' = B/gcd(A,B)
>>>>
>>>> Then
>>>> A/B --> A'^2*B'^2/squarefree(B')
>>>>
>>>> Also, whenever C/D = A/B
>>>> C/D --> A'^2*B'^2/squarefree(B')
>>>>
>>>> Without putting things in lowest terms, it's a horrible mess.
>>>> 2/4 --> 2^2 * 2^3 = 32
>>>> but also
>>>> 1/8 --> 2^5 = 32
>>>>
>>>> etc.
>
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 16:39 -0700 |
| Message-ID | <1472d0ec-a926-4e6c-91f9-9ec966771b57o@googlegroups.com> |
| In reply to | #488349 |
One bijection between { ...,-2,-1,0,1,2,... }
and { 0,1,2,... } is the odd and even thingy.
n --> 2n, -n --> 2n-1 , and then you get
A^2*B^2/squarefree(B). But you could also
use A^2*B^2/squarefree(A). And many more...
Am Samstag, 20. Juni 2020 00:41:28 UTC+2 schrieb Jim Burns:
> On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> > Cool!
> >
> > Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> > Mostowski Collapse:
> >> Wait, you are right! Maybe. Its only injective if
> >> we have gcd(A,B)=1. Because then it is not only:
> >>
> >> A = p1^n1*..*pk^nk
> >>
> >> B = q1^m1*..*ql^ml
> >>
> >> But also p1,..,pk disjoint from q1,..,ql. Disjoint
> >> is important, otherwise odd and even exponents would mix.
> >>
> >> Ok thanks!
> >>
> >> So its also surjective.
>
> An earlier post of yours seems to suggest the following.
> I'm also suggesting it.
>
> We can extend the notion of a unique prime factorization
> for _positive naturals_ to a unique prime factorization
> for _positive rationals_
>
> Instead of letting the exponents of primes vary over 0,1,2,3,...
> let them vary over ...-3,-2,-1,0,1,2,3,...
>
> for example,
> 1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
>
> It's a simple matter to biject { 0,1,2,... } and
> { ...,-2,-1,0,1,2,... } and, if we do biject them,
> one by one, for each prime's exponent, then we have a
> bijection between positive naturals and positive rationals.
>
> 1001/1000 =
> 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
> 2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
> 100200100000
>
> ----
> I don't have a problem with the usual Cantor diagonal
> enumeration, but I find this one simpler. Conceptually
> simpler, anyway.
>
> David Petry points out that factoring is hard.
>
> >> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
> >> Mostowski Collapse:
> >>> No it doesn't de-duplicate. Its not a surjective mapping.
> >>>
> >>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> >>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> >>>>
> >>>>> Yes this here:
> >>>>>
> >>>>> A/B --> A^2*B^2/squarefree(B)
> >>>>>
> >>>>> works as a Cantor pairing. But it does
> >>>>> not de-duplicate.
> >>>>
> >>>> If David Petry is referring to an earlier post of mine,
> >>>> I specified in that post that A/B should be in lowest terms,
> >>>> gcd(A,B)=1. With that added, it de-duplicates.
> >>>>
> >>>> If you want, we could work that requirement into our definitions
> >>>> Suppose A and B positive (standard) naturals.
> >>>> Define lowest-term naturals A', B'.
> >>>> A' = A/gcd(A,B)
> >>>> B' = B/gcd(A,B)
> >>>>
> >>>> Then
> >>>> A/B --> A'^2*B'^2/squarefree(B')
> >>>>
> >>>> Also, whenever C/D = A/B
> >>>> C/D --> A'^2*B'^2/squarefree(B')
> >>>>
> >>>> Without putting things in lowest terms, it's a horrible mess.
> >>>> 2/4 --> 2^2 * 2^3 = 32
> >>>> but also
> >>>> 1/8 --> 2^5 = 32
> >>>>
> >>>> etc.
> >
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-19 16:47 -0700 |
| Message-ID | <65084c68-efda-425f-8578-e1d154e0a9a1o@googlegroups.com> |
| In reply to | #488351 |
But the positive/negative primefactor exponent
decomposition of a rational number is nice
for multtiplication. You get automatically
co-prime results, if you simply add corresponding
exponents. So you dont get:
1/3 * 3/1 = 3/3
You rather get:
3^(-1) * 3^1 = 3^(-1+1) = 3^0 = 1
But I guess doing addition via this decomposition
could be a little annoying.
Am Samstag, 20. Juni 2020 01:39:25 UTC+2 schrieb Mostowski Collapse:
> One bijection between { ...,-2,-1,0,1,2,... }
> and { 0,1,2,... } is the odd and even thingy.
>
> n --> 2n, -n --> 2n-1 , and then you get
> A^2*B^2/squarefree(B). But you could also
>
> use A^2*B^2/squarefree(A). And many more...
>
> Am Samstag, 20. Juni 2020 00:41:28 UTC+2 schrieb Jim Burns:
> > On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> > > Cool!
> > >
> > > Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> > > Mostowski Collapse:
> > >> Wait, you are right! Maybe. Its only injective if
> > >> we have gcd(A,B)=1. Because then it is not only:
> > >>
> > >> A = p1^n1*..*pk^nk
> > >>
> > >> B = q1^m1*..*ql^ml
> > >>
> > >> But also p1,..,pk disjoint from q1,..,ql. Disjoint
> > >> is important, otherwise odd and even exponents would mix.
> > >>
> > >> Ok thanks!
> > >>
> > >> So its also surjective.
> >
> > An earlier post of yours seems to suggest the following.
> > I'm also suggesting it.
> >
> > We can extend the notion of a unique prime factorization
> > for _positive naturals_ to a unique prime factorization
> > for _positive rationals_
> >
> > Instead of letting the exponents of primes vary over 0,1,2,3,...
> > let them vary over ...-3,-2,-1,0,1,2,3,...
> >
> > for example,
> > 1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
> >
> > It's a simple matter to biject { 0,1,2,... } and
> > { ...,-2,-1,0,1,2,... } and, if we do biject them,
> > one by one, for each prime's exponent, then we have a
> > bijection between positive naturals and positive rationals.
> >
> > 1001/1000 =
> > 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
> > 2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
> > 100200100000
> >
> > ----
> > I don't have a problem with the usual Cantor diagonal
> > enumeration, but I find this one simpler. Conceptually
> > simpler, anyway.
> >
> > David Petry points out that factoring is hard.
> >
> > >> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
> > >> Mostowski Collapse:
> > >>> No it doesn't de-duplicate. Its not a surjective mapping.
> > >>>
> > >>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> > >>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> > >>>>
> > >>>>> Yes this here:
> > >>>>>
> > >>>>> A/B --> A^2*B^2/squarefree(B)
> > >>>>>
> > >>>>> works as a Cantor pairing. But it does
> > >>>>> not de-duplicate.
> > >>>>
> > >>>> If David Petry is referring to an earlier post of mine,
> > >>>> I specified in that post that A/B should be in lowest terms,
> > >>>> gcd(A,B)=1. With that added, it de-duplicates.
> > >>>>
> > >>>> If you want, we could work that requirement into our definitions
> > >>>> Suppose A and B positive (standard) naturals.
> > >>>> Define lowest-term naturals A', B'.
> > >>>> A' = A/gcd(A,B)
> > >>>> B' = B/gcd(A,B)
> > >>>>
> > >>>> Then
> > >>>> A/B --> A'^2*B'^2/squarefree(B')
> > >>>>
> > >>>> Also, whenever C/D = A/B
> > >>>> C/D --> A'^2*B'^2/squarefree(B')
> > >>>>
> > >>>> Without putting things in lowest terms, it's a horrible mess.
> > >>>> 2/4 --> 2^2 * 2^3 = 32
> > >>>> but also
> > >>>> 1/8 --> 2^5 = 32
> > >>>>
> > >>>> etc.
> > >
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-22 08:53 -0700 |
| Message-ID | <3b01690e-dbff-492c-bc5f-9387f101ccb9o@googlegroups.com> |
| In reply to | #488349 |
Still thinking about how to compute the
density of Cantor enumeration. Now I got
a new idea. Maybe one coulf use this here:
|T(n)| = d(n), number of divisors.
For n = p1^n1*..*pm^nm where p1,..,pm are prime numbers:
d(n) = (n1+1)...(nm+1)
Can this be generalized to rational numbers?
Am Samstag, 20. Juni 2020 00:41:28 UTC+2 schrieb Jim Burns:
> On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> > Cool!
> >
> > Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> > Mostowski Collapse:
> >> Wait, you are right! Maybe. Its only injective if
> >> we have gcd(A,B)=1. Because then it is not only:
> >>
> >> A = p1^n1*..*pk^nk
> >>
> >> B = q1^m1*..*ql^ml
> >>
> >> But also p1,..,pk disjoint from q1,..,ql. Disjoint
> >> is important, otherwise odd and even exponents would mix.
> >>
> >> Ok thanks!
> >>
> >> So its also surjective.
>
> An earlier post of yours seems to suggest the following.
> I'm also suggesting it.
>
> We can extend the notion of a unique prime factorization
> for _positive naturals_ to a unique prime factorization
> for _positive rationals_
>
> Instead of letting the exponents of primes vary over 0,1,2,3,...
> let them vary over ...-3,-2,-1,0,1,2,3,...
>
> for example,
> 1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
>
> It's a simple matter to biject { 0,1,2,... } and
> { ...,-2,-1,0,1,2,... } and, if we do biject them,
> one by one, for each prime's exponent, then we have a
> bijection between positive naturals and positive rationals.
>
> 1001/1000 =
> 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
> 2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
> 100200100000
>
> ----
> I don't have a problem with the usual Cantor diagonal
> enumeration, but I find this one simpler. Conceptually
> simpler, anyway.
>
> David Petry points out that factoring is hard.
>
> >> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
> >> Mostowski Collapse:
> >>> No it doesn't de-duplicate. Its not a surjective mapping.
> >>>
> >>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> >>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> >>>>
> >>>>> Yes this here:
> >>>>>
> >>>>> A/B --> A^2*B^2/squarefree(B)
> >>>>>
> >>>>> works as a Cantor pairing. But it does
> >>>>> not de-duplicate.
> >>>>
> >>>> If David Petry is referring to an earlier post of mine,
> >>>> I specified in that post that A/B should be in lowest terms,
> >>>> gcd(A,B)=1. With that added, it de-duplicates.
> >>>>
> >>>> If you want, we could work that requirement into our definitions
> >>>> Suppose A and B positive (standard) naturals.
> >>>> Define lowest-term naturals A', B'.
> >>>> A' = A/gcd(A,B)
> >>>> B' = B/gcd(A,B)
> >>>>
> >>>> Then
> >>>> A/B --> A'^2*B'^2/squarefree(B')
> >>>>
> >>>> Also, whenever C/D = A/B
> >>>> C/D --> A'^2*B'^2/squarefree(B')
> >>>>
> >>>> Without putting things in lowest terms, it's a horrible mess.
> >>>> 2/4 --> 2^2 * 2^3 = 32
> >>>> but also
> >>>> 1/8 --> 2^5 = 32
> >>>>
> >>>> etc.
> >
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-22 08:56 -0700 |
| Message-ID | <1a3e8d5c-d650-4b19-9d31-ec1a4d5b1c8bo@googlegroups.com> |
| In reply to | #488514 |
We just learnt from Jim Burns that a rational
number can be represented as follows:
r = p1^n1*..*pm^nm just allow negative Exponents as well
We could now allow a "divides" relationship
between pairs of natural numbers:
s | r <=> p | u & q | v for s = (p,q) and = (u,v)
We can collect them in a set T(r) and we
can also compute the cadinality d(r). Now
the following should hold:
d(r) = 4 gdw u,v co-prime for r = (u,v)
Am Montag, 22. Juni 2020 17:53:25 UTC+2 schrieb Mostowski Collapse:
> Still thinking about how to compute the
> density of Cantor enumeration. Now I got
> a new idea. Maybe one coulf use this here:
>
> |T(n)| = d(n), number of divisors.
>
> For n = p1^n1*..*pm^nm where p1,..,pm are prime numbers:
>
> d(n) = (n1+1)...(nm+1)
>
> Can this be generalized to rational numbers?
>
> Am Samstag, 20. Juni 2020 00:41:28 UTC+2 schrieb Jim Burns:
> > On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> > > Cool!
> > >
> > > Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> > > Mostowski Collapse:
> > >> Wait, you are right! Maybe. Its only injective if
> > >> we have gcd(A,B)=1. Because then it is not only:
> > >>
> > >> A = p1^n1*..*pk^nk
> > >>
> > >> B = q1^m1*..*ql^ml
> > >>
> > >> But also p1,..,pk disjoint from q1,..,ql. Disjoint
> > >> is important, otherwise odd and even exponents would mix.
> > >>
> > >> Ok thanks!
> > >>
> > >> So its also surjective.
> >
> > An earlier post of yours seems to suggest the following.
> > I'm also suggesting it.
> >
> > We can extend the notion of a unique prime factorization
> > for _positive naturals_ to a unique prime factorization
> > for _positive rationals_
> >
> > Instead of letting the exponents of primes vary over 0,1,2,3,...
> > let them vary over ...-3,-2,-1,0,1,2,3,...
> >
> > for example,
> > 1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
> >
> > It's a simple matter to biject { 0,1,2,... } and
> > { ...,-2,-1,0,1,2,... } and, if we do biject them,
> > one by one, for each prime's exponent, then we have a
> > bijection between positive naturals and positive rationals.
> >
> > 1001/1000 =
> > 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
> > 2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
> > 100200100000
> >
> > ----
> > I don't have a problem with the usual Cantor diagonal
> > enumeration, but I find this one simpler. Conceptually
> > simpler, anyway.
> >
> > David Petry points out that factoring is hard.
> >
> > >> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
> > >> Mostowski Collapse:
> > >>> No it doesn't de-duplicate. Its not a surjective mapping.
> > >>>
> > >>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> > >>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> > >>>>
> > >>>>> Yes this here:
> > >>>>>
> > >>>>> A/B --> A^2*B^2/squarefree(B)
> > >>>>>
> > >>>>> works as a Cantor pairing. But it does
> > >>>>> not de-duplicate.
> > >>>>
> > >>>> If David Petry is referring to an earlier post of mine,
> > >>>> I specified in that post that A/B should be in lowest terms,
> > >>>> gcd(A,B)=1. With that added, it de-duplicates.
> > >>>>
> > >>>> If you want, we could work that requirement into our definitions
> > >>>> Suppose A and B positive (standard) naturals.
> > >>>> Define lowest-term naturals A', B'.
> > >>>> A' = A/gcd(A,B)
> > >>>> B' = B/gcd(A,B)
> > >>>>
> > >>>> Then
> > >>>> A/B --> A'^2*B'^2/squarefree(B')
> > >>>>
> > >>>> Also, whenever C/D = A/B
> > >>>> C/D --> A'^2*B'^2/squarefree(B')
> > >>>>
> > >>>> Without putting things in lowest terms, it's a horrible mess.
> > >>>> 2/4 --> 2^2 * 2^3 = 32
> > >>>> but also
> > >>>> 1/8 --> 2^5 = 32
> > >>>>
> > >>>> etc.
> > >
[toc] | [prev] | [next] | [standalone]
| From | Mostowski Collapse <bursejan@gmail.com> |
|---|---|
| Date | 2020-06-22 08:58 -0700 |
| Message-ID | <27698c87-cba4-4eaf-aa06-726b02c2847bo@googlegroups.com> |
| In reply to | #488515 |
Nope, total bullshit:
d((4,3)) = 6
But 4 and 3 are co-prime.
Sorry
Am Montag, 22. Juni 2020 17:56:49 UTC+2 schrieb Mostowski Collapse:
> We just learnt from Jim Burns that a rational
> number can be represented as follows:
>
> r = p1^n1*..*pm^nm just allow negative Exponents as well
>
> We could now allow a "divides" relationship
> between pairs of natural numbers:
>
> s | r <=> p | u & q | v for s = (p,q) and = (u,v)
>
> We can collect them in a set T(r) and we
> can also compute the cadinality d(r). Now
> the following should hold:
>
> d(r) = 4 gdw u,v co-prime for r = (u,v)
>
> Am Montag, 22. Juni 2020 17:53:25 UTC+2 schrieb Mostowski Collapse:
> > Still thinking about how to compute the
> > density of Cantor enumeration. Now I got
> > a new idea. Maybe one coulf use this here:
> >
> > |T(n)| = d(n), number of divisors.
> >
> > For n = p1^n1*..*pm^nm where p1,..,pm are prime numbers:
> >
> > d(n) = (n1+1)...(nm+1)
> >
> > Can this be generalized to rational numbers?
> >
> > Am Samstag, 20. Juni 2020 00:41:28 UTC+2 schrieb Jim Burns:
> > > On 6/19/2020 5:17 PM, Mostowski Collapse wrote:
> > > > Cool!
> > > >
> > > > Am Freitag, 19. Juni 2020 23:16:05 UTC+2 schrieb
> > > > Mostowski Collapse:
> > > >> Wait, you are right! Maybe. Its only injective if
> > > >> we have gcd(A,B)=1. Because then it is not only:
> > > >>
> > > >> A = p1^n1*..*pk^nk
> > > >>
> > > >> B = q1^m1*..*ql^ml
> > > >>
> > > >> But also p1,..,pk disjoint from q1,..,ql. Disjoint
> > > >> is important, otherwise odd and even exponents would mix.
> > > >>
> > > >> Ok thanks!
> > > >>
> > > >> So its also surjective.
> > >
> > > An earlier post of yours seems to suggest the following.
> > > I'm also suggesting it.
> > >
> > > We can extend the notion of a unique prime factorization
> > > for _positive naturals_ to a unique prime factorization
> > > for _positive rationals_
> > >
> > > Instead of letting the exponents of primes vary over 0,1,2,3,...
> > > let them vary over ...-3,-2,-1,0,1,2,3,...
> > >
> > > for example,
> > > 1001/1000 = 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1
> > >
> > > It's a simple matter to biject { 0,1,2,... } and
> > > { ...,-2,-1,0,1,2,... } and, if we do biject them,
> > > one by one, for each prime's exponent, then we have a
> > > bijection between positive naturals and positive rationals.
> > >
> > > 1001/1000 =
> > > 2^-3 * 5^-3 * 7^1 * 11^1 * 13^1 -->
> > > 2^5 * 5^5 * 7^2 * 11*2 * 13^2 =
> > > 100200100000
> > >
> > > ----
> > > I don't have a problem with the usual Cantor diagonal
> > > enumeration, but I find this one simpler. Conceptually
> > > simpler, anyway.
> > >
> > > David Petry points out that factoring is hard.
> > >
> > > >> Am Freitag, 19. Juni 2020 23:09:19 UTC+2 schrieb
> > > >> Mostowski Collapse:
> > > >>> No it doesn't de-duplicate. Its not a surjective mapping.
> > > >>>
> > > >>> Am Freitag, 19. Juni 2020 22:58:10 UTC+2 schrieb Jim Burns:
> > > >>>> On 6/19/2020 7:23 AM, Mostowski Collapse wrote:
> > > >>>>
> > > >>>>> Yes this here:
> > > >>>>>
> > > >>>>> A/B --> A^2*B^2/squarefree(B)
> > > >>>>>
> > > >>>>> works as a Cantor pairing. But it does
> > > >>>>> not de-duplicate.
> > > >>>>
> > > >>>> If David Petry is referring to an earlier post of mine,
> > > >>>> I specified in that post that A/B should be in lowest terms,
> > > >>>> gcd(A,B)=1. With that added, it de-duplicates.
> > > >>>>
> > > >>>> If you want, we could work that requirement into our definitions
> > > >>>> Suppose A and B positive (standard) naturals.
> > > >>>> Define lowest-term naturals A', B'.
> > > >>>> A' = A/gcd(A,B)
> > > >>>> B' = B/gcd(A,B)
> > > >>>>
> > > >>>> Then
> > > >>>> A/B --> A'^2*B'^2/squarefree(B')
> > > >>>>
> > > >>>> Also, whenever C/D = A/B
> > > >>>> C/D --> A'^2*B'^2/squarefree(B')
> > > >>>>
> > > >>>> Without putting things in lowest terms, it's a horrible mess.
> > > >>>> 2/4 --> 2^2 * 2^3 = 32
> > > >>>> but also
> > > >>>> 1/8 --> 2^5 = 32
> > > >>>>
> > > >>>> etc.
> > > >
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2020-06-19 14:49 -0700 |
| Message-ID | <rcjbu4$1uab$2@gioia.aioe.org> |
| In reply to | #488215 |
On 6/17/2020 9:35 PM, David Petry wrote:
>
> I noticed that there are several threads on the topic of enumerating the positive rational numbers. So let me add to the discussion.
>
> The simplest way to enumerate pairs of positive integers is to interlace the digits.
>
> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>
> Note that it would be very much easier to teach grade school students this way of enumerating pairs of positive integers than using Cantor's way (IMO).
>
>
> To get a bijection from positive rationals to postive integers, one very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is the set of prime factors of B.
>
> From a very practical perspective, that's not especially useful, since factoring is hard. A more practically useful way can be based on the continued fraction
> expansion of A/B.
>
For some reason this is making me think of the convergents of continued
fractions. Any finite precision of any irrational number can be
represented by a rational. Of course, to get all of them, well, this
takes things to infinity.
[toc] | [prev] | [next] | [standalone]
| From | Sergio <invalid@invalid.com> |
|---|---|
| Date | 2020-06-19 20:39 -0500 |
| Message-ID | <rcjpbm$np7$1@gioia.aioe.org> |
| In reply to | #488348 |
On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
> On 6/17/2020 9:35 PM, David Petry wrote:
>>
>> I noticed that there are several threads on the topic of enumerating
>> the positive rational numbers. So let me add to the discussion.
>>
>> The simplest way to enumerate pairs of positive integers is to
>> interlace the digits.
>>
>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>
>> Note that it would be very much easier to teach grade school students
>> this way of enumerating pairs of positive integers than using Cantor's
>> way (IMO).
>>
>>
>> To get a bijection from positive rationals to postive integers, one
>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>> the set of prime factors of B.
>>
>> From a very practical perspective, that's not especially useful,
>> since factoring is hard. A more practically useful way can be based
>> on the continued fraction
>> expansion of A/B.
>>
>
> For some reason this is making me think of the convergents of continued
> fractions. Any finite precision of any irrational number can be
> represented by a rational. Of course, to get all of them, well, this
> takes things to infinity.
well, there are about 10^82 atoms in the universe, so anything more than
10^-82 digits seems rather meaningless.
so +-
0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
should be way more than enough.
(only 82 digits)
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2020-06-19 18:54 -0700 |
| Message-ID | <rcjq8n$105o$1@gioia.aioe.org> |
| In reply to | #488354 |
On 6/19/2020 6:39 PM, Sergio wrote:
> On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
>> On 6/17/2020 9:35 PM, David Petry wrote:
>>>
>>> I noticed that there are several threads on the topic of enumerating
>>> the positive rational numbers. So let me add to the discussion.
>>>
>>> The simplest way to enumerate pairs of positive integers is to
>>> interlace the digits.
>>>
>>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>>
>>> Note that it would be very much easier to teach grade school students
>>> this way of enumerating pairs of positive integers than using Cantor's
>>> way (IMO).
>>>
>>>
>>> To get a bijection from positive rationals to postive integers, one
>>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>>> the set of prime factors of B.
>>>
>>> From a very practical perspective, that's not especially useful,
>>> since factoring is hard. A more practically useful way can be based
>>> on the continued fraction
>>> expansion of A/B.
>>>
>>
>> For some reason this is making me think of the convergents of continued
>> fractions. Any finite precision of any irrational number can be
>> represented by a rational. Of course, to get all of them, well, this
>> takes things to infinity.
>
>
>
>
> well, there are about 10^82 atoms in the universe, so anything more than
> 10^-82 digits seems rather meaningless.
>
> so +-
> 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>
> should be way more than enough.
>
> (only 82 digits)
>
Until you hit fractal zooms!
https://youtu.be/zXTpASSd9xE
10^198 power. 350 million iterations.
It can do deeper, forever. ;^)
[toc] | [prev] | [next] | [standalone]
| From | Sergio <invalid@invalid.com> |
|---|---|
| Date | 2020-06-19 21:03 -0500 |
| Message-ID | <rcjqp9$15h7$1@gioia.aioe.org> |
| In reply to | #488357 |
On 6/19/2020 8:54 PM, Chris M. Thomasson wrote:
> On 6/19/2020 6:39 PM, Sergio wrote:
>> On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
>>> On 6/17/2020 9:35 PM, David Petry wrote:
>>>>
>>>> I noticed that there are several threads on the topic of enumerating
>>>> the positive rational numbers. So let me add to the discussion.
>>>>
>>>> The simplest way to enumerate pairs of positive integers is to
>>>> interlace the digits.
>>>>
>>>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>>>
>>>> Note that it would be very much easier to teach grade school students
>>>> this way of enumerating pairs of positive integers than using Cantor's
>>>> way (IMO).
>>>>
>>>>
>>>> To get a bijection from positive rationals to postive integers, one
>>>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>>>> the set of prime factors of B.
>>>>
>>>> From a very practical perspective, that's not especially useful,
>>>> since factoring is hard. A more practically useful way can be based
>>>> on the continued fraction
>>>> expansion of A/B.
>>>>
>>>
>>> For some reason this is making me think of the convergents of continued
>>> fractions. Any finite precision of any irrational number can be
>>> represented by a rational. Of course, to get all of them, well, this
>>> takes things to infinity.
>>
>>
>>
>>
>> well, there are about 10^82 atoms in the universe, so anything more than
>> 10^-82 digits seems rather meaningless.
>>
>> so +-
>> 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>>
>>
>> should be way more than enough.
>>
>> (only 82 digits)
>>
>
> Until you hit fractal zooms!
>
> https://youtu.be/zXTpASSd9xE
>
> 10^198 power. 350 million iterations.
>
> It can do deeper, forever. ;^)
yes! I have Mandebulb on computer, (free)
do you know how they do such precision with such large numbers ?
or are they using some sort of shortcut ?
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2020-06-19 19:10 -0700 |
| Message-ID | <rcjr74$19jt$2@gioia.aioe.org> |
| In reply to | #488358 |
On 6/19/2020 7:03 PM, Sergio wrote:
> On 6/19/2020 8:54 PM, Chris M. Thomasson wrote:
>> On 6/19/2020 6:39 PM, Sergio wrote:
>>> On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
>>>> On 6/17/2020 9:35 PM, David Petry wrote:
>>>>>
>>>>> I noticed that there are several threads on the topic of enumerating
>>>>> the positive rational numbers. So let me add to the discussion.
>>>>>
>>>>> The simplest way to enumerate pairs of positive integers is to
>>>>> interlace the digits.
>>>>>
>>>>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>>>>
>>>>> Note that it would be very much easier to teach grade school students
>>>>> this way of enumerating pairs of positive integers than using Cantor's
>>>>> way (IMO).
>>>>>
>>>>>
>>>>> To get a bijection from positive rationals to postive integers, one
>>>>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>>>>> the set of prime factors of B.
>>>>>
>>>>> From a very practical perspective, that's not especially useful,
>>>>> since factoring is hard. A more practically useful way can be based
>>>>> on the continued fraction
>>>>> expansion of A/B.
>>>>>
>>>>
>>>> For some reason this is making me think of the convergents of continued
>>>> fractions. Any finite precision of any irrational number can be
>>>> represented by a rational. Of course, to get all of them, well, this
>>>> takes things to infinity.
>>>
>>>
>>>
>>>
>>> well, there are about 10^82 atoms in the universe, so anything more than
>>> 10^-82 digits seems rather meaningless.
>>>
>>> so +-
>>> 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>>>
>>>
>>> should be way more than enough.
>>>
>>> (only 82 digits)
>>>
>>
>> Until you hit fractal zooms!
>>
>> https://youtu.be/zXTpASSd9xE
>>
>> 10^198 power. 350 million iterations.
>>
>> It can do deeper, forever. ;^)
>
> yes! I have Mandebulb on computer, (free)
>
> do you know how they do such precision with such large numbers ?
>
> or are they using some sort of shortcut ?
>
No shortcut. Just arbitrary precision, and let it run. It might take months!
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2020-06-19 19:13 -0700 |
| Message-ID | <rcjrch$1bln$1@gioia.aioe.org> |
| In reply to | #488359 |
On 6/19/2020 7:10 PM, Chris M. Thomasson wrote:
> On 6/19/2020 7:03 PM, Sergio wrote:
>> On 6/19/2020 8:54 PM, Chris M. Thomasson wrote:
>>> On 6/19/2020 6:39 PM, Sergio wrote:
>>>> On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
>>>>> On 6/17/2020 9:35 PM, David Petry wrote:
>>>>>>
>>>>>> I noticed that there are several threads on the topic of enumerating
>>>>>> the positive rational numbers. So let me add to the discussion.
>>>>>>
>>>>>> The simplest way to enumerate pairs of positive integers is to
>>>>>> interlace the digits.
>>>>>>
>>>>>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>>>>>
>>>>>> Note that it would be very much easier to teach grade school students
>>>>>> this way of enumerating pairs of positive integers than using
>>>>>> Cantor's
>>>>>> way (IMO).
>>>>>>
>>>>>>
>>>>>> To get a bijection from positive rationals to postive integers, one
>>>>>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>>>>>> the set of prime factors of B.
>>>>>>
>>>>>> From a very practical perspective, that's not especially useful,
>>>>>> since factoring is hard. A more practically useful way can be based
>>>>>> on the continued fraction
>>>>>> expansion of A/B.
>>>>>>
>>>>>
>>>>> For some reason this is making me think of the convergents of
>>>>> continued
>>>>> fractions. Any finite precision of any irrational number can be
>>>>> represented by a rational. Of course, to get all of them, well, this
>>>>> takes things to infinity.
>>>>
>>>>
>>>>
>>>>
>>>> well, there are about 10^82 atoms in the universe, so anything more
>>>> than
>>>> 10^-82 digits seems rather meaningless.
>>>>
>>>> so +-
>>>> 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>>>>
>>>>
>>>>
>>>> should be way more than enough.
>>>>
>>>> (only 82 digits)
>>>>
>>>
>>> Until you hit fractal zooms!
>>>
>>> https://youtu.be/zXTpASSd9xE
>>>
>>> 10^198 power. 350 million iterations.
>>>
>>> It can do deeper, forever. ;^)
>>
>> yes! I have Mandebulb on computer, (free)
>>
>> do you know how they do such precision with such large numbers ?
>>
>> or are they using some sort of shortcut ?
>>
>
> No shortcut. Just arbitrary precision, and let it run. It might take
> months!
Its fun to take a point P very close to the border at level A... Say A
is on an equipotential line via distance estimation. Zoom in deep, and
find out that P is actually very far from the border! Time to adjust,
get closer, and try again. This can get you very deep. Although, you can
never get on the border. Its infinitely complex.
[toc] | [prev] | [next] | [standalone]
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2020-06-19 23:33 -0700 |
| Message-ID | <rckakh$9lm$1@gioia.aioe.org> |
| In reply to | #488358 |
On 6/19/2020 7:03 PM, Sergio wrote:
> On 6/19/2020 8:54 PM, Chris M. Thomasson wrote:
>> On 6/19/2020 6:39 PM, Sergio wrote:
>>> On 6/19/2020 4:49 PM, Chris M. Thomasson wrote:
>>>> On 6/17/2020 9:35 PM, David Petry wrote:
>>>>>
>>>>> I noticed that there are several threads on the topic of enumerating
>>>>> the positive rational numbers. So let me add to the discussion.
>>>>>
>>>>> The simplest way to enumerate pairs of positive integers is to
>>>>> interlace the digits.
>>>>>
>>>>> e.g. 2468 (interlace) 135 (or 0135) => 20416385
>>>>>
>>>>> Note that it would be very much easier to teach grade school students
>>>>> this way of enumerating pairs of positive integers than using Cantor's
>>>>> way (IMO).
>>>>>
>>>>>
>>>>> To get a bijection from positive rationals to postive integers, one
>>>>> very simple way is f(A/B) = A^2 B^2 / product{p_i}, where {p_i) is
>>>>> the set of prime factors of B.
>>>>>
>>>>> From a very practical perspective, that's not especially useful,
>>>>> since factoring is hard. A more practically useful way can be based
>>>>> on the continued fraction
>>>>> expansion of A/B.
>>>>>
>>>>
>>>> For some reason this is making me think of the convergents of continued
>>>> fractions. Any finite precision of any irrational number can be
>>>> represented by a rational. Of course, to get all of them, well, this
>>>> takes things to infinity.
>>>
>>>
>>>
>>>
>>> well, there are about 10^82 atoms in the universe, so anything more than
>>> 10^-82 digits seems rather meaningless.
>>>
>>> so +-
>>> 0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001
>>>
>>>
>>> should be way more than enough.
>>>
>>> (only 82 digits)
>>>
>>
>> Until you hit fractal zooms!
>>
>> https://youtu.be/zXTpASSd9xE
>>
>> 10^198 power. 350 million iterations.
>>
>> It can do deeper, forever. ;^)
>
> yes! I have Mandebulb on computer, (free)
>
> do you know how they do such precision with such large numbers ?
>
> or are they using some sort of shortcut ?
>
Well, for the Mandelbulb software, I think they have settings for
arbitrary precision. Otherwise, they might be in 64-bit floats.
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | sci.math
csiph-web