Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>
Deutsch   English   Français   Italiano  
<17bacfe9ea8cf1b9$13872$3298354$802601b3@news.usenetexpress.com>

View for Bookmarking (what is this?)
Look up another Usenet article

From: Nuxxie <nuxxie@linux.rocks>
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: ...!weretis.net!feeder6.news.weretis.net!panix!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>
Bytes: 2015

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.