Modular Arithmetic

This visually illustrates various properties of modular arithmetic by creating an "operation table" modulo , where 0 is represented by black, 1 by white, and other values by intermediate colors. The allowed numbers can be restricted to be nonzero or the units modulo , and the operations are modular addition, subtraction, powers, and sums of squares.

(10 lines omitted)

This visual display of modular arithmetic can be used to illustrate different principles of modular arithmetic (such as the existence of additive or multiplicative inverses modulo ). Because 0 is always represented by black and 1 by white, it makes these values easy to spot in the table. For example, to determine which numbers have multiplicative inverses mod 12, you simply need to move the modulus slider to 12, the operation to times, and then determine which rows of the table have the white "1" square. By using this Demonstration, you can see a wide range of values and different operations for modular arithmetic, which is quite useful for those beginning to study algebra/number theory.
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+