Calculator: http://math.uga.edu/~bjones/calc/

Tips for using the online modular arithmetic calculator

Try entering things like:
  1. 13^670 mod 59
    (this will evaluate 13 to the 670-th power (mod 59)
  2. 2^65   mod 11
    (this will evaluate 2 to the 65-th power (mod 11)
  3. 1681 mod 5
    (this will "reduce" the number 1681 (mod 5))
  4. 8*9 mod 11 
    (this will evaluate the product of 8 and 9 (mod 11)
  5. 2+29 mod 13 

Click on the trash can to clear the entry area. You can also click on "clear history" to clear your previous calculations from the ticker tape.

This calculator can only do a limited number of things. In general it can add (+), multiply (*), and take powers (^) in modular arithmetic (by specifying "mod n" after your intended calculation).

This calculator is not smart enough to handle negative numbers. Please reduce "mod n" before using a negative number as input.

Be aware that the calculator can't handle multiple operations at once. If you attempt to do something like "8 + 9 * 11^45 mod 14" you will get bad results.

The calculator uses the BigInteger javascript package (v.5.0) created by Leemon Baird: http://www.leemon.com/crypto/BigInt.html. The CSS class and basic javascript framework is due to Stefan Linecker.