play and relax: games for kids games
  Cut the knot: learn to enjoy mathematics
A math books store at a unique math study site. Learn to enjoy mathematics.
Google
Web CTK
Try our no ads browsing

Best sites for teachers
Sites for teachers
Sites for parents
Terms of use
Awards

Interactive Activities
CTK Exchange
CTK Insights - a blog

Games & Puzzles
What Is What
Arithmetic/Algebra
Geometry
Probability
Outline Mathematics
Make an Identity
Book Reviews
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
Visual Illusions
My Logo
Math Poll
Cut The Knot!
MSET99 Talk
Other Math sites
Front Page
Movie shortcuts
Personal info
Privacy Policy

Guest book
News sites

Recommend this site

Best sites for teachers
Sites for teachers
Sites for parents

Education & Parenting

Manifesto: what CTK is about Buying a book is a commitment to learning Table of content Try our no ads browsing Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

Modular Arithmetic

Differences and Similarities

Modular arithmetic is very similar to the Arithmetic we are so much used to. In line with the Sylvester's pronouncement, let's write down for the record the differences and similarities found between Euclidean (regular) and Gaussian (modulo) arithmetic.

Differences

  1. Numbers

    Euclidean arithmetic operates on infinite set of all integers; Gaussian only works with finite sets {0,1,...,N-1} (or with sets of residue classes.)

  2. ab = 0

    In usual arithmetic, ab = 0 is only possible when either a or b is zero. In Gaussian case we have, e.g., 2×3 = 0 (mod 6), whereas neither 2 = 0 (mod 6) nor 3 = 0 (mod 6). 2 and 3 are zero divisors in the arithmetic modulo 6. Euclidean arithmetic has no zero divisors.

    Arithmetic modulo a prime, too, has no zero divisors.

  3. Polynomial roots

    Fundamental Theorem of Algebra implies that every polynomial of order n over the field C of complex numbers has exactly n roots. In the Gaussian arithmetic all depends on a polynomial. For example, in modulo arithmetic even linear equations may behave unexpectedly:

    3x + 1 = 0 (mod 5) has a unique (mod 5) solution 3,
    3x + 1 = 0 (mod 6) has no solution (mod 6)
    3x - 6 = 0 (mod 9) has three solution (mod 6): 2,5, and 8

  4. Simultaneous linear equations

    As is demonstrated by the Chinese Remainder Theorem, in the Gaussian arithmetic linear simultaneous equations may have a number of solutions. Analogous situation in the usual arithmetic the only alternatives are a single solution (when all the equations are multiples of each other) or no solutions at all.

  5. Multiplicative inverse

    In Euclidean arithmetic no integer (except 1) has an inverse. In arithmetic modulo a prime number p, every non-zero number has an inverse.

Similarities

But of course there is a good deal of similarity between the two arithmetic. Most important, for both addition and multiplication all the basic properties are preserved:

  1. Commutativity

    a + b = b + a, a × b = b × a

  2. Associativity

    a + (b + c) = (a + b) + c, a × (b × c) = (a × b) × c

  3. Distributivity

    (a + b) × c = a×c + b×c

  4. Zero element

    0 + a = a

  5. Unit element

    1 × a = a

  6. Additive inverse

    a + (-a) = 0

  7. Euclid's common notions

    a = b implies a + c = b + c (and a × c = b × c)

  8. Factoring

    If a polynomial equation f(x) = 0 has a root a then f(x) = (x-a)g(x) for some other polynomial g.

Copyright © 1996-2008 Alexander Bogomolny

29706877Page copy protected against web site content infringement by Copyscape


Search:
Keywords:


Latest on CTK Exchange
try this puzzle ?/?? + ?/?? + ?/? ...
Posted by albert1950
2 messages
03:40 PM, Aug-26-08

Numbers raised to the power of 0
Posted by Chris Tolley
20 messages
12:17 PM, Aug-25-08

Arbelos : 1) Geometrical Construc ...
Posted by Sundar Krishnan
12 messages
06:29 AM, Aug-12-08

concerning pi
Posted by Lloyd Marks
4 messages
08:25 AM, Aug-22-08

Triangles With Equal Area
Posted by Bui Quang Tuan
5 messages
07:20 PM, Aug-26-08

Coxeter Introduction to Geometry
Posted by WiZaRd
1 messages
09:15 AM, Aug-23-08

site questions
Posted by madisonv
2 messages
04:24 PM, Aug-26-08