Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

When speculation has done its worst, two plus two still equals four. -- S. Johnson


computers / comp.os.linux.advocacy / Prog Challenge

SubjectAuthor
* Prog ChallengeNuxxie
`* Re: Prog ChallengePhysfitfreak
 +- Re: Prog ChallengePhysfitfreak
 +* Re: Prog ChallengeNuxxie
 |+* Re: Prog ChallengeNuxxie
 ||`* Re: Prog ChallengeNuxxie
 || +* Re: Prog ChallengeNuxxie
 || |`* Re: Prog ChallengePhysfitfreak
 || | `* Re: Prog ChallengePhysfitfreak
 || |  `- Re: Prog ChallengePhysfitfreak
 || `- Re: Prog ChallengeDFS
 |+- Re: Prog ChallengePhysfitfreak
 |`- Re: Prog ChallengeDFS
 +* Re: Prog Challengerbowman
 |+* Re: Prog ChallengeDFS
 ||`- Re: Prog Challengerbowman
 |`* Re: Prog ChallengePhysfitfreak
 | `- Re: Prog Challengerbowman
 `- Re: Prog ChallengeDFS

1
Prog Challenge

<17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11277&group=comp.os.linux.advocacy#11277

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Prog Challenge
Newsgroups: comp.os.linux.advocacy
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 25
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Thu, 07 Mar 2024 18:11:17 +0000
Nntp-Posting-Date: Thu, 07 Mar 2024 18:11:17 +0000
X-Received-Bytes: 1043
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
 by: Nuxxie - Thu, 7 Mar 2024 18:11 UTC

Programming is about mathematics and not coding.

Problem:

Any rational number a/b (in lowest terms) can be expressed either
as a terminating decimal or a repeating decimal.

We consider here only repeating decimals.

Given, a and b, which are intergers with any number of digits,
find the repeating portion in the decimal expansion.

That is, the decimal expansion will be:

a1, a2, a3, ... an, [r1, r2, r3 ... rn]

where [... ri ...] is the repeating portion.

Example:

1/28 = 0.03 571428 571428...

The non-repeating, leading portion can be very long and so too can
the repeating portion.

Re: Prog Challenge

<use0es$12qgm$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11313&group=comp.os.linux.advocacy#11313

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Thu, 7 Mar 2024 21:25:16 -0600
Message-ID: <use0es$12qgm$1@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 03:25:17 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1141270"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/Qr/+9TAN61Q5Z8qHHuVbtqR8iM=
In-Reply-To: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
X-Antivirus: Avast (VPS 240307-8, 3/7/2024), Outbound message
Content-Language: en-US
X-Antivirus-Status: Clean
X-User-ID: eJwFwQcBwEAIBDBLlHGAHNb7l9DEBB/GFQa1Z88PHCTSYYMYryOZ6oqno1naTcb7Vit1rW+cUxYsqb2E+wFdoRXy
 by: Physfitfreak - Fri, 8 Mar 2024 03:25 UTC

On 3/7/2024 12:11 PM, Nuxxie wrote:
> Programming is about mathematics and not coding.
>
> Problem:
>
> Any rational number a/b (in lowest terms) can be expressed either
> as a terminating decimal or a repeating decimal.
>
> We consider here only repeating decimals.
>
> Given, a and b, which are intergers with any number of digits,
> find the repeating portion in the decimal expansion.
>
> That is, the decimal expansion will be:
>
> a1, a2, a3, ... an, [r1, r2, r3 ... rn]
>
> where [... ri ...] is the repeating portion.
>
> Example:
>
> 1/28 = 0.03 571428 571428...
>
> The non-repeating, leading portion can be very long and so too can
> the repeating portion.
>

I don't think the dorks here know such stuff. And the good ones believe
it's waste of time but what they do (i.e. "fart") is not waste of time.

So I'll go ahead and ruin it for them all :)

(method of nines)

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<use6dl$1h55r$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11316&group=comp.os.linux.advocacy#11316

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Thu, 7 Mar 2024 23:06:59 -0600
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <use6dl$1h55r$1@dont-email.me>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 05:07:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="779c5d2fc742fd7c3bf42f6c92771897";
logging-data="1610939"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GvGbWc+Ge9k2PdT8Yjyht7MWXb39Xqw4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:GT9NpQJC7JbxY2srpMYEW8N1bFE=
X-Antivirus: Avast (VPS 240307-8, 3/7/2024), Outbound message
X-Antivirus-Status: Clean
In-Reply-To: <use0es$12qgm$1@solani.org>
Content-Language: en-US
 by: Physfitfreak - Fri, 8 Mar 2024 05:06 UTC

On 3/7/2024 9:25 PM, Physfitfreak wrote:
> On 3/7/2024 12:11 PM, Nuxxie wrote:
>> Programming is about mathematics and not coding.
>>
>> Problem:
>>
>> Any rational number a/b (in lowest terms) can be expressed either
>> as a terminating decimal or a repeating decimal.
>>
>> We consider here only repeating decimals.
>>
>> Given, a and b, which are intergers with any number of digits,
>> find the repeating portion in the decimal expansion.
>>
>> That is, the decimal expansion will be:
>>
>> a1, a2, a3, ... an, [r1, r2, r3 ... rn]
>>
>> where [... ri ...] is the repeating portion.
>>
>> Example:
>>
>> 1/28 = 0.03 571428 571428...
>>
>> The non-repeating, leading portion can be very long and so too can
>> the repeating portion.
>>
>
>
> I don't think the dorks here know such stuff. And the good ones believe
> it's waste of time but what they do (i.e. "fart") is not waste of time.
>
> So I'll go ahead and ruin it for them all :)
>
> (method of nines)
>
>
>
>

Forgot to add that I suggest that when you post a challenge question,
you add sci.physics to target group as well. Reason for that is that
This newsgroup is pretty obscure and buried inside load of shit in
usenet. Sane healthy people who'd be interested in working on such
problems find sci.physics much more easier and quicker than a strange
named newsgroup like COLA. But unfortunately, so do the insane people :)

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11621&group=comp.os.linux.advocacy#11621

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Prog Challenge
Newsgroups: comp.os.linux.advocacy
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com> <use0es$12qgm$1@solani.org>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 51
Path: i2pn2.org!i2pn.org!news.furie.org.uk!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 08 Mar 2024 14:20:12 +0000
Nntp-Posting-Date: Fri, 08 Mar 2024 14:20:12 +0000
X-Received-Bytes: 1612
X-Complaints-To: abuse@usenetexpress.com
Organization: UsenetExpress - www.usenetexpress.com
Message-Id: <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
 by: Nuxxie - Fri, 8 Mar 2024 14:20 UTC

On Thu, 07 Mar 2024 21:25:16 -0600, Physfitfreak wrote:

>
> I don't think the dorks here know such stuff. And the good ones believe
> it's waste of time but what they do (i.e. "fart") is not waste of time.
>

Project Euler, a well respected forum for programmers, doesn't think
that it's a waste of time:

https://projecteuler.net/problem=26

>
> So I'll go ahead and ruin it for them all :)
>
> (method of nines)
>

I don't know. Being a scientist/engineer, I have little background
in number theory.

But, after some research, it is related to the "multiplicative order"
of the denominator.

In Maxima CAS, there is a function that determines the multiplicative
order: zn_order(a, d), where a is the base and d the denominator.

Example:

zn_order(10,31);
15

Thus, 1/31 should have a repeating length of 15, and it does.

zn_order(10,79832137);
516846

1/79832137 should have a repeating length of 516846; I haven't checked.

But it fails for 1/28:

zn_order(10,28);
false

So the method is not totally general.

Re: Prog Challenge

<17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11622&group=comp.os.linux.advocacy#11622

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Prog Challenge
Newsgroups: comp.os.linux.advocacy
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com> <use0es$12qgm$1@solani.org> <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 33
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 08 Mar 2024 14:54:29 +0000
Nntp-Posting-Date: Fri, 08 Mar 2024 14:54:29 +0000
X-Received-Bytes: 1312
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
 by: Nuxxie - Fri, 8 Mar 2024 14:54 UTC

On Fri, 08 Mar 2024 14:20:12 +0000, Nuxxie wrote:

>
> But it fails for 1/28:
>
> zn_order(10,28);
> false
>

I found out the problem here.

The denominator, d, has to be factored as 2^i * 5^j * d', where
possibly i=1 and j=1.

In this case, 28 = 2^2 * 7 (i.e. i=2, j=0)

Now, zn_order(10,7) = 6

Thus 1/28 has a repeating portion of length 6 which is preceeded
by max(i,j) = 2 digits:

1/28 = 0.03571428571428...

This is fantastic stuff!

My main source, so far, is this link:

https://math.stackexchange.com/questions/377683/length-of-period-of-
decimal-expansion-of-a-fraction

Maxima uses multi-precision, based on GMP, and can handle extremely
large decimal expansions.

Re: Prog Challenge

<17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11624&group=comp.os.linux.advocacy#11624

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Prog Challenge
Newsgroups: comp.os.linux.advocacy
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com> <use0es$12qgm$1@solani.org> <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com> <17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 41
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 08 Mar 2024 15:43:54 +0000
Nntp-Posting-Date: Fri, 08 Mar 2024 15:43:54 +0000
X-Received-Bytes: 1472
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
 by: Nuxxie - Fri, 8 Mar 2024 15:43 UTC

On Fri, 08 Mar 2024 14:54:29 +0000, Nuxxie wrote:

>
> 1/28 = 0.03571428571428...
>
> This is fantastic stuff!
>

Let's now do a big one.

1/37252902384619140625

First find the prime factorization:

ifactors(37252902384619140625);
[[5,11],[7,1],[47297,1],[2304403,1]]

Thus, we need to express this as:

5^11 * 762939440837

Now find the multiplicative order:

zn_order(10, 762939440837);

54494498496

The result:

The decimal expansion will begin with 11 digits followed
by a repeating porion of length 54,494,498,496.

This number would need 64 GiB of memory, but we could
write it out to a file using Maxima or bc or GMP.

I won't try but maybe someone else will.

This kind of stuff is what a computer is for. No fucking Netflix.
No fucking Gmail. Just this.

Re: Prog Challenge

<17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11625&group=comp.os.linux.advocacy#11625

  copy link   Newsgroups: comp.os.linux.advocacy
From: nuxxie@linux.rocks (Nuxxie)
Subject: Re: Prog Challenge
Newsgroups: comp.os.linux.advocacy
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com> <use0es$12qgm$1@solani.org> <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com> <17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com> <17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 25
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Fri, 08 Mar 2024 16:04:55 +0000
Nntp-Posting-Date: Fri, 08 Mar 2024 16:04:55 +0000
X-Received-Bytes: 1465
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>
 by: Nuxxie - Fri, 8 Mar 2024 16:04 UTC

On Fri, 08 Mar 2024 15:43:54 +0000, Nuxxie wrote:

>
> 1/37252902384619140625
>
>
> The decimal expansion will begin with 11 digits followed by a repeating
> porion of length 54,494,498,496.
>
> This number would need 64 GiB of memory, but we could write it out to a
> file using Maxima or bc or GMP.
>

Someone please write out this number to a file. As 1 byte per character
it should be about 55 GiB in size.

Then verify that the decimals start with 11 digits and then repeat
after 54,494,498,496 + 11 digits. Just verify that the first 100 or
so digits are the same.

Y'all have big, fat mouths. Let's see if that can translate into
serious computing action.

The first to do it will receive a BIG PRIZE.

Re: Prog Challenge

<usfk5n$13lc3$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11629&group=comp.os.linux.advocacy#11629

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!paganini.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 12:07:50 -0600
Message-ID: <usfk5n$13lc3$1@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
<17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
<17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
<17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 18:07:51 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1168771"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9azTNRO3Myl26d8+kt38hcdwR6c=
In-Reply-To: <17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>
X-User-ID: eJwNyckBwDAIA7CVSDFHxgFT9h+h1VemfpwBN4etbT3v7N7yoG5CGX90Q0Qo+QzsGph2wELMsXYvkqMjnT0fWtcV5w==
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 240308-0, 3/7/2024), Outbound message
Content-Language: en-US
 by: Physfitfreak - Fri, 8 Mar 2024 18:07 UTC

On 3/8/2024 10:04 AM, Nuxxie wrote:
> On Fri, 08 Mar 2024 15:43:54 +0000, Nuxxie wrote:
>
>>
>> 1/37252902384619140625
>>
>>
>> The decimal expansion will begin with 11 digits followed by a repeating
>> porion of length 54,494,498,496.
>>
>> This number would need 64 GiB of memory, but we could write it out to a
>> file using Maxima or bc or GMP.
>>
>
> Someone please write out this number to a file. As 1 byte per character
> it should be about 55 GiB in size.
>
> Then verify that the decimals start with 11 digits and then repeat
> after 54,494,498,496 + 11 digits. Just verify that the first 100 or
> so digits are the same.
>
> Y'all have big, fat mouths. Let's see if that can translate into
> serious computing action.
>
> The first to do it will receive a BIG PRIZE.
>

Again, you're turning the spoon twice around your head before placing it
in your mouth to eat your soup.

If you're after _proving_, mathematically, that a method will give the
repeating decimals, that's another matter. And I'm not good at that and
am not interested in stuff and degree of precise logic that
mathematicians are accustomed to and apply in their proofs. My
background is not math. That's why.

But if you're only interested in the answer, then method of nines is the
simplest and fastest way of getting it.

If you haven't seen it, then what kind of numerical methods class did
you attend? You must be way younger than me. I'm thinking the generation
after me with access to much better computers didn't need all that nitty
gritty to get by, and therefore profs simply omitted a bulk of such
material from the courses.

With an almost two lines of program, one can find a number consisting
only of digits of 9, for which the denominator of the fraction is a
divisor. Then with one more line of code, the fraction is rewritten with
that denominator consisting of 9's. The numerator thus obtained will be
the decimals that get repeated. As simple as that.

How many lines of code is that? 3 ? At most 4.

Example. Say we want to find the repeating decimals of 14/33 without
actually dividing the two numbers to visually find that out, but by
knowing in advance what those repeating decimals will be.

1- find the smallest number consisting of only digits of 9 that 33 is a
divisor for:

33 x 3 = 99

2. apply this factor of 3 to the fraction:

14/33 x 3/3 = 42/99

3. therefore the repeating decimals are 42.

That's how you have your soup :)

The cases involving other numbers appearing in the decimals before
repeating decimals begin are quite similar. You first convert the
fraction to different pieces to separate the repeating part of decimals
from the rest. This turns the term with repeating decimals to have a
bunch of zeros coming before the repeating part begins. Then you use a
slightly different form of method of nines (called method of nines with
zeros) to find the repeating decimals.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<usfnkh$13n9o$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11631&group=comp.os.linux.advocacy#11631

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 13:06:57 -0600
Message-ID: <usfnkh$13n9o$1@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
<17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
<17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
<17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>
<usfk5n$13lc3$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 8 Mar 2024 19:06:57 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1170744"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OWOPLpn452G1Ei+ICod7xleQy8g=
Content-Language: en-US
X-Antivirus: Avast (VPS 240308-0, 3/7/2024), Outbound message
X-Antivirus-Status: Clean
X-User-ID: eJwFwYEBwDAEBMCVqH9iHCL2H6F3NFe/AaeDy83UqKtd20WeHYWgU6beGp5zb0Tkt++DKaIpkzVWp1v89A9mxhXz
In-Reply-To: <usfk5n$13lc3$1@solani.org>
 by: Physfitfreak - Fri, 8 Mar 2024 19:06 UTC

On 3/8/2024 12:07 PM, Physfitfreak wrote:
> On 3/8/2024 10:04 AM, Nuxxie wrote:
>> On Fri, 08 Mar 2024 15:43:54 +0000, Nuxxie wrote:
>>
>>>
>>> 1/37252902384619140625
>>>
>>>
>>> The decimal expansion will begin with 11 digits followed by a repeating
>>> porion of length 54,494,498,496.
>>>
>>> This number would need 64 GiB of memory, but we could write it out to a
>>> file using Maxima or bc or GMP.
>>>
>>
>> Someone please write out this number to a file.  As 1 byte per character
>> it should be about 55 GiB in size.
>>
>> Then verify that the decimals start with 11 digits and then repeat
>> after 54,494,498,496 + 11 digits.  Just verify that the first 100 or
>> so digits are the same.
>>
>> Y'all have big, fat mouths.  Let's see if that can translate into
>> serious computing action.
>>
>> The first to do it will receive a BIG PRIZE.
>>
>
>
> Again, you're turning the spoon twice around your head before placing it
> in your mouth to eat your soup.
>
> If you're after _proving_, mathematically, that a method will give the
> repeating decimals, that's another matter. And I'm not good at that and
> am not interested in stuff and degree of precise logic that
> mathematicians are accustomed to and apply in their proofs. My
> background is not math. That's why.
>
> But if you're only interested in the answer, then method of nines is the
> simplest and fastest way of getting it.
>
> If you haven't seen it, then what kind of numerical methods class did
> you attend? You must be way younger than me. I'm thinking the generation
> after me with access to much better computers didn't need all that nitty
> gritty to get by, and therefore profs simply omitted a bulk of such
> material from the courses.
>
> With an almost two lines of program, one can find a number consisting
> only of digits of 9, for which the denominator of the fraction is a
> divisor. Then with one more line of code, the fraction is rewritten with
> that denominator consisting of 9's. The numerator thus obtained will be
> the decimals that get repeated. As simple as that.
>
> How many lines of code is that? 3 ? At most 4.
>
> Example. Say we want to find the repeating decimals of 14/33 without
> actually dividing the two numbers to visually find that out, but by
> knowing in advance what those repeating decimals will be.
>
> 1- find the smallest number consisting of only digits of 9 that 33 is a
> divisor for:
>
> 33 x 3 = 99
>
> 2. apply this factor of 3 to the fraction:
>
> 14/33 x 3/3 = 42/99
>
> 3. therefore the repeating decimals are 42.
>
> That's how you have your soup :)
>
> The cases involving other numbers appearing in the decimals before
> repeating decimals begin are quite similar. You first convert the
> fraction to different pieces to separate the repeating part of decimals
> from the rest. This turns the term with repeating decimals to have a
> bunch of zeros coming before the repeating part begins. Then you use a
> slightly different form of method of nines (called method of nines with
> zeros) to find the repeating decimals.
>
>
>
>

Method of nines have some more detail than just that. The example and
method I mentioned above applies only to cases where numerator and
denominator are of the same order of magnitude. If denominator is of a
magnitude of order n more than the numerator, then n zeros appear in the
repeating decimals before nonzeros in them begin. Example:

1/13 (i.e. there will be one repeating zero before non-zero repeating
decimals begin)

1. find the nines: (a two liner loop)

13 x 76923 = 999999

2. apply the factor:

1/13 x 76923/76923 = 76923/999999

3. therefore the repeating decimals are 076923 (not 76923).

Now let's take the example you brought earlier:

1/31

1. There will be one repeating zero before non-zero digits of repeating
decimals begin.

2. get the nines:

31 x 32258064516129 = 999999999999999

3. apply the factor:

1/31 x 32258064516129/32258064516129 = 32258064516129/999999999999999

4. therefore the repeating decimals will be 032258064516129

Note that the zeros coming before non-zero digits begin, are not a case
of zeros after radix that are _not_ part of the repeating decimals. The
latter cases are handled by method of nines with zeros which is slightly
different from method of nines, and I won't go into it. Those interested
can dig it themselves.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<usfp1e$13n9o$3@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11634&group=comp.os.linux.advocacy#11634

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 13:30:55 -0600
Message-ID: <usfp1e$13n9o$3@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 19:30:54 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1170744"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s0p3oOeph3p/HejELFbDAeQ1E68=
X-User-ID: eJwFwQkBACAIBLBK/GCcQ6F/BDfX4Lhp4WG+vhvdqPP82nLGKBlrPlUsqN4AIpzNEr1iniN6kDaEU3eaPl8nFbI=
In-Reply-To: <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
Content-Language: en-US
X-Antivirus: Avast (VPS 240308-0, 3/7/2024), Outbound message
X-Antivirus-Status: Clean
 by: Physfitfreak - Fri, 8 Mar 2024 19:30 UTC

On 3/8/2024 8:20 AM, Nuxxie wrote:
> Project Euler, a well respected forum for programmers, doesn't think
> that it's a waste of time:
>
> https://projecteuler.net/problem=26
>

It probably has moderators. So fuck that. I won't be there even if they
pay me.

But, sci.physics and sci.math doesn't think that it's a waste of time
either :) So as I said, I suggest that you include that newsgroup in
your challenge posts. Such posts would have a better chance to get
worked on than in a place like COLA.

I'm never in sci.math though cause that's not my background. But
sci.physics has room for math questions as well, and for good reasons
too. Especially the baby problems :)

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<l518s7FmepqU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11637&group=comp.os.linux.advocacy#11637

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: 8 Mar 2024 19:56:56 GMT
Lines: 11
Message-ID: <l518s7FmepqU2@mid.individual.net>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net fZD2N1/yhS8kzHkU8y21mgCGdNxImvwbzQd9Kj3YrFrYhHWfn2
Cancel-Lock: sha1:X3+ihbzn0Gf7mUMTEyiosWNnDIE= sha256:gsdBZwO/U+ZYhozA3hhXOb954n2fxENbHQihPlrbjmA=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Fri, 8 Mar 2024 19:56 UTC

On Thu, 7 Mar 2024 21:25:16 -0600, Physfitfreak wrote:

> (method of nines)

Ah, nines. When I was in elementary school I got pretty good with the
Trachtenberg system. I would check the answer by casting out the nines.

https://en.wikipedia.org/wiki/Trachtenberg_system
https://en.wikipedia.org/wiki/Casting_out_nines

That really pissed off my teachers. "Show your work!"

Re: Prog Challenge

<usfreu$1snm0$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11640&group=comp.os.linux.advocacy#11640

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 15:12:18 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <usfreu$1snm0$2@dont-email.me>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org> <l518s7FmepqU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 20:12:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fab2b49de04fb903622181ec797b4864";
logging-data="1990336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+se0pkhZ5gamKVQ5cWh83a"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:DKtF88P/yvjSv+Vmr6vH5dZxoXA=
Content-Language: en-US
In-Reply-To: <l518s7FmepqU2@mid.individual.net>
 by: DFS - Fri, 8 Mar 2024 20:12 UTC

On 3/8/2024 2:56 PM, rbowman wrote:
> On Thu, 7 Mar 2024 21:25:16 -0600, Physfitfreak wrote:
>
>> (method of nines)
>
> Ah, nines. When I was in elementary school I got pretty good with the
> Trachtenberg system. I would check the answer by casting out the nines.
>
> https://en.wikipedia.org/wiki/Trachtenberg_system
> https://en.wikipedia.org/wiki/Casting_out_nines
>
> That really pissed off my teachers. "Show your work!"

elementary school? wtf?

I figured you were some kind of Young Sheldon-ish savant.

I got very close to perfect scores in high school geometry. It's all
downhill since.

Re: Prog Challenge

<usfsrc$1svs6$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11647&group=comp.os.linux.advocacy#11647

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 15:35:56 -0500
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <usfsrc$1svs6$2@dont-email.me>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 20:35:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fab2b49de04fb903622181ec797b4864";
logging-data="1998726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SCYieRxGXXhqKCSsuBJCF"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:hjngMyaDDzfBhC3T+HUXh3WjY70=
In-Reply-To: <use0es$12qgm$1@solani.org>
Content-Language: en-US
 by: DFS - Fri, 8 Mar 2024 20:35 UTC

On 3/7/2024 10:25 PM, Physfitfreak wrote:
> On 3/7/2024 12:11 PM, Nuxxie wrote:
>> Programming is about mathematics and not coding.
>>
>> Problem:
>>
>> Any rational number a/b (in lowest terms) can be expressed either
>> as a terminating decimal or a repeating decimal.
>>
>> We consider here only repeating decimals.
>>
>> Given, a and b, which are intergers with any number of digits,
>> find the repeating portion in the decimal expansion.
>>
>> That is, the decimal expansion will be:
>>
>> a1, a2, a3, ... an, [r1, r2, r3 ... rn]
>>
>> where [... ri ...] is the repeating portion.
>>
>> Example:
>>
>> 1/28 = 0.03 571428 571428...
>>
>> The non-repeating, leading portion can be very long and so too can
>> the repeating portion.
>>
>
>
> I don't think the dorks here know such stuff. And the good ones believe
> it's waste of time but what they do (i.e. "fart") is not waste of time.
>
> So I'll go ahead and ruin it for them all :)
>
> (method of nines)

Ruin away, Sandy. You 2 neurotics are the only ones who care about such
nonsense anyway.

Re: Prog Challenge

<usfv7e$13qps$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11659&group=comp.os.linux.advocacy#11659

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 15:16:29 -0600
Message-ID: <usfv7e$13qps$1@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org> <l518s7FmepqU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Mar 2024 21:16:30 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1174332"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:B6JtNla4bbVcuitILttMhObF3rc=
X-User-ID: eJwFwQkBwDAIA0BLML5GDrTBv4TdhaXmLc9Ij431rnfMAvT+SOS+GrDSXIbsItUw95t2g5zBnZWBoiW08ANlyBXU
X-Antivirus-Status: Clean
In-Reply-To: <l518s7FmepqU2@mid.individual.net>
Content-Language: en-US
X-Antivirus: Avast (VPS 240308-0, 3/7/2024), Outbound message
 by: Physfitfreak - Fri, 8 Mar 2024 21:16 UTC

On 3/8/2024 1:56 PM, rbowman wrote:
> On Thu, 7 Mar 2024 21:25:16 -0600, Physfitfreak wrote:
>
>> (method of nines)
>
> Ah, nines. When I was in elementary school I got pretty good with the
> Trachtenberg system. I would check the answer by casting out the nines.
>
> https://en.wikipedia.org/wiki/Trachtenberg_system
> https://en.wikipedia.org/wiki/Casting_out_nines
>
> That really pissed off my teachers. "Show your work!"

Hehe :)

Very interesting. So much stuff that can be done with 9s :) All quite
useful. Most of them I have had no encounter with.

I didn't encounter the above "method of nines" until the need for it
came up in grad school.

At one of my jobs, a printing clerk astonished me with calculating large
multiplications in his mind, very fast. I kept asking him how he did it,
and he always only smiled at me :) Every time we were bored we would
begin a race getting the result of some multiplication in mind. Every
single time he won of course. It was fun.

Strange that I remembered him after decades. He was a diehard
southerner, still in war with "Yankees" and craving for lynching Blacks
and jews :) His number one worry in the world was the loss of the pure
White race. It was really on his mind every day. I didn't help that
either, cause I always joked with him, "You're an endangered species",
and he felt the truth of it very deeply :-)

I don't know about right now, but Texas back then had a good portion of
its people just about like how he was. Same world view, and very
concerned and worried. And fiercely anti-Yankee. I mean just as if it
was still 1865. The moment news of Twin Towers coming down hit the TV,
you could see all these pickup trucks driving in the streets carrying
large flags of the Confederates, for days. They were so much hoping that
their militia had done that. A few days later they all got so depressed
and silent, finding out it was a Palestinian-related issue, having
nothing to do with the South. I sensed and saw all that very closely!
South got very depressed by the news of it, and the rest of the USA got
very relieved! Cause they, too, first thought it was the militia.

No idea how things are now, though.

Bad diversion here, but was worth it, cause he was actually a heck of a
guy and deserved to be mentioned at least this much. Very patriotic in a
Southern way. You guys up there don't know what I'm talking about.

Indians have many ways of calculating arithmetic operations. It must be
something that's stressed in their schools. I even have a little book by
an Indian woman that teaches many methods of calculating fast. I used to
know the most useful ones among it but I've forgotten it all now.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<usgffn$20gfq$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11670&group=comp.os.linux.advocacy#11670

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 8 Mar 2024 20:53:59 -0500
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <usgffn$20gfq$3@dont-email.me>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 9 Mar 2024 01:53:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bd0cd99499b1364606b6e597c9f2633e";
logging-data="2114042"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9UYCv9tAtaUyAK7rqvxQk"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:gh6Qmg8u5VPceLL98J/dmLCJePs=
In-Reply-To: <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
Content-Language: en-US
 by: DFS - Sat, 9 Mar 2024 01:53 UTC

On 3/8/2024 9:20 AM, Lameass Larry Piet wrote:
> On Thu, 07 Mar 2024 21:25:16 -0600, Physfitfreak wrote:
>
>>
>> I don't think the dorks here know such stuff. And the good ones believe
>> it's waste of time but what they do (i.e. "fart") is not waste of time.
>>
>
> Project Euler, a well respected forum for programmers, doesn't think
> that it's a waste of time:
>
> https://projecteuler.net/problem=26

Remember when you said the exact opposite?

"That entire "Project Euler" web site is pure baloney." Feeb July 2021

"What a totally lame project [Project Euler]. It's where all the string
manipulators congregate." Feeb July 2021

phony twat.

Re: Prog Challenge

<l51u7bFqgibU3@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11672&group=comp.os.linux.advocacy#11672

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!rocksolid2!i2pn.org!nntp.comgw.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: 9 Mar 2024 02:01:17 GMT
Lines: 7
Message-ID: <l51u7bFqgibU3@mid.individual.net>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org> <l518s7FmepqU2@mid.individual.net>
<usfreu$1snm0$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Y4OAsjTTx8194k4yboPnMAvFjhXdK7cFdqdjvHA9olK2A83gOi
Cancel-Lock: sha1:KBvhB5/vSk9MGIdEGx9oX9lgtRE= sha256:Ghl2SxS7QPOeCXFBlroYFLjgBnz/rHlD/w8z3u10p7Y=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sat, 9 Mar 2024 02:01 UTC

On Fri, 8 Mar 2024 15:12:18 -0500, DFS wrote:

> I got very close to perfect scores in high school geometry. It's all
> downhill since.

I never got into that QED stuff. Being a code monkey I'll take some old
Greek's word for it an cut to the chase.

Re: Prog Challenge

<l51usgFqgibU4@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11673&group=comp.os.linux.advocacy#11673

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: 9 Mar 2024 02:12:33 GMT
Lines: 17
Message-ID: <l51usgFqgibU4@mid.individual.net>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org> <l518s7FmepqU2@mid.individual.net>
<usfv7e$13qps$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 3AAheASQh9GgDzBB3I4TiAhEuccf/LkH4n3CQpi2wbMV2A97Gd
Cancel-Lock: sha1:P7flOYkxBFpnVayVJEy/C+Ts6Zo= sha256:TMyjgivelarIwO0WO6+76bV159A9ba/BQQDwxfzvHbo=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
 by: rbowman - Sat, 9 Mar 2024 02:12 UTC

On Fri, 8 Mar 2024 15:16:29 -0600, Physfitfreak wrote:

> At one of my jobs, a printing clerk astonished me with calculating large
> multiplications in his mind, very fast. I kept asking him how he did it,
> and he always only smiled at me Every time we were bored we would begin
> a race getting the result of some multiplication in mind. Every single
> time he won of course. It was fun.

I used to be good at it but it's a definite use it or lose it skill.

I'm a Yankee by birth and even had a great something grandfather that
fought in that war under Miles but I think it was a raw deal. Leaving the
whole slavery red herring aside I am not comfortable with the Roach Motel
theory of government.

https://www.youtube.com/watch?v=jKhGHxO-woc

Re: Prog Challenge

<uslncr$16ng0$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=11793&group=comp.os.linux.advocacy#11793

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Sun, 10 Mar 2024 20:39:38 -0500
Message-ID: <uslncr$16ng0$1@solani.org>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
<17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
<17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
<17bad5a0f333db18$120726$3000918$802601b3@news.usenetexpress.com>
<usfk5n$13lc3$1@solani.org> <usfnkh$13n9o$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Mar 2024 01:39:41 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1269248"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HhFXdEXQFN5wh+YeGYlpDGJ/zaQ=
X-User-ID: eJwNxckBwDAIA7CVAtgc4xQa9h+h1Uc0F5+A08HlpuahTE5scnv97FS1Jgt37HSoNxlQ4q37Z49AKoBhgx86ohRc
Content-Language: en-US
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 240310-6, 3/10/2024), Outbound message
In-Reply-To: <usfnkh$13n9o$1@solani.org>
 by: Physfitfreak - Mon, 11 Mar 2024 01:39 UTC

On 3/8/2024 1:06 PM, Physfitfreak wrote:
> On 3/8/2024 12:07 PM, Physfitfreak wrote:
>>
>
> 4. therefore the repeating decimals will be 032258064516129
>
>
> Note that the zeros coming before non-zero digits begin, are not a case
> of zeros after radix that are _not_ part of the repeating decimals. The
> latter cases are handled by method of nines with zeros which is slightly
> different from method of nines, and I won't go into it. Those interested
> can dig it themselves.
>
>
>
>
>
>
>
>

And that's why your 1/28 couldn't be handled by your software, because I
think it requires method of nines with zeros, not the method of nines.
Whoever created that function, perhaps didn't go as far as you expected.

--
This email has been checked for viruses by Avast antivirus software.
www.avast.com

Re: Prog Challenge

<v13eps$n8g8$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=14593&group=comp.os.linux.advocacy#14593

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@dfs.com (DFS)
Newsgroups: comp.os.linux.advocacy
Subject: Re: Prog Challenge
Date: Fri, 3 May 2024 15:43:56 -0400
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <v13eps$n8g8$2@dont-email.me>
References: <17ba8df1ac0783cb$104093$1054558$802601b3@news.usenetexpress.com>
<use0es$12qgm$1@solani.org>
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
<17bad1c8e19520b7$8$821545$802601b3@news.usenetexpress.com>
<17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 03 May 2024 21:43:56 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ace002cd511ec94d2606eeef539d14a4";
logging-data="762376"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bPyqkwC68gFcC0n1vIDOD"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:3uV+auDGXrAnX43NxsvId4eplm8=
Content-Language: en-US
In-Reply-To: <17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
 by: DFS - Fri, 3 May 2024 19:43 UTC

On 3/8/2024 10:43 AM, Larry 'Nuxxie' Piet wrote:

> The result:
>
> The decimal expansion will begin with 11 digits followed
> by a repeating porion of length 54,494,498,496.
>
> This number would need 64 GiB of memory, but we could
> write it out to a file using Maxima or bc or GMP.
>
> I won't try but maybe someone else will.
>
> This kind of stuff is what a computer is for. No fucking Netflix.
> No fucking Gmail. Just this.

no gmail? idiot.

no online sports or videos? idiot.

Screw that useless, boring math twaddle. The popular trend today is
Usenet databases:

=======================================================================================
Validity Check Articles
=======================================================================================
Body 1000
Charset 1000
Content-Transfer-Encoding 888
Content-Type 1000
Date 1000
From 1000
Message-ID 1000
References 1000
Subject 1000
User-Agent 1000

New Threads 30
Replies 970

======================================================
Posting Recap
======================================================
Articles: 2690968-2692089
1000 posts were made
Start: 2024-05-03 13:02:28
End : 2024-05-03 13:02:35
6s to process 1000 posts (151 per sec)
======================================================

151 per second? Praise be to Joel!

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor