Modular Arithmetic

[ Home ] [ Up ] [ Shift Substitution Cipher ] [ Breaking a Shift Substitution Cipher ] [ MonoAlphabetic Substitution Cipher ] [ The Playfair Cipher ] [ The Vigenère Cipher ] [ Factorial Utilities ] [ Simulating a Coin Toss ] [ Sieve of Eratosthenes ] [ Modular Arithmetic ] [ Message Digests ]

 

Modular Arithmetic

Below is an applet which demonstrates modular arithmetic.

Just click on its Start button to bring up the applet's frame:

Your browser does not have Java support. Please install the Java Plug-in.

Here's an image of what you should see:

If you don't see this, perhaps you don't have the Java Plug-in properly installed?

Fill in the integer value for the modulus (n), and click on the Generate button to obtain two tables:

  • One giving values for (a + b) mod n
  • One giving values for (a * b) mod n

 

This page was last changed on April 25, 2005