Modular arithmetic: Difference between revisions

Content deleted Content added
m added nbsp
Tags: Mobile edit Mobile app edit iOS app edit App section source
m Congruence: changing a hyphen to a minus sign
Line 24:
where {{math|0 ≤ ''r'' < ''m''}} is the common remainder. We recover the previous relation ({{math|1=''a'' − ''b'' = ''k m''}}) by subtracting these two expressions and setting {{math|1=''k'' = ''p'' − ''q''.}}
 
Because the congruence modulo {{mvar|m}} is defined by the [[Divisor#Further notions and facts|divisibility]] by {{mvar|m}} and because {{math|-1−1}} is a [[Unit (ring theory)#Integer ring|unit]] in the ring of integers, a number is divisible by {{math|-''m''}} exactly if it is divisible by {{mvar|m}}.
This means that every non-zero integer {{mvar|m}} may be taken as modulus.
=== Examples ===