<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bibble.co.nz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Modular_Arithmetic</id>
	<title>Modular Arithmetic - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bibble.co.nz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Modular_Arithmetic"/>
	<link rel="alternate" type="text/html" href="https://wiki.bibble.co.nz/mediawiki/index.php?title=Modular_Arithmetic&amp;action=history"/>
	<updated>2026-04-24T10:04:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.bibble.co.nz/mediawiki/index.php?title=Modular_Arithmetic&amp;diff=11237&amp;oldid=prev</id>
		<title>Iwiseman: Created page with &quot;=Introduction= Modular arithmetic is a system of arithmetic for integers where the numbers wrap around when they reach a certain value. A good example is a clock. Once 12 is reached, the count resets. So given the set {0,1,2,3,4,5,6,7,8,9,10,11}, when 11 o&#039;clock is reached we wrap back to 0.  =Modulus= This is the *remainder* of a division.   For example: 5 mod 3 means “what is left over when 5 is divided by 3?”   5 = 3 × 1 + 2   So 5 mod 3 = 2.   The quotient (how...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.bibble.co.nz/mediawiki/index.php?title=Modular_Arithmetic&amp;diff=11237&amp;oldid=prev"/>
		<updated>2026-04-18T04:10:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Introduction= Modular arithmetic is a system of arithmetic for integers where the numbers wrap around when they reach a certain value. A good example is a clock. Once 12 is reached, the count resets. So given the set {0,1,2,3,4,5,6,7,8,9,10,11}, when 11 o&amp;#039;clock is reached we wrap back to 0.  =Modulus= This is the *remainder* of a division.   For example: 5 mod 3 means “what is left over when 5 is divided by 3?”   5 = 3 × 1 + 2   So 5 mod 3 = 2.   The quotient (how...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Introduction=&lt;br /&gt;
Modular arithmetic is a system of arithmetic for integers where the numbers wrap around when they reach a certain value. A good example is a clock. Once 12 is reached, the count resets. So given the set {0,1,2,3,4,5,6,7,8,9,10,11}, when 11 o&amp;#039;clock is reached we wrap back to 0.&lt;br /&gt;
&lt;br /&gt;
=Modulus=&lt;br /&gt;
This is the *remainder* of a division.  &lt;br /&gt;
For example: 5 mod 3 means “what is left over when 5 is divided by 3?”  &lt;br /&gt;
5 = 3 × 1 + 2  &lt;br /&gt;
So 5 mod 3 = 2.  &lt;br /&gt;
The quotient (how many full times 3 fits into 5) is 1.&lt;br /&gt;
&lt;br /&gt;
The set of all possible remainders modulo n is:&lt;br /&gt;
  ℤₙ = { 0, 1, 2, ..., n − 1 }&lt;br /&gt;
&lt;br /&gt;
=Arithmetic=&lt;br /&gt;
All operations are done normally, then wrapped using mod n:&lt;br /&gt;
* Addition:      (a + b) mod n&lt;br /&gt;
* Subtraction:   (a − b) mod n&lt;br /&gt;
* Multiplication: (a × b) mod n&lt;br /&gt;
&lt;br /&gt;
=Congruence=&lt;br /&gt;
Two integers a and b are congruent modulo n if they have the *same remainder* when divided by n.&lt;br /&gt;
&lt;br /&gt;
  a ≡ b (mod n)&lt;br /&gt;
&lt;br /&gt;
Example:  &lt;br /&gt;
12 − 7 = 5  &lt;br /&gt;
Now look at everything mod 5:&lt;br /&gt;
&lt;br /&gt;
  2 mod 5 = 2  &lt;br /&gt;
  7 mod 5 = 2  &lt;br /&gt;
  12 mod 5 = 2  &lt;br /&gt;
  17 mod 5 = 2  &lt;br /&gt;
&lt;br /&gt;
So:&lt;br /&gt;
  2 ≡ 7 ≡ 12 ≡ 17 (mod 5)&lt;/div&gt;</summary>
		<author><name>Iwiseman</name></author>
	</entry>
</feed>