Subject: Efficient modular evaluation of large powers
From: Neilen
Date: 27 Sep 2002 00:29:19 +0200
Hi.
How can I have Maxima evaluate something like
mod(10^100000,3) efficiently? Ie, w.o. raising to the power before
applying the modulo.
I have tried setting MODULO:3, and then using rat(10^100000), but it
still seems pretty slow. Larger powers even cause core dumps... So
obviously its not using modular evaluation of the power ;)
Any hints?
Thanks
Neilen
--
all we are waiting for is something worth waiting for
--- KMFDM