Sujet : Re: Prog Challenge
De : nuxxie (at) *nospam* linux.rocks (Nuxxie)
Groupes : comp.os.linux.advocacyDate : 08. Mar 2024, 17:43:54
Autres entêtes
Organisation : UsenetExpress - www.usenetexpress.com
Message-ID : <17bad47b58d27fdc$49069$1507308$802601b3@news.usenetexpress.com>
References : 1 2 3 4
User-Agent : Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
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.