The Modular Exponentiation can be carried out efficiently through
The Java applet below makes use of the
and thus should handle arbitrarily large integers.
If you find a case in which the applet fails to function or gives
erroneous results, please send me the values of the
which you entered and the contents of your Java console.
My modest goal is to have this applet run reliably and accurately.
06/30/2009: This applet had been updated to handle negative exponents. Please email me when any errors or suspicious outputs occur.