Wolfram Researchmathworld.wolfram.comOther Wolfram Sites
Search Site

INDEX
Algebra
Applied Mathematics
Calculus and Analysis
Discrete Mathematics
Foundations of Mathematics
Geometry
History and Terminology
Number Theory
Probability and Statistics
Recreational Mathematics
Topology
Alphabetical Index

ABOUT THIS SITE
About MathWorld
About the Author
Terms of Use

DESTINATIONS
What's New
Headline News (RSS)
Random Entry
Animations
Live 3D Graphics

CONTACT
Email Comments
Contribute!
Sign the Guestbook

MATHWORLD - IN PRINT
Order book from Amazon

Modular Arithmetic

Portions of this entry contributed by Matt Insall (author's link)

Modular arithmetic is the arithmetic of congruences, sometimes known informally as "clock arithmetic." In modular arithmetic, numbers "wrap around" upon reaching a given fixed quantity, which is known as the modulus (which would be 12 in the case of hours on a clock, or 60 in the case of minutes or seconds on a clock).

Formally, modular arithmetic is the arithmetic of any nontrivial homomorphic image of the ring of integers. For any such homomorphic image of , there is an integer n such that R is isomorphic to the ring of integers modulo n. The addition in the ring is determined from addition in by computing the remainder, upon division by n, of the sum of two integers a and b. Similarly, for multiplication in the ring , one multiplies two integers a and b, and computes the remainder upon division of ab by n.

For each positive integer n, the ring has n elements, namely the equivalence classes of each of the nonnegative integers less than n, under the equivalence relation R that is defined according to the rule aRb iff n divides . It is natural and common to denote the equivalence class (under the equivalence relation R) of a nonnegative integer a < n by a.

For example, in arithmetic modulo 12 (for which the associated ring is ), the allowable numbers are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 11. This arithmetic is sometimes referred to as "clock arithmetic" because the additive structure here is the same as that used to determine times for a twelve-hour clock, except that 0 is often replaced, on a clock, by 12. Example calculations in arithmetic modulo 12 include statements like "11 + 1 = 0", or "7 + 8 = 3", or "," although the equal sign is commonly replaced with the congruence sign in such statements to indicate that modular arithmetic is being used. More explicitly still, a notation such as


is frequently used.

Arithmetic modulo 2 is sometimes referred to as "Boolean arithmetic", because the ring is the canonical example of a Boolean ring.

Boolean Ring, Congruence, Modulus, Residue

Links search



cite this as
Eric W. Weisstein et al. "Modular Arithmetic." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/ModularArithmetic.html



header
mathematica calculationcenter