Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I have hardly ever known a mathematician who was capable of reasoning. -- Plato


tech / sci.math / Re: Wolfram Alpha and Egyptian fractions

SubjectAuthor
* Re: Wolfram Alpha and Egyptian fractionsmauri
+* Re: Wolfram Alpha and Egyptian fractionsJames Waldby
|`- Re: Wolfram Alpha and Egyptian fractionsJames Waldby
`* Re: Wolfram Alpha and Egyptian fractionsChris M. Thomasson
 `* Re: Wolfram Alpha and Egyptian fractionsJames Waldby
  `- Re: Wolfram Alpha and Egyptian fractionsmauri kurpiel

1
Re: Wolfram Alpha and Egyptian fractions

<810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=152456&group=sci.math#152456

  copy link   Newsgroups: sci.math
X-Received: by 2002:a0c:e5cb:0:b0:677:9fb9:29b3 with SMTP id u11-20020a0ce5cb000000b006779fb929b3mr153029qvm.5.1700228440099;
Fri, 17 Nov 2023 05:40:40 -0800 (PST)
X-Received: by 2002:a81:5288:0:b0:5a7:a98a:4af0 with SMTP id
g130-20020a815288000000b005a7a98a4af0mr480361ywb.3.1700228439858; Fri, 17 Nov
2023 05:40:39 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Fri, 17 Nov 2023 05:40:39 -0800 (PST)
In-Reply-To: <r193em$n42$1@news.albasani.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:a31a:a23e:9180:449a:f4e6:b0b4:77cf;
posting-account=oj4yRQoAAABPwEGFEInI6iHVwaVSbzpg
NNTP-Posting-Host: 2a02:a31a:a23e:9180:449a:f4e6:b0b4:77cf
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me> <r193em$n42$1@news.albasani.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>
Subject: Re: Wolfram Alpha and Egyptian fractions
From: deb...@poczta.onet.pl (mauri)
Injection-Date: Fri, 17 Nov 2023 13:40:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3243
 by: mauri - Fri, 17 Nov 2023 13:40 UTC

poniedziałek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisał(a):
> James Waldby wrote:
> > On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
> >> Asked (for example)
> >> Egyptian fraction | 6/19
> >> Wolfram Alpha obligingly tells me that
> >> 6/19 = 1/4 + 1/16 + 1/304
> >> but many a fraction can be expressed as a sum of unit fractions in more
> >> than one way. How do I asked Wolfram Alpha to tell me all the answers?
> >
> > Getting "all the answers" isn't practical, as there are infinitely many
> > for any given fraction. But when length is limited, there are only
> > finitely many expansions per fraction. One could write a Wolfram
> > Language program within Mathematica to report them and probably could
> > run the same program in Alpha.
> >
> > Python programs 3terms.py and kterms.py to list all expansions up to
> > three terms, or up to k terms, appear at <https://github.com/ghjwp7/
> > egyptian-fractions>; you might translate one or the other to Wolfram
> > Language. 3terms.py is limited but fast; eg 33 ms to get 76 three-term
> > solutions for 13/1179. kterms.py can find longer expansions but is
> > slow -- it takes about 9.4 minutes for the same thing. Program
> > pracfracs.py can produce samplings of solutions when d is large and
> > you want more terms. Eg, it finds 27 three-term solutions for 13/1179
> > in 2 seconds, 380 three- or four-term solutions in a second, and about
> > 800 3/4/5-term solutions in a second.
> Thank you.

I'm happy to find the discussion on Egyptian fractions; can you help me with this point: how can one express ANY rational and positive number with fractions 1/N (different, of course)? E.g. 5? Is there any program to find these solutions? Wolframalpha refuses, it leaves the integers as they are and deals with numbers <1...
I'll appreciate any hint: article, link etc.

Thanks.

Re: Wolfram Alpha and Egyptian fractions

<ujhiou$no85$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=152716&group=sci.math#152716

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: Wolfram Alpha and Egyptian fractions
Date: Tue, 21 Nov 2023 06:29:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <ujhiou$no85$1@dont-email.me>
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me> <r193em$n42$1@news.albasani.net> <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Nov 2023 06:29:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9a31d0eb1a61e7fcac82bba1aa27d18b";
logging-data="778501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193A0Q0heDATBBFx+TKA9QL"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-88-generic (x86_64))
Cancel-Lock: sha1:kAfNhAEpfSUmbSyueWSH2RATXRQ=
 by: James Waldby - Tue, 21 Nov 2023 06:29 UTC

mauri <debrza@poczta.onet.pl> wrote:
> poniedzia??ek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisa??(a):
>> James Waldby wrote:
>> > On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
>> >> Asked (for example)
>> >> Egyptian fraction | 6/19
>> >> Wolfram Alpha obligingly tells me that
>> >> 6/19 = 1/4 + 1/16 + 1/304
>> >> but many a fraction can be expressed as a sum of unit fractions in more
>> >> than one way. How do I asked Wolfram Alpha to tell me all the answers?
>> >
>> > Getting "all the answers" isn't practical, as there are infinitely many
>> > for any given fraction. But when length is limited, there are only
>> > finitely many expansions per fraction. One could write a Wolfram
>> > Language program within Mathematica to report them and probably could
>> > run the same program in Alpha.
>> >
>> > Python programs 3terms.py and kterms.py to list all expansions up to
>> > three terms, or up to k terms, appear at <https://github.com/ghjwp7/
>> > egyptian-fractions>; you might translate one or the other to Wolfram
>> > Language. 3terms.py is limited but fast; eg 33 ms to get 76 three-term
>> > solutions for 13/1179. kterms.py can find longer expansions but is
>> > slow -- it takes about 9.4 minutes for the same thing. Program
>> > pracfracs.py can produce samplings of solutions when d is large and
>> > you want more terms. Eg, it finds 27 three-term solutions for 13/1179
>> > in 2 seconds, 380 three- or four-term solutions in a second, and about
>> > 800 3/4/5-term solutions in a second.
>> Thank you.

> I'm happy to find the discussion on Egyptian fractions; can you help
> me with this point: how can one express ANY rational and positive
> number with fractions 1/N (different, of course)? E.g. 5? Is there
> any program to find these solutions? Wolframalpha refuses, it leaves
> the integers as they are and deals with numbers <1... I'll
> appreciate any hint: article, link etc.

I haven't seen any refs regarding expression of numbers larger than 1
as Egyptian fractions. Its easy to express numbers up to 2: make the
first term 1/1 and use usual methods for the balance. Large numbers,
like 5, may be cumbersome to solve. As in [1], let H_n be the sum
1+1/2+1/3+...+1/n. We have H_84 > 5 > H_83, proving that an Egyptian
fraction for 5 has to have at least 84 terms in it. If you have some
allowed error, eg 10^-8, H_83 + 1/101 + 1/12670 is pretty close using
85 terms.
[1] <https://en.wikipedia.org/wiki/Harmonic_series_(mathematics)>

What is your goal, regarding Egyptian fractions for n/d > 1? Do
you plan on finding a few solutions each for many numbers, many
solutions for a few numbers, or something else, eg mathematical
results rather than computational?

Note, I updated <https://github.com/ghjwp7/egyptian-fractions> by
adding comments in several of the programs, and adding a program
gterms.py that for rational numbers from 0 to 2 quickly calculates two
solutions, one via Engel series and another by a greedy algorithm,
before it starts in on exhaustive testing like the kterms program,
which is supposed to list all solutions of lengths up to a given
maximum, eg 4 or 5 terms. Times for exhaustive testing range widely;
eg, using up to 4 terms, gterms solving 31/89 takes 28 seconds, vs
0.07 s for 31/90, vs 163 s for 31/91.

Re: Wolfram Alpha and Egyptian fractions

<uk6oms$nd3e$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=152954&group=sci.math#152954

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!news.samoylyk.net!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: Wolfram Alpha and Egyptian fractions
Date: Wed, 29 Nov 2023 07:19:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <uk6oms$nd3e$1@dont-email.me>
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me> <r193em$n42$1@news.albasani.net> <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com> <ujhiou$no85$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 Nov 2023 07:19:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c17d5926c96b0f89516162713e9be38a";
logging-data="767086"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6IMSIJZoywEC0BWRrwJjF"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-88-generic (x86_64))
Cancel-Lock: sha1:Xg9NSbPAYwlvH5kXRO9ZRP8pX4Q=
 by: James Waldby - Wed, 29 Nov 2023 07:19 UTC

James Waldby <no@no.no> wrote:
> mauri <debrza@poczta.onet.pl> wrote:
>> poniedzia??ek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisa??(a):
>>> James Waldby wrote:
>>> > On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
>>> >> Asked (for example)
>>> >> Egyptian fraction | 6/19
>>> >> Wolfram Alpha obligingly tells me that
>>> >> 6/19 = 1/4 + 1/16 + 1/304
>>> >> but many a fraction can be expressed as a sum of unit fractions in more
>>> >> than one way. How do I asked Wolfram Alpha to tell me all the answers?
>>> >
>>> > Getting "all the answers" isn't practical, as there are infinitely many
>>> > for any given fraction. But when length is limited, there are only
>>> > finitely many expansions per fraction. One could write a Wolfram
>>> > Language program within Mathematica to report them and probably could
>>> > run the same program in Alpha.
[...]
>> I'm happy to find the discussion on Egyptian fractions; can you help
>> me with this point: how can one express ANY rational and positive
>> number with fractions 1/N (different, of course)? E.g. 5? Is there
>> any program to find these solutions? Wolframalpha refuses, it leaves
>> the integers as they are and deals with numbers <1... I'll
>> appreciate any hint: article, link etc.
>
> I haven't seen any refs regarding expression of numbers larger than 1
> as Egyptian fractions. Its easy to express numbers up to 2: make the
> first term 1/1 and use usual methods for the balance. Large numbers,
> like 5, may be cumbersome to solve. As in [1], let H_n be the sum
> 1+1/2+1/3+...+1/n. We have H_84 > 5 > H_83, proving that an Egyptian
> fraction for 5 has to have at least 84 terms in it. If you have some
> allowed error, eg 10^-8, H_83 + 1/101 + 1/12670 is pretty close using
> 85 terms.
> [1] <https://en.wikipedia.org/wiki/Harmonic_series_(mathematics)>

I tested several ways of looking for Egyptian fractions for n/d > 1.
All the methods I tried begin as follows: Find m such that H_{m+1} >
n/d > H_m, and use 1+1/2+...+1/m as initial terms of expansion. Let
vdelt = n/d-H_m. For each ascending-integers tuple T of a given size
-- eg, at tuple size 4, T is any (a,b,c,d) with 0<a<b<c<d<m+1 --
compute n'/d' = vdelt+1/a+1/b+... Compute a cost estimate for every
tuple's n'/d'. Keep some of the best tuples encountered and further
test them using greedy approach.

For example, the program variant that keeps 3000 tuples of best cost
where cost = n'+d', and greedily expands each n'/d' while seeking the
smallest final denominator, gives 5/1 = sum of reciprocals of
{(1-88)\(43, 53, 71, 79) + 116, 44950, 10559399158,
116991835222443076544, 236126081824856250496864947280...[11],
573368303425950705256638859519...[51],
102966143678514333641057286766...[133],
500104798998571468485143914935...[295],
911215191032239720280342242605...[620]} in which (1-88)\(43, 53, 71,
79) stands for including 1/1, 1/2, ... 1/88 except not 1/43, 1/53,
1/71, or 1/79. Other numbers in the example stand for including
1/116, 1/44950, 1/10559399158, and so forth. Numbers suffixed with
....[k] have their first 30 digits as shown with last k digits elided.
For example, 236126081824856250496864947280...[11] is a 41-digit
number, and 911215191032239720280342242605...[620] is a 650-digit
number. Thus, the above is a 93-term Egyptian fraction representation
of 5. All other representations tested had larger denominators in
their last terms. Python computation times: 472 us for solution
shown; 301043 us (0.3 s) total to select and test 3000 cases.

> What is your goal, regarding Egyptian fractions for n/d > 1? Do
> you plan on finding a few solutions each for many numbers, many
> solutions for a few numbers, or something else, eg mathematical
> results rather than computational?
>
> Note, I updated <https://github.com/ghjwp7/egyptian-fractions> by
> adding comments in several of the programs, and adding a program
> gterms.py that for rational numbers from 0 to 2 quickly calculates two
> solutions, one via Engel series and another by a greedy algorithm,
> before it starts in on exhaustive testing like the kterms program,
> which is supposed to list all solutions of lengths up to a given
> maximum, eg 4 or 5 terms. Times for exhaustive testing range widely;
> eg, using up to 4 terms, gterms solving 31/89 takes 28 seconds, vs
> 0.07 s for 31/90, vs 163 s for 31/91.

Re: Wolfram Alpha and Egyptian fractions

<uk8hk7$11dm9$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=152974&group=sci.math#152974

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: sci.math
Subject: Re: Wolfram Alpha and Egyptian fractions
Date: Wed, 29 Nov 2023 15:31:18 -0800
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uk8hk7$11dm9$1@dont-email.me>
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me>
<r193em$n42$1@news.albasani.net>
<810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 Nov 2023 23:31:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b48c7c6d1e544a3703bdce74e7ea16a2";
logging-data="1095369"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4+W8rkgCMznbkb//iLQwlRBz9m+pfwRE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nvdLAaI/i1DLP8Wqj/l7zEkvvLo=
Content-Language: en-US
In-Reply-To: <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>
 by: Chris M. Thomasson - Wed, 29 Nov 2023 23:31 UTC

On 11/17/2023 5:40 AM, mauri wrote:
> poniedziałek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisał(a):
>> James Waldby wrote:
>>> On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
>>>> Asked (for example)
>>>> Egyptian fraction | 6/19
>>>> Wolfram Alpha obligingly tells me that
>>>> 6/19 = 1/4 + 1/16 + 1/304
>>>> but many a fraction can be expressed as a sum of unit fractions in more
>>>> than one way. How do I asked Wolfram Alpha to tell me all the answers?
>>>
>>> Getting "all the answers" isn't practical, as there are infinitely many
>>> for any given fraction. But when length is limited, there are only
>>> finitely many expansions per fraction. One could write a Wolfram
>>> Language program within Mathematica to report them and probably could
>>> run the same program in Alpha.
>>>
>>> Python programs 3terms.py and kterms.py to list all expansions up to
>>> three terms, or up to k terms, appear at <https://github.com/ghjwp7/
>>> egyptian-fractions>; you might translate one or the other to Wolfram
>>> Language. 3terms.py is limited but fast; eg 33 ms to get 76 three-term
>>> solutions for 13/1179. kterms.py can find longer expansions but is
>>> slow -- it takes about 9.4 minutes for the same thing. Program
>>> pracfracs.py can produce samplings of solutions when d is large and
>>> you want more terms. Eg, it finds 27 three-term solutions for 13/1179
>>> in 2 seconds, 380 three- or four-term solutions in a second, and about
>>> 800 3/4/5-term solutions in a second.
>> Thank you.
>
> I'm happy to find the discussion on Egyptian fractions; can you help me with this point: how can one express ANY rational and positive number with fractions 1/N (different, of course)? E.g. 5? Is there any program to find these solutions? Wolframalpha refuses, it leaves the integers as they are and deals with numbers <1...
> I'll appreciate any hint: article, link etc.
>
> Thanks.

Afaict, there is a way to express any real number as an infinite
continued fraction...

Re: Wolfram Alpha and Egyptian fractions

<uk8vsg$174c7$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=152978&group=sci.math#152978

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: Wolfram Alpha and Egyptian fractions
Date: Thu, 30 Nov 2023 03:34:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <uk8vsg$174c7$1@dont-email.me>
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me> <r193em$n42$1@news.albasani.net> <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com> <uk8hk7$11dm9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 30 Nov 2023 03:34:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="32eb644391a59402f62d7ebff0535309";
logging-data="1282439"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Zjv3ikCkPZ+n/R71CG46S"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-88-generic (x86_64))
Cancel-Lock: sha1:M3Jj+sn4Gw2QHD7wXFyXhrVO1aA=
 by: James Waldby - Thu, 30 Nov 2023 03:34 UTC

Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 11/17/2023 5:40 AM, mauri wrote:
>> poniedzia??ek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisa??(a):
>>> James Waldby wrote:
>>>> On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
>>>>> Asked (for example)
>>>>> Egyptian fraction | 6/19
>>>>> Wolfram Alpha obligingly tells me that
>>>>> 6/19 = 1/4 + 1/16 + 1/304
>>>>> but many a fraction can be expressed as a sum of unit fractions in more
>>>>> than one way. How do I asked Wolfram Alpha to tell me all the answers?
>>>>
>>>> Getting "all the answers" isn't practical, as there are infinitely many
>>>> for any given fraction. But when length is limited, there are only
>>>> finitely many expansions per fraction. One could write a Wolfram
>>>> Language program within Mathematica to report them and probably could
>>>> run the same program in Alpha.
>>>>
>>>> Python programs 3terms.py and kterms.py to list all expansions up to
>>>> three terms, or up to k terms, appear at <https://github.com/ghjwp7/
>>>> egyptian-fractions>; you might translate one or the other to Wolfram
>>>> Language. 3terms.py is limited but fast; eg 33 ms to get 76 three-term
>>>> solutions for 13/1179. kterms.py can find longer expansions but is
>>>> slow -- it takes about 9.4 minutes for the same thing. Program
>>>> pracfracs.py can produce samplings of solutions when d is large and
>>>> you want more terms. Eg, it finds 27 three-term solutions for 13/1179
>>>> in 2 seconds, 380 three- or four-term solutions in a second, and about
>>>> 800 3/4/5-term solutions in a second.
>>> Thank you.

>> I'm happy to find the discussion on Egyptian fractions; can you
>> help me with this point: how can one express ANY rational and
>> positive number with fractions 1/N (different, of course)? E.g. 5?
>> Is there any program to find these solutions? Wolframalpha refuses,
>> it leaves the integers as they are and deals with numbers <1...
>> I'll appreciate any hint: article, link etc.
> Afaict, there is a way to express any real number as an infinite
> continued fraction...

That's true, but not directly relevant. A continued fraction
expresses a real number as a tower of fractions. An Egyptian fraction
expresses a rational number as a sum of unit fractions.

<https://en.wikipedia.org/wiki/Egyptian_fraction>
<https://en.wikipedia.org/wiki/Continued_fraction>

Re: Wolfram Alpha and Egyptian fractions

<5f1a37ae-d153-4db5-b598-8ca6e256d22en@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=153177&group=sci.math#153177

  copy link   Newsgroups: sci.math
X-Received: by 2002:ac8:7741:0:b0:423:f4e6:3dc6 with SMTP id g1-20020ac87741000000b00423f4e63dc6mr8636qtu.7.1701870174708;
Wed, 06 Dec 2023 05:42:54 -0800 (PST)
X-Received: by 2002:a05:6808:201f:b0:3ad:f860:b315 with SMTP id
q31-20020a056808201f00b003adf860b315mr1054142oiw.2.1701870174504; Wed, 06 Dec
2023 05:42:54 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Wed, 6 Dec 2023 05:42:53 -0800 (PST)
In-Reply-To: <uk8vsg$174c7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a02:a31a:a23e:9180:f49d:2a62:7c5c:ea9;
posting-account=oj4yRQoAAABPwEGFEInI6iHVwaVSbzpg
NNTP-Posting-Host: 2a02:a31a:a23e:9180:f49d:2a62:7c5c:ea9
References: <r05dg4$h6v$1@news.albasani.net> <r18ln5$mk4$1@dont-email.me>
<r193em$n42$1@news.albasani.net> <810ac606-d25c-442d-bba9-c9ae76995e69n@googlegroups.com>
<uk8hk7$11dm9$1@dont-email.me> <uk8vsg$174c7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5f1a37ae-d153-4db5-b598-8ca6e256d22en@googlegroups.com>
Subject: Re: Wolfram Alpha and Egyptian fractions
From: deb...@poczta.onet.pl (mauri kurpiel)
Injection-Date: Wed, 06 Dec 2023 13:42:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4913
 by: mauri kurpiel - Wed, 6 Dec 2023 13:42 UTC

czwartek, 30 listopada 2023 o 04:34:48 UTC+1 James Waldby napisał(a):
> Chris M. Thomasson <chris.m.t...@gmail.com> wrote:
> > On 11/17/2023 5:40 AM, mauri wrote:
> >> poniedzia??ek, 3 lutego 2020 o 13:25:00 UTC+1 Peter Percival napisa??(a):
> >>> James Waldby wrote:
> >>>> On Mon, 20 Jan 2020 23:35:32 +0000, Peter Percival wrote:
> >>>>> Asked (for example)
> >>>>> Egyptian fraction | 6/19
> >>>>> Wolfram Alpha obligingly tells me that
> >>>>> 6/19 = 1/4 + 1/16 + 1/304
> >>>>> but many a fraction can be expressed as a sum of unit fractions in more
> >>>>> than one way. How do I asked Wolfram Alpha to tell me all the answers?
> >>>>
> >>>> Getting "all the answers" isn't practical, as there are infinitely many
> >>>> for any given fraction. But when length is limited, there are only
> >>>> finitely many expansions per fraction. One could write a Wolfram
> >>>> Language program within Mathematica to report them and probably could
> >>>> run the same program in Alpha.
> >>>>
> >>>> Python programs 3terms.py and kterms.py to list all expansions up to
> >>>> three terms, or up to k terms, appear at <https://github.com/ghjwp7/
> >>>> egyptian-fractions>; you might translate one or the other to Wolfram
> >>>> Language. 3terms.py is limited but fast; eg 33 ms to get 76 three-term
> >>>> solutions for 13/1179. kterms.py can find longer expansions but is
> >>>> slow -- it takes about 9.4 minutes for the same thing. Program
> >>>> pracfracs.py can produce samplings of solutions when d is large and
> >>>> you want more terms. Eg, it finds 27 three-term solutions for 13/1179
> >>>> in 2 seconds, 380 three- or four-term solutions in a second, and about
> >>>> 800 3/4/5-term solutions in a second.
> >>> Thank you.
>
> >> I'm happy to find the discussion on Egyptian fractions; can you
> >> help me with this point: how can one express ANY rational and
> >> positive number with fractions 1/N (different, of course)? E.g. 5?
> >> Is there any program to find these solutions? Wolframalpha refuses,
> >> it leaves the integers as they are and deals with numbers <1...
> >> I'll appreciate any hint: article, link etc.
> > Afaict, there is a way to express any real number as an infinite
> > continued fraction...
> That's true, but not directly relevant. A continued fraction
> expresses a real number as a tower of fractions. An Egyptian fraction
> expresses a rational number as a sum of unit fractions.
>
> <https://en.wikipedia.org/wiki/Egyptian_fraction>
> <https://en.wikipedia.org/wiki/Continued_fraction>

Sorry, James - I don't understand precisely your computer calculations. They are beautiful and... crazy; trying to split number 6 to unit fractions means operating with cosmic denominators...

I came to similar conclusions with Excel tools: I took the trouble and used Excel to calculate that the number 6 is between 1/2+1/3+...1/615 and 1/2+1/3+...1/616. And what next? You need to add up to 1/615, subtract the resulting sum from 6 and present the resulting fraction as a sum of simple fractions. The common denominator of such an operation would probably be something crazy! The amount of such components needed to obtain the number A is roughly e^A; you can see what colossal numbers these are. Theoretically, everything is possible, but practically impossible... Am I right?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor