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

Minimal Residue

download Mathematica trial versionMinimalResidue.nb

The minimal residue of is the value b or , whichever is smaller in absolute value, where . If (so that ), then the minimal residue is taken as . The table below illustrates the common (positive) and minimal residues for 0, 1, 2, and 3 (mod 4).

n common residue minimal residue
0 0 0
1 1 1
2 2 -2
3 3 -1

The minimal residue is implemented in Mathematica as Mod[a, m, -m/2].

Common Residue, Congruence, Modulus, Residue

Links search



cite this as
Eric W. Weisstein. "Minimal Residue." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/MinimalResidue.html



header
mathematica calculationcenter