<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lila</id>
	<title>Department of Mathematics at UTSA - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lila"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Special:Contributions/Lila"/>
	<updated>2026-04-15T05:45:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4062</id>
		<title>Abstract Algebra: Groups</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4062"/>
		<updated>2021-11-19T20:28:14Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Cancellation Law */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;Recall that an operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be associative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be commutative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = b \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;An element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the identity element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can now begin to describe our first type of algebraic structures known as groups, which are a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; equipped with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is associative, contains an identity element, and contains inverse elements under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; A &amp;lt;strong&amp;gt;Group&amp;lt;/strong&amp;gt; is a pair &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a binary operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with the following properties:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (Associativity of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; There exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of an Identity Element).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;3.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of inverses).&amp;lt;br /&amp;gt;&lt;br /&gt;
Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a finite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be a &amp;lt;strong&amp;gt;Finite Group&amp;lt;/strong&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an infinite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be an &amp;lt;strong&amp;gt;Infinite Group&amp;lt;/strong&amp;gt;. More generally, the &amp;lt;strong&amp;gt;Order of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt; (or **Size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) is the size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and is denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;| G |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;When we use the multiplication symbol &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to denote the operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; a “multiplicative group”. When the operation of the group is instead denoted by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) then we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; an “additive group”, and we write the inverse of each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Some of the sets and binary operations we have already seen can be considered groups. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{R}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group under standard addition &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the sum of any two real numbers is a real number, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, is associative, an additive identity &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and inverse elements exist for every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (namely &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Furthermore, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is also a group under the operation of standard addition since the sum of any two integers is an integer, addition is associative, the additivity identity is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as additive inverses.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will examine many other (more interesting) groups later on, but for now, let's look at an example of a set and a binary operation that does NOT form a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
===Example 1===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the set of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and define &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * b = a + 2b \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;(Where the &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on the righthand side is usual addition of numbers). We will show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, *)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is NOT a group by showing that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative since:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * (b * c) = a * (b + 2c) = a + 2(b + 2c) = a + 2b + 4c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a * b) * c = (a + 2b) * c = (a + 2b) + 2c = a + 2b + 2c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Clearly &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a * (b * c) \neq (a * b) * c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does not form a group under the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Theorems Regarding Groups==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that a group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;1)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is associative, i.e., for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;2)&amp;lt;/strong&amp;gt; There exists an identity element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a = e \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;3)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some rather basic results regarding groups which we can derive from the group axioms above.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Proposition 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a group and let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be the identity for this group. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; The identity element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the corresponding inverse &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a^{-1})^{-1} = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)^{-1} = b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = b^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;f)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^2 = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e'&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are both identities for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad e = e \cdot e = e \cdot e' = e' \cdot e' = e' \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e = e'&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so the identity for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of b)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1'} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are both inverses for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a^{-1} = a^{-1} \cdot e = a^{-1} \cdot (a \cdot a^{-1'}) = (a^{-1} \cdot a)*a^{-1} = e \cdot a^{-1'} = a^{-1'} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} = a^{-1'}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so the inverse for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a^{-1})^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the inverse to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. However, the inverse to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and by (b) we have shown that the inverse of each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = (a^{-1})^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d)&amp;lt;/strong&amp;gt; If we apply the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a \cdot b) \cdot [b^{-1} \cdot a^{-1}] &amp;amp; = a \cdot [(b \cdot b^{-1}) \cdot a^{-1}] \\ \quad &amp;amp;= a \cdot [e \cdot a^{-1}] \\ \quad &amp;amp;= a \cdot a^{-1} \\ \quad &amp;amp;= e \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We also have that the invere of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. By (b), the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a \cdot b)^{-1} = b^{-1} \cdot a^{-1} \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= e \\ \quad (a \cdot b) \cdot b^{-1} &amp;amp;= e \cdot b^{-1} \\ \quad a \cdot (b \cdot b^{-1}) &amp;amp;= b^{-1} \\ \quad a \cdot e &amp;amp;= b^{-1} \\ \quad a &amp;amp;= b^{-1} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Similarly:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= e \\ \quad a^{-1} \cdot (a \cdot b) &amp;amp;= a^{-1} \cdot e \\ \quad (a^{-1} \cdot a) \cdot b &amp;amp;= a^{-1} \\ \quad e \cdot b &amp;amp;= a^{-1} \\ \quad b &amp;amp;= a^{-1} \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of f)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^2 = a \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a^2 &amp;amp;= a \\ \quad a \cdot a &amp;amp;= a \\ \quad a^{-1} \cdot (a \cdot a) &amp;amp;= a^{-1} \cdot a \\ \quad (a^{-1} \cdot a) \cdot a &amp;amp;= e \\ \quad e \cdot a &amp;amp;= e \\ \quad a &amp;amp;= e \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Hence &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Alternatively we see that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with respect to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Multiplying both sides of this equation by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; gives us that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Cancellation Law==&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at another important property of groups called the cancellation law.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Cancellation Law for Groups):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a group and let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denote the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= a \cdot c \\ \quad (a^{-1} \cdot a) \cdot b &amp;amp;= (a^{-1} \cdot a) \cdot c \\ \quad e \cdot b &amp;amp;= e \cdot c \\ \quad b &amp;amp;= c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Similarly, suppose now that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad b \cdot a &amp;amp;= c \cdot a \\ \quad (b \cdot a) \cdot a^{-1} &amp;amp;= (c \cdot a) \cdot a^{-1} \\ \quad b \cdot (a \cdot a^{-1}) &amp;amp;= c \cdot (a \cdot a^{-1}) \\ \quad b \cdot e &amp;amp;= c \cdot e \\ \quad b &amp;amp;= c \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is very important to note that the cancellation law holds with regards to the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We will see that the cancellation law does not necessarily hold with respect to an operation on a set when we look at algebraic structures with two defined operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is also important to note that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we cannot necessarily deduce that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; because we would then require the additional property that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is commutative which is not one of the group axioms (but instead one of the Abelian group axioms).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4061</id>
		<title>Abstract Algebra: Groups</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4061"/>
		<updated>2021-11-19T20:05:01Z</updated>

		<summary type="html">&lt;p&gt;Lila: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;Recall that an operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be associative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be commutative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = b \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;An element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the identity element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can now begin to describe our first type of algebraic structures known as groups, which are a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; equipped with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is associative, contains an identity element, and contains inverse elements under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; A &amp;lt;strong&amp;gt;Group&amp;lt;/strong&amp;gt; is a pair &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a binary operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with the following properties:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (Associativity of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; There exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of an Identity Element).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;3.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of inverses).&amp;lt;br /&amp;gt;&lt;br /&gt;
Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a finite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be a &amp;lt;strong&amp;gt;Finite Group&amp;lt;/strong&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an infinite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be an &amp;lt;strong&amp;gt;Infinite Group&amp;lt;/strong&amp;gt;. More generally, the &amp;lt;strong&amp;gt;Order of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt; (or **Size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) is the size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and is denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;| G |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;When we use the multiplication symbol &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to denote the operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; a “multiplicative group”. When the operation of the group is instead denoted by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) then we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; an “additive group”, and we write the inverse of each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Some of the sets and binary operations we have already seen can be considered groups. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{R}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group under standard addition &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the sum of any two real numbers is a real number, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, is associative, an additive identity &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and inverse elements exist for every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (namely &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Furthermore, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is also a group under the operation of standard addition since the sum of any two integers is an integer, addition is associative, the additivity identity is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as additive inverses.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will examine many other (more interesting) groups later on, but for now, let's look at an example of a set and a binary operation that does NOT form a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
===Example 1===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the set of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and define &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * b = a + 2b \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;(Where the &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on the righthand side is usual addition of numbers). We will show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, *)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is NOT a group by showing that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative since:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * (b * c) = a * (b + 2c) = a + 2(b + 2c) = a + 2b + 4c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a * b) * c = (a + 2b) * c = (a + 2b) + 2c = a + 2b + 2c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Clearly &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a * (b * c) \neq (a * b) * c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does not form a group under the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Basic Theorems Regarding Groups==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that a group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;1)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is associative, i.e., for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;2)&amp;lt;/strong&amp;gt; There exists an identity element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a = e \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;3)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some rather basic results regarding groups which we can derive from the group axioms above.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Proposition 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a group and let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be the identity for this group. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; The identity element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the corresponding inverse &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a^{-1})^{-1} = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)^{-1} = b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = b^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;f)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^2 = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e'&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are both identities for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad e = e \cdot e = e \cdot e' = e' \cdot e' = e' \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e = e'&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so the identity for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of b)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1'} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are both inverses for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a^{-1} = a^{-1} \cdot e = a^{-1} \cdot (a \cdot a^{-1'}) = (a^{-1} \cdot a)*a^{-1} = e \cdot a^{-1'} = a^{-1'} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} = a^{-1'}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so the inverse for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a^{-1})^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the inverse to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. However, the inverse to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and by (b) we have shown that the inverse of each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = (a^{-1})^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d)&amp;lt;/strong&amp;gt; If we apply the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a \cdot b) \cdot [b^{-1} \cdot a^{-1}] &amp;amp; = a \cdot [(b \cdot b^{-1}) \cdot a^{-1}] \\ \quad &amp;amp;= a \cdot [e \cdot a^{-1}] \\ \quad &amp;amp;= a \cdot a^{-1} \\ \quad &amp;amp;= e \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b^{-1} \cdot a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We also have that the invere of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. By (b), the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a \cdot b)^{-1} = b^{-1} \cdot a^{-1} \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= e \\ \quad (a \cdot b) \cdot b^{-1} &amp;amp;= e \cdot b^{-1} \\ \quad a \cdot (b \cdot b^{-1}) &amp;amp;= b^{-1} \\ \quad a \cdot e &amp;amp;= b^{-1} \\ \quad a &amp;amp;= b^{-1} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Similarly:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= e \\ \quad a^{-1} \cdot (a \cdot b) &amp;amp;= a^{-1} \cdot e \\ \quad (a^{-1} \cdot a) \cdot b &amp;amp;= a^{-1} \\ \quad e \cdot b &amp;amp;= a^{-1} \\ \quad b &amp;amp;= a^{-1} \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of f)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^2 = a \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a^2 &amp;amp;= a \\ \quad a \cdot a &amp;amp;= a \\ \quad a^{-1} \cdot (a \cdot a) &amp;amp;= a^{-1} \cdot a \\ \quad (a^{-1} \cdot a) \cdot a &amp;amp;= e \\ \quad e \cdot a &amp;amp;= e \\ \quad a &amp;amp;= e \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Hence &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Alternatively we see that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with respect to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Multiplying both sides of this equation by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; gives us that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Cancellation Law==&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at another important property of groups called the cancellation law.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Cancellation Law for Groups):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a group and let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denote the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= a \cdot c \\ \quad (a^{-1} \cdot a) \cdot b &amp;amp;= (a^{-1} \cdot a) \cdot c \\ \quad e \cdot b &amp;amp;= e \cdot c \\ \quad b &amp;amp;= c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Similarly, suppose now that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad b \cdot a &amp;amp;= c \cdot a \\ \quad (b \cdot a) \cdot a^{-1} &amp;amp;= (c \cdot a) \cdot a^{-1} \\ \quad b \cdot (a \cdot a^{-1}) &amp;amp;= c \cdot (a \cdot a^{-1}) \\ \quad b \cdot e &amp;amp;= c \cdot e \\ \quad b &amp;amp;= c \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is very important to note that the cancellation law holds with regards to the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We will see that the cancellation law does not necessarily hold with respect to an operation on a set when we look at algebraic structures with two defined operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is also important to note that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we cannot necessarily deduce that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; because we would then require the additional property that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is commutative which is not one of the group axioms (but instead one of the Abelian group axioms).&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4060</id>
		<title>Abstract Algebra: Groups</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4060"/>
		<updated>2021-11-19T19:57:47Z</updated>

		<summary type="html">&lt;p&gt;Lila: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;Recall that an operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be associative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be commutative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = b \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;An element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the identity element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can now begin to describe our first type of algebraic structures known as groups, which are a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; equipped with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is associative, contains an identity element, and contains inverse elements under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; A &amp;lt;strong&amp;gt;Group&amp;lt;/strong&amp;gt; is a pair &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a binary operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with the following properties:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (Associativity of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; There exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of an Identity Element).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;3.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of inverses).&amp;lt;br /&amp;gt;&lt;br /&gt;
Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a finite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be a &amp;lt;strong&amp;gt;Finite Group&amp;lt;/strong&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an infinite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be an &amp;lt;strong&amp;gt;Infinite Group&amp;lt;/strong&amp;gt;. More generally, the &amp;lt;strong&amp;gt;Order of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt; (or **Size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) is the size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and is denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;| G |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;When we use the multiplication symbol &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to denote the operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; a “multiplicative group”. When the operation of the group is instead denoted by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) then we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; an “additive group”, and we write the inverse of each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Some of the sets and binary operations we have already seen can be considered groups. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{R}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group under standard addition &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the sum of any two real numbers is a real number, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, is associative, an additive identity &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and inverse elements exist for every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (namely &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Furthermore, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is also a group under the operation of standard addition since the sum of any two integers is an integer, addition is associative, the additivity identity is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as additive inverses.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will examine many other (more interesting) groups later on, but for now, let's look at an example of a set and a binary operation that does NOT form a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
===Example 1===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the set of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and define &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * b = a + 2b \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;(Where the &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on the righthand side is usual addition of numbers). We will show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, *)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is NOT a group by showing that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative since:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * (b * c) = a * (b + 2c) = a + 2(b + 2c) = a + 2b + 4c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a * b) * c = (a + 2b) * c = (a + 2b) + 2c = a + 2b + 2c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Clearly &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a * (b * c) \neq (a * b) * c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does not form a group under the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Cancellation Law===&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at another important property of groups called the cancellation law.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Cancellation Law for Groups):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a group and let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denote the inverse of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a \cdot b &amp;amp;= a \cdot c \\ \quad (a^{-1} \cdot a) \cdot b &amp;amp;= (a^{-1} \cdot a) \cdot c \\ \quad e \cdot b &amp;amp;= e \cdot c \\ \quad b &amp;amp;= c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Similarly, suppose now that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad b \cdot a &amp;amp;= c \cdot a \\ \quad (b \cdot a) \cdot a^{-1} &amp;amp;= (c \cdot a) \cdot a^{-1} \\ \quad b \cdot (a \cdot a^{-1}) &amp;amp;= c \cdot (a \cdot a^{-1}) \\ \quad b \cdot e &amp;amp;= c \cdot e \\ \quad b &amp;amp;= c \quad \blacksquare \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is very important to note that the cancellation law holds with regards to the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We will see that the cancellation law does not necessarily hold with respect to an operation on a set when we look at algebraic structures with two defined operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It is also important to note that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = c \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \cdot a = a \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we cannot necessarily deduce that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; because we would then require the additional property that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is commutative which is not one of the group axioms (but instead one of the Abelian group axioms).&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4059</id>
		<title>Abstract Algebra: Groups</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Groups&amp;diff=4059"/>
		<updated>2021-11-19T19:40:50Z</updated>

		<summary type="html">&lt;p&gt;Lila: Created page with &amp;quot;&amp;lt;p&amp;gt;Recall that an operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be associative if for all &amp;lt;span c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p&amp;gt;Recall that an operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be associative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be commutative if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot b = b \cdot a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;An element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the identity element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can now begin to describe our first type of algebraic structures known as groups, which are a set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; equipped with a binary operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is associative, contains an identity element, and contains inverse elements under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for each element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; A &amp;lt;strong&amp;gt;Group&amp;lt;/strong&amp;gt; is a pair &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a set and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a binary operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with the following properties:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot (b \cdot c) = (a \cdot b) \cdot c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (Associativity of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; There exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot e = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;e \cdot a = a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of an Identity Element).&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;3.&amp;lt;/strong&amp;gt; For all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; there exists an &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \cdot a^{-1} = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1} \cdot a = e&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (The existence of inverses).&amp;lt;br /&amp;gt;&lt;br /&gt;
Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a finite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be a &amp;lt;strong&amp;gt;Finite Group&amp;lt;/strong&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an infinite set then the group &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be an &amp;lt;strong&amp;gt;Infinite Group&amp;lt;/strong&amp;gt;. More generally, the &amp;lt;strong&amp;gt;Order of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt; (or **Size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(G, \cdot)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) is the size of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and is denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;| G |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;When we use the multiplication symbol &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to denote the operation on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; a “multiplicative group”. When the operation of the group is instead denoted by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\cdot&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) then we often call &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; an “additive group”, and we write the inverse of each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in G&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (instead of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a^{-1}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Some of the sets and binary operations we have already seen can be considered groups. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{R}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group under standard addition &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the sum of any two real numbers is a real number, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, is associative, an additive identity &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and inverse elements exist for every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (namely &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{R}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Furthermore, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is also a group under the operation of standard addition since the sum of any two integers is an integer, addition is associative, the additivity identity is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-a \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as additive inverses.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will examine many other (more interesting) groups later on, but for now, let's look at an example of a set and a binary operation that does NOT form a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
===Example 1===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the set of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and define &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * b = a + 2b \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;(Where the &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on the righthand side is usual addition of numbers). We will show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}, *)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is NOT a group by showing that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not associative since:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a * (b * c) = a * (b + 2c) = a + 2(b + 2c) = a + 2b + 4c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad (a * b) * c = (a + 2b) * c = (a + 2b) + 2c = a + 2b + 2c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Clearly &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a * (b * c) \neq (a * b) * c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does not form a group under the operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4058</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4058"/>
		<updated>2021-11-19T18:38:48Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Licensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp; = &amp;amp; {[4 + 2]} \\ {} &amp;amp; = &amp;amp; {[6]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp; = &amp;amp; {[9 + 7]} \\ {} &amp;amp; = &amp;amp; {[16]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;br /&gt;
* [https://math.libretexts.org/Bookshelves/Mathematical_Logic_and_Proof/Book%3A_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7%3A_Equivalence_Relations/7.4%3A_Modular_Arithmetic Modular Arithmetic, LibreTexts: Mathematics] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4057</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4057"/>
		<updated>2021-11-19T18:03:41Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp; = &amp;amp; {[4 + 2]} \\ {} &amp;amp; = &amp;amp; {[6]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp; = &amp;amp; {[9 + 7]} \\ {} &amp;amp; = &amp;amp; {[16]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Now, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4056</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4056"/>
		<updated>2021-11-19T18:01:16Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp; = &amp;amp; {[4 + 2]} \\ {} &amp;amp; = &amp;amp; {[6]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp; = &amp;amp; {[9 + 7]} \\ {} &amp;amp; = &amp;amp; {[16]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4055</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4055"/>
		<updated>2021-11-19T17:59:25Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp; = &amp;amp; {[4 + 2]} \\ {} &amp;amp; = &amp;amp; {[6]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp; = &amp;amp; {[9 + 7]} \\ {} &amp;amp; = &amp;amp; {[16]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tbody&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4054</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4054"/>
		<updated>2021-11-19T17:57:05Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp; = &amp;amp; {[4 + 2]} \\ {} &amp;amp; = &amp;amp; {[6]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp; = &amp;amp; {[9 + 7]} \\ {} &amp;amp; = &amp;amp; {[16]} \\ {} &amp;amp; = &amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tbody&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Theorem_3.28&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Theorem 3.28&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
    &amp;lt;dt&amp;gt;&amp;lt;strong class=&amp;quot;emphasis bold&amp;quot;&amp;gt;Proof&amp;lt;/strong&amp;gt;&amp;lt;/dt&amp;gt;&lt;br /&gt;
    &amp;lt;dd&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Add proof here and it will automatically be hidden &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Corollary_7.19.&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Corollary 7.19.&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4053</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4053"/>
		<updated>2021-11-19T17:55:05Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[4] \oplus [2]} &amp;amp;amp;= &amp;amp;amp; {[4 + 2]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[6]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;\begin{array} {rcl} {[9] \oplus [7]} &amp;amp;amp;= &amp;amp;amp; {[9 + 7]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[16]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[1].} \end{array}&amp;lt;/math&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tbody&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Theorem_3.28&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Theorem 3.28&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
    &amp;lt;dt&amp;gt;&amp;lt;strong class=&amp;quot;emphasis bold&amp;quot;&amp;gt;Proof&amp;lt;/strong&amp;gt;&amp;lt;/dt&amp;gt;&lt;br /&gt;
    &amp;lt;dd&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Add proof here and it will automatically be hidden &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Corollary_7.19.&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Corollary 7.19.&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4052</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4052"/>
		<updated>2021-11-19T17:52:17Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. Since the relation of congruence modulo n is an equivalence relation on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, we can discuss its equivalence classes. Recall that in this situation, we refer to the equivalence classes as congruence classes.&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
Definition of the integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;: Let &amp;lt;math&amp;gt;n \in \N&amp;lt;/math&amp;gt;. The set of congruence classes for the relation of congruence modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is the set of &amp;lt;strong&amp;gt;integers modulo &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/strong&amp;gt;, or the set of integers mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;. We will denote this set of congruence classes by &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z = [0] \cup [1] \cup [2] \cup \cdot\cdot\cdot \cup [n - 1]&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In addition, we know that each integer is congruent to precisely one of the integers 0, 1, 2, ..., &amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;. This tells us that one way to represent &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Z_n = \{[0], [1], [2], ... [n - 1]\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Consequently, even though each integer has a congruence class, the set &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; has only &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; distinct congruence classes.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The set of integers &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is more than a set. We can add and multiply integers. That is, there are the arithmetic operations of addition and multiplication on the set &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;, and we know that &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt; is closed with respect to these two operations.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;One of the basic problems dealt with in modern algebra is to determine if the arithmetic operations on one set &amp;amp;ldquo;transfer&amp;amp;rdquo; to a related set. In this case, the related set is &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;. For example, in the integers modulo 5, &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt;, is it possible to add the congruence classes [4] and [2] as follows?&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;\[\begin{array} {rcl} {[4] \oplus [2]} &amp;amp;amp;= &amp;amp;amp; {[4 + 2]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[6]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[1].} \end{array}\]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;We have used the symbol &amp;amp;#778; to denote addition in &amp;lt;math&amp;gt;\Z_5&amp;lt;/math&amp;gt; so that we do not confuse it with addition in &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;. This looks simple enough, but there is a problem. The congruence classes [4] and [2] are not numbers, they are infinite sets. We have to make sure that we get the same answer no matter what element of [4] we use and no matter what element of [2] we use. For example,&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;math&amp;gt;9 \equiv 4&amp;lt;/math&amp;gt; (mod 5) and so [9] = [4]. Also,&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;7 \equiv 2&amp;lt;/math&amp;gt; (mod 5) and so [7] = [2].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Do we get the same result if we add [9] and [7] in the way we did when we added [4] and [2]? The following computation confirms that we do:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;\[\begin{array} {rcl} {[9] \oplus [7]} &amp;amp;amp;= &amp;amp;amp; {[9 + 7]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[16]} \\ {} &amp;amp;amp;= &amp;amp;amp; {[1].} \end{array}\]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;This is one of the ideas that was explored in Preview Activity &amp;lt;math&amp;gt;\PageIndex{1}&amp;lt;/math&amp;gt;. The main difference is that in this preview activity, we used the relation of congruence, and here we are using congruence classes. All of the examples in Preview Activity &amp;lt;math&amp;gt;\PageIndex{1}&amp;lt;/math&amp;gt; should have illustrated the properties of congruence modulo 6 in the following table. The left side shows the properties in terms of the congruence relation and the right side shows the properties in terms of the congruence classes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;mt-responsive-table&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tbody&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;a \equiv 3&amp;lt;/math&amp;gt; (mod 6) and &amp;lt;math&amp;gt;b \equiv 4&amp;lt;/math&amp;gt; (mod 6), then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + b) \equiv (3 + 4)&amp;lt;/math&amp;gt; (mod 6);&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a \cdot b) \equiv (3 \cdot 4)&amp;lt;/math&amp;gt; (mod 6).&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td class=&amp;quot;mt-noheading lt-math-7078&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;p&amp;gt;If &amp;lt;math&amp;gt;[a] = [3]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[b] = [4]&amp;lt;/math&amp;gt; in &amp;lt;math&amp;gt;\Z_6&amp;lt;/math&amp;gt;, then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;ul&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a + b] = [3 + 4]&amp;lt;/math&amp;gt;;&amp;lt;/li&amp;gt;&lt;br /&gt;
                &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;&amp;lt;math&amp;gt;[a \cdot b] = [3 \cdot 4]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
            &amp;lt;/ul&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
        &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;/tbody&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;These are illustrations of general properties that we have already proved in Theorem 3.28. We repeat the statement of the theorem here because it is so important for defining the operations of addition and multiplication in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Theorem_3.28&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Theorem 3.28&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;(a + c) \equiv (b + d)&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;c \equiv d&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;), then &amp;lt;math&amp;gt;ac \equiv bd&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;a \equiv b&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;a^m \equiv b^m&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;).&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
    &amp;lt;dt&amp;gt;&amp;lt;strong class=&amp;quot;emphasis bold&amp;quot;&amp;gt;Proof&amp;lt;/strong&amp;gt;&amp;lt;/dt&amp;gt;&lt;br /&gt;
    &amp;lt;dd&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Add proof here and it will automatically be hidden &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Since &amp;lt;math&amp;gt;x \equiv y&amp;lt;/math&amp;gt; (mod &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;) if and only if &amp;lt;math&amp;gt;[x] = [y]&amp;lt;/math&amp;gt;, we can restate the result of this Theorem 3.28 in terms of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;box-definition&amp;quot;&amp;gt;&amp;lt;div mt-section-origin=&amp;quot;Bookshelves/Mathematical_Logic_and_Proof/Book:_Mathematical_Reasoning__Writing_and_Proof_(Sundstrom)/7:_Equivalence_Relations/7.4:_Modular_Arithmetic&amp;quot; class=&amp;quot;mt-section&amp;quot;&amp;gt;&amp;lt;span id=&amp;quot;Corollary_7.19.&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;h5 class=&amp;quot;box-legend lt-math-7078 editable&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;lt-icon-default&amp;quot;&amp;gt;Corollary 7.19.&amp;lt;/span&amp;gt;&amp;lt;/h5&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Let &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; be a natural number and let &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; be integers. Then, in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a + c] = [b + d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;[c] = [d]&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a \cdot c] = [b \cdot d]&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
    &amp;lt;li class=&amp;quot;lt-math-7078&amp;quot;&amp;gt;If &amp;lt;math&amp;gt;[a] = [b]&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m \in \N&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;[a]^m = [b]^m&amp;lt;/math&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Because of Corollary 7.19, we know that the following formal definition of addition and multiplication of congruence classes in &amp;lt;math&amp;gt;\Z_n&amp;lt;/math&amp;gt; is independent of the choice of the elements we choose from each class. We say that these definitions of addition and multiplication are &amp;lt;strong&amp;gt;well defined&amp;lt;/strong&amp;gt;. &amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4051</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4051"/>
		<updated>2021-11-19T17:40:36Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebra on \Z_m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at the additive group of integers modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}/n\mathbb{Z} = \{ 0, 1, 2, ..., n - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For each of these groups, define the operation of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x, y \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to equal &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y \pmod n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; (where the righthand &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denotes usual addition).&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The operation &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; above has a very nice interpretation. For any &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we can interpret the operation of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; by considering a circle numbered &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; through &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n - 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; clockwise, starting at &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and then traveling clockwise around the circle a distance of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; to get &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as illustrated in the following diagram:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;image-container aligncenter&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;http://mathonline.wdfiles.com/local--files/the-additive-group-of-integers-modulo-n-z-nz/Screen%20Shot%202015-09-05%20at%2011.03.05%20AM.png&amp;quot; alt=&amp;quot;Screen%20Shot%202015-09-05%20at%2011.03.05%20AM.png&amp;quot; class=&amp;quot;image&amp;quot; /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}/n\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group. For &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x, y \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have the &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the remainder of the sum &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; on division by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only possible remainders are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0, 1, ..., n - 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(x + y) \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is closed under &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's not hard to intuitively see that the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + (y + z)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; upon division by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(x + y) + z&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x, y, z \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + (y + z) = (x + y) + z&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;+&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is associative.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For each &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we note that the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; upon division by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 + x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to the remainder of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; upon division by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. In other words, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + 0 = x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 + x = x&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the identity element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lastly, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-x \in \mathbb{Z}/n\mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x + (-x) = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(-x) + x = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Thus we conclude that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(\mathbb{Z}/n\mathbb{Z}, +)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a group.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4050</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4050"/>
		<updated>2021-11-19T17:26:52Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Fundamental Theorem of Arithmetic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product (&amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_1, p_2, ..., p_k &amp;lt;/math&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4049</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4049"/>
		<updated>2021-11-19T17:24:14Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Fundamental Theorem of Arithmetic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product; that is, &amp;lt;math&amp;gt; n = p_1p_2...p_k &amp;lt;/math&amp;gt; for unique primes &amp;lt;math&amp;gt; p_i &amp;lt;/math&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4048</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4048"/>
		<updated>2021-11-19T17:18:06Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Fundamental Theorem of Arithmetic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;gt; n_2 &amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4047</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4047"/>
		<updated>2021-11-19T17:16:44Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Fundamental Theorem of Arithmetic */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
The Fundamental Theorem of Arithmetic, also known as the Unique Prime Factorization theorem, is as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Unique Prime Factorization Theorem):&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes uniquely apart from the ordering of the primes in the product.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;amp;lt; -1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can also be written as a product of primes multiplied by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We first show that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We saw on the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that if every &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number. Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be this prime number. Then for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 \in \{1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1n_1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so once again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 = p_2n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2n_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3 = n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we're done. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is composite then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 &amp;amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_2 = p_3n_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Note that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n_1 &amp;amp;gt; n_2 &amp;amp;gt; ... \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This sequence of integers is bounded below by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and hence must terminate at some point. Therefore, for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k \in \{ 1, 2, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad n = p_1p_2...p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as a product of primes. We will now show that this factorization is unique. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so that then:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_1p_2...p_k = q_1q_2...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 \mid q_1q_2...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{1, 2, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_1 = q_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_2p_3...p_k = q_2q_3...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must also have &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 \mid q_2q_3...q_r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{2, 3, ... r \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Without loss of generality, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_2 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_3p_4...p_k = q_3q_4...q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We continue in this process. We note that we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, we won't run out of primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; before primes &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, otherwise this implies a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k =r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and we eventually get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad p_k = q_r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the prime factorization &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is unique. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4046</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4046"/>
		<updated>2021-11-19T17:11:34Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Licensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euclid%27s_lemma Euclid's lemma, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Prime_number Prime number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4045</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4045"/>
		<updated>2021-11-19T17:09:03Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Euclid's Lemma */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
A common proof of Euclid's lemma involves the Bézout's identity, which was unknown at Euclid's time. Bézout's identity states that if {{math|''x''}} and {{math|''y''}} are relatively prime integers (i.e. they share no common divisors other than 1 and -1) there exist integers {{math|''r''}} and {{math|''s''}} such that&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rx+sy = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Let {{math|''a''}} and {{math|''n''}} be relatively prime, and assume that {{math|''n'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt;''ab''}}. By Bézout's identity, there are {{math|''r''}} and {{math|''s''}} making&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rn+sa = 1.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Multiply both sides by {{math|''b''}}:&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
rnb+sab = b.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The first term on the left is divisible by {{math|''n''}}, and the second term is divisible by {{math|''ab''}}, which by hypothesis is divisible by {{math|''n''}}. Therefore their sum, {{math|''b''}}, is also divisible by {{math|''n''}}. This is the generalization of Euclid's lemma mentioned above.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4044</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4044"/>
		<updated>2021-11-19T17:07:11Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Euclid's Lemma */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;'''Euclid's lemma''': If a prime {{math|''p''}} divides the product {{math|''ab''}} of two integers {{math|''a''}} and {{math|''b''}}, then {{math|''p''}} must divide at least one of those integers {{math|''a''}} and {{math|''b''}}.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, if {{math|''p'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19}}, {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133}}, {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 143}}, then {{math|''ab'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 133 &amp;amp;times; 143 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19019}}, and since this is divisible by 19, the lemma implies that one or both of 133 or 143 must be as well. In fact, {{math| 133 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 19 × 7}}.&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4043</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4043"/>
		<updated>2021-11-19T17:03:40Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Congruence modulo m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt; m &amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4036</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4036"/>
		<updated>2021-11-19T03:19:17Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Primes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4035</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4035"/>
		<updated>2021-11-19T02:29:48Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Primes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;equation-number&amp;quot;&amp;gt;(1)&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;math-equation&amp;quot; id=&amp;quot;equation-1&amp;quot;&amp;gt;\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4034</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4034"/>
		<updated>2021-11-19T02:26:02Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Primes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;p&amp;gt;Recall from the &amp;lt;a href=&amp;quot;/prime-and-composite-numbers&amp;quot;&amp;gt;Prime and Composite Numbers&amp;lt;/a&amp;gt; page that an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that is not a prime number is called a composite number.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very famous, simple, and important theorem which states that there exists infinitely many primes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table class=&amp;quot;wiki-content-table&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (Euclid's Theorem of the Existence of Infinitely Many Primes):&amp;lt;/strong&amp;gt; There are infinitely many prime numbers.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; We will carry this proof out by contradiction. Suppose that instead there are a finite number of primes. Then we can list all of these primes:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;equation-number&amp;quot;&amp;gt;(1)&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;math-equation&amp;quot; id=&amp;quot;equation-1&amp;quot;&amp;gt;\begin{align} \quad p_1, p_2, ..., p_k \end{align}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = p_1p_2...p_k + 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We have already seen that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has a prime divisor. Let this divisor be &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;i \in \{ 1, 2, ..., k \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid p_1p_2...p_i...p_k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \mid 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction since all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p_i \geq 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore the assumption that there were finitely many primes was false and so there are infinitely many primes. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4033</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4033"/>
		<updated>2021-11-19T02:19:50Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Primes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4032</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4032"/>
		<updated>2021-11-19T02:15:04Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Primes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Prime&amp;lt;/strong&amp;gt; if the only divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\pm p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;For a long time it was debated whether the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; should be classified as a prime number or not. The importance of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; being classified as a prime number was uninteresting and so the first prime number is officially &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{P}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the set of all prime numbers, then the first few primes in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{P}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{P} = \{2, 3, 5, 7, 11, 13, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at a very simple theorem that says the greatest common divisor between an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and any prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is either &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; depending on whether &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divides &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, p \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a prime number then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, p) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \not \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, p) = p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime, the only positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, p) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \not \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, p) = p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;One important aspect of prime numbers is that every integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divisible by a prime number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we prove in the following lemma.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Lemma 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then there exists a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in \mathbb{P}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Lemma 1 also holds if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and can be proven in an analogous manner. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then every number divides &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and by extension, every prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in \mathbb{P}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divides &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be the set of positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad S = \{ d \in \mathbb{Z} : d \mid n \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonempty since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, n \in S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are the only elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divides &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If there exists more elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S \setminus \{1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers we have that by &amp;lt;a href=&amp;quot;/the-well-ordering-principle-of-the-natural-numbers&amp;quot;&amp;gt;The Well-Ordering Principle of the Natural Numbers&amp;lt;/a&amp;gt; that a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S \setminus \{ 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There are two subcases to consider. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is prime then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p =d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not prime then there exists a positive divisor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 &amp;lt; d_2 &amp;lt; d_1 &amp;lt; n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_2 \in S \setminus \{ 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_2 &amp;lt; d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, which is a contradiction since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;S \setminus \{ 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is actually prime and again, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d_1 \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n &amp;gt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then there exists a prime &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in \mathbb{P}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
===Composite Numbers===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \geq 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Composite&amp;lt;/strong&amp;gt; if it is not prime, that is, there exists a &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 &amp;lt; d &amp;lt; n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid n&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; OR &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, the numbers in the following set are composite:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \{4, 6, 8, 9, 10, 12, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;One important aspect of composite numbers is that every nonnegative even number (except &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;) is composite since all of such numbers has &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as a nontrivial divisor.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4031</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4031"/>
		<updated>2021-11-19T01:40:54Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebraic properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4030</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4030"/>
		<updated>2021-11-19T01:20:51Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Greatest Common Divisor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a | b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\text{gcd} (a, b) = | a |&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4029</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4029"/>
		<updated>2021-11-19T01:09:15Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Bézout's Identity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
====Proof====&lt;br /&gt;
Given any nonzero integers {{mvar|a}} and {{mvar|b}}, let &amp;lt;math&amp;gt;S=\{ax+by \mid x,y\in\mathbb{Z} \text{ and } ax+by&amp;gt;0\}.&amp;lt;/math&amp;gt; The set {{mvar|S}} is nonempty since it contains either {{mvar|a}} or {{math|–''a''}} (with {{math|1=''x'' = ±1}} and {{math|1=''y'' = 0}}). Since {{mvar|S}} is a nonempty set of positive integers, it has a minimum element &amp;lt;math&amp;gt;d = as + bt&amp;lt;/math&amp;gt;, by the Well-ordering principle. To prove that {{mvar|d}} is the greatest common divisor of {{mvar|a}} and {{mvar|b}}, it must be proven that {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}, and that for any other common divisor {{mvar|c}}, one has {{math|''c'' ≤ ''d''}}.&lt;br /&gt;
&lt;br /&gt;
The Euclidean division of {{mvar|a}} by {{mvar|d}} may be written&lt;br /&gt;
:&amp;lt;math&amp;gt;a=dq+r\quad\text{with}\quad 0\le r&amp;lt;d.&amp;lt;/math&amp;gt;&lt;br /&gt;
The remainder {{mvar|r}} is in &amp;lt;math&amp;gt;S\cup \{0\}&amp;lt;/math&amp;gt;, because&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
r  &amp;amp; = a - qd \\&lt;br /&gt;
&amp;amp; = a - q(as+bt)\\&lt;br /&gt;
&amp;amp; = a(1-qs) - bqt.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
Thus {{mvar|r}} is of the form &amp;lt;math&amp;gt;ax+by&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;r\in S\cup \{0\}&amp;lt;/math&amp;gt;. However, {{math|0 ≤ ''r'' &amp;lt; ''d''}}, and {{mvar|d}} is the smallest positive integer in {{mvar|S}}: the remainder {{mvar|r}} can therefore not be in {{mvar|S}}, making {{mvar|r}} necessarily 0. This implies that {{mvar|d}} is a divisor of {{mvar|a}}. Similarly {{mvar|d}} is also a divisor of {{mvar|b}}, and {{mvar|d}} is a common divisor of {{mvar|a}} and {{mvar|b}}.&lt;br /&gt;
&lt;br /&gt;
Now, let {{mvar|c}} be any common divisor of {{mvar|a}} and {{mvar|b}}; that is, there exist {{mvar|u}} and {{mvar|v}} such that&lt;br /&gt;
{{math|1=''a'' = ''cu''}} and {{math|1=''b'' = ''cv''}}. One has thus&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}d&amp;amp;=as + bt\\&lt;br /&gt;
&amp;amp; =cus+cvt\\&lt;br /&gt;
&amp;amp;=c(us+vt).\end{align} &amp;lt;/math&amp;gt;&lt;br /&gt;
That is {{mvar|c}} is a divisor of {{mvar|d}}, and, therefore {{math|''c'' ≤ ''d.''}}&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4028</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4028"/>
		<updated>2021-11-19T01:04:49Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Finding GCD and LCM with Prime Decomposition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bézout's Identity===&lt;br /&gt;
Let ''a'' and ''b'' be integers with greatest common divisor ''d''. Then there exist integers ''x'' and ''y'' such that ''ax'' + ''by'' = ''d''. More generally, the integers of the form ''ax'' + ''by'' are exactly the multiples of ''d''.&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4027</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4027"/>
		<updated>2021-11-19T00:21:35Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Greatest Common Divisor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4026</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4026"/>
		<updated>2021-11-19T00:18:42Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Finding GCD and LCM with Prime Decomposition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \{m, n\} = p_1^{\min \{k_1, l_1\} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \{m, n\} = p_1^{\max \{k_1, l_1\} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4025</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4025"/>
		<updated>2021-11-19T00:15:34Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Finding GCD and LCM with Prime Decomposition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i | m \lor p_i | n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the primes given in these prime decompositions may be divisors of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the primes &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the prime decompositions of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \set {m, n} = p_1^{\min \set {k_1, l_1} } p_2^{\min \{k_2, l_2\} } \ldots p_r^{\min \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \set {m, n} = p_1^{\max \set {k_1, l_1} } p_2^{\max \{k_2, l_2\} } \ldots p_r^{\max \{k_r, l_r\} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4024</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4024"/>
		<updated>2021-11-19T00:10:34Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Lowest Common Multiple */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z : a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z : m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \{a, b\}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i \divides m \lor p_i \divides n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the [[Definition:Prime Number|primes]] given in these [[Definition:Prime Decomposition|prime decompositions]] may be [[Definition:Divisor of Integer|divisors]] of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the [[Definition:Prime Number|primes]] &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the [[Definition:Prime Decomposition|prime decompositions]] of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \set {m, n} = p_1^{\min \set {k_1, l_1} } p_2^{\min \set {k_2, l_2} } \ldots p_r^{\min \set {k_r, l_r} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \set {m, n} = p_1^{\max \set {k_1, l_1} } p_2^{\max \set {k_2, l_2} } \ldots p_r^{\max \set {k_r, l_r} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4023</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4023"/>
		<updated>2021-11-19T00:06:48Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Lowest Common Multiple */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z: a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z: m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\text{lcm} \set {a, b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Finding GCD and LCM with Prime Decomposition===&lt;br /&gt;
Let &amp;lt;math&amp;gt;m, n \in \Z&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let:&lt;br /&gt;
:&amp;lt;math&amp;gt;m = p_1^{k_1} p_2^{k_2} \dotsm p_r^{k_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;n = p_1^{l_1} p_2^{l_2} \dotsm p_r^{l_r}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;p_i \divides m \lor p_i \divides n, 1 \le i \le r&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That is, the [[Definition:Prime Number|primes]] given in these [[Definition:Prime Decomposition|prime decompositions]] may be [[Definition:Divisor of Integer|divisors]] of ''either'' of the numbers &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that if one of the [[Definition:Prime Number|primes]] &amp;lt;math&amp;gt;p_i&amp;lt;/math&amp;gt; does not appear in the [[Definition:Prime Decomposition|prime decompositions]] of either one of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, then its corresponding index &amp;lt;math&amp;gt;k_i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;l_i&amp;lt;/math&amp;gt; will be zero.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the following results apply:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{gcd} \set {m, n} = p_1^{\min \set {k_1, l_1} } p_2^{\min \set {k_2, l_2} } \ldots p_r^{\min \set {k_r, l_r} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\text{lcm} \set {m, n} = p_1^{\max \set {k_1, l_1} } p_2^{\max \set {k_2, l_2} } \ldots p_r^{\max \set {k_r, l_r} }&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4022</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4022"/>
		<updated>2021-11-19T00:01:53Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Lowest Common Multiple */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z: a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z: m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a | m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b | m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\lcm \set {a, b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4021</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4021"/>
		<updated>2021-11-18T23:52:24Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Lowest Common Multiple */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4020</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4020"/>
		<updated>2021-11-18T23:49:45Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* GCD, LCM, and Bézout's identity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
===Greatest Common Divisor===&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lowest Common Multiple===&lt;br /&gt;
For all &amp;lt;math&amp;gt;a, b \in \Z: a b \ne 0&amp;lt;/math&amp;gt;, there exists a smallest &amp;lt;math&amp;gt;m \in \Z: m &amp;gt; 0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;a \divides m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b \divides m&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; is called the '''lowest common multiple of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;''', and denoted &amp;lt;math&amp;gt;\lcm \set {a, b}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that unlike the GCD, where ''either'' of &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; must be non-zero, for the LCM ''both'' &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; must be non-zero, which is why the stipulation &amp;lt;math&amp;gt;a b \ne 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4019</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4019"/>
		<updated>2021-11-18T23:38:05Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* GCD, LCM, and Bézout's identity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then the &amp;lt;strong&amp;gt;Greatest Common Divisor&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;1.&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;d \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;2.&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \leq d&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Note that the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has the property such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so we see that the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. As a result, we only need to compare positive divisors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Furthermore, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then it's not hard to verify that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = \mid a \mid&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Let's look at an example of finding the greatest common divisor among two integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 2, 7, 14&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and the factors of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1, 5, 7, 35&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Both &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; share the factor &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and it is the largest factor they share, and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (14, 35) = 7 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As we elaborated on just moments ago, the greatest common divisor of any two integers is always at least &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We give a special name to pairs of integers for which their greatest common divisor is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which we define below.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\gcd (a, b) = 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be &amp;lt;strong&amp;gt;Relatively Prime&amp;lt;/strong&amp;gt; to each other.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, consider the numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The greatest common divisor between these numbers is:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \gcd (5, 8) = 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;5&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;8&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are relatively prime to each other.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \mid \gcd (a, b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4018</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4018"/>
		<updated>2021-11-18T16:01:34Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Congruence modulo m */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then we say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;strong&amp;gt;Congruent&amp;lt;/strong&amp;gt; to &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; denoted &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The congruence of two integers is an equivalence relation which we can describe in other words. We say that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are said to be congruent modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; leaves the same remaining as &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3 \equiv 7 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2 \mid (3 - 7) = -4&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Notice also that when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; they both leave the same remainder, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We can denote the remainder of an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; as simply &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1 = 3 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; since the remaining of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We should note that from &amp;lt;a href=&amp;quot;/the-division-algorithm&amp;quot;&amp;gt;The Division Algorithm&amp;lt;/a&amp;gt; that the remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; when an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; satisfies the inequality &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore we note that for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 \leq a \pmod m &amp;lt; m \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In other words, for all nonnegative integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and positive integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the set of possible remainders when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\{ 0, 1, 2, ..., m - 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consequentially, we can define the set of odd integers and the set of even numbers in terms of these elements in the set of even integers being congruent to one another and elements in the set of odd numbers being congruent to one another.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Definition:&amp;lt;/strong&amp;gt; An integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is said to be &amp;lt;strong&amp;gt;Odd&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 1 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; or &amp;lt;strong&amp;gt;Even&amp;lt;/strong&amp;gt; if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;z \equiv 0 \pmod 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We will now look at some basic theorems regarding integer congruence modulo &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b, c, d, m \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;a)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;b)&amp;lt;/strong&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;c)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;d)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;e)&amp;lt;/strong&amp;gt; If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of a)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so there exists an integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk = a - b \\ \quad -mk = b - a \\ \quad m(-k) = b - a \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid 0 = (a - a)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for any integer &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv a \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of c)&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (b - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = b - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;From the second equation we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = mk_2 + c&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Substituting this into the first equation gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - (mk_2 + c) \\ \quad mk_1 + mk_2 = a - c \\ \quad m(k_1 + k_2) = a - c \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - c)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv c \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of d):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Adding these equations together gives us:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 + mk_2 = (a - b) + (c - d) \\ \quad m(k_1 + k_2) = (a + c) - (b + d) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a + c) - (b + d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;(a + c) \equiv (b + d) \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof of e):&amp;lt;/strong&amp;gt; Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \equiv b \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;c \equiv d \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (a - b)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (c - d)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so there exists integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;k_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad mk_1 = a - b \quad \mathrm{and} \quad mk_2 = c - d \\ \quad a = b + mk_1 \quad \mathrm{and} \quad c = d +mk_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Multiplying these equations together yields:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad ac = (b + mk_1)(d + mk_2) \\ \quad ac = bd + bmk_2 + dmk_1 + m^2k_1k_2 \\ \quad ac - bd = m(bk_2 + dk_1 + mk_1k_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;m \mid (ac - bd)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;ac \equiv bd \pmod m&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4017</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4017"/>
		<updated>2021-11-18T15:55:56Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Division algorithm */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&amp;lt;p&amp;gt;One rather important aspect of the divisibility of integers is that if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be written as the product of some quotient &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 11&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = 3(b) + 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q = 3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = 2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The following theorem known as the Division Algorithm shows us that for any pair of integers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; exists and is unique.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Division Algorithm):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists unique &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q, r \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;The value of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is often called the &amp;lt;strong&amp;gt;Remainder&amp;lt;/strong&amp;gt; when &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is divided by &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. That is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is equal to some multiple &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, known as the &amp;lt;strong&amp;gt;Quotient&amp;lt;/strong&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, plus a remainder &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for which &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Proof:&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; with &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and consider the following set &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad A = \{ a - bq : q \in \mathbb{N} \} = \{ a, a - b, a - 2b, ... \}. \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Consider &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B \subset A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of nonnegative elements in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. If &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and if &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a &amp;lt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a - ba = a(1 - b) \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty set. Moreover, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a nonempty subset of integers and so by the Well-Ordering principle there exists a least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is this least element. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = a - bn&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for some &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;So &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; if of the form we desire. Now since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and every element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is nonnegative then we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r = b + p&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad a = bq + r = bq + (b + p) = b(q + 1) + p \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p = a - b(q + 1) \geq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;p \in B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q+1 &amp;gt; q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq p &amp;lt; r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. But this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is not the least element of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction, so our assumption that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r \geq b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is false, and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;We lastly show that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; are unique for &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Suppose that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_1 + r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq_2 + r_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1, r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then by subtracting these two equations we get:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 = bq_1 - bq_2 + r_1 - r_2 \\ \quad 0 =b(q_1 - q_2) + r_1 - r_2 \\ \quad r_2 - r_1 = b(q_1 - q_2) \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_2 - r_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is a multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r_2 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The only multiple of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;-b &amp;lt; r_2 - r_1 &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so:&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad r_2 - r_1 = 0 \\ \quad r_1 = r_2 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;r_1 = r_2 = r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 = b(q_1 - q_2)&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; this implies that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 - q_2 = 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;q_1 = q_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Therefore &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; can be uniquely expressed in the form &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a = bq + r&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 \leq r &amp;lt; b&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4016</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4016"/>
		<updated>2021-11-18T15:50:26Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Construction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4015</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4015"/>
		<updated>2021-11-18T15:49:43Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Integers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;0), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}  and  {{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum 1 + 1 + ... + 1 or (−1) + (−1) + ... + (−1). In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4014</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4014"/>
		<updated>2021-11-18T15:48:11Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebraic properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}} is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}} is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}}, then {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} or {{math|''b'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4013</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4013"/>
		<updated>2021-11-18T15:46:38Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Algebraic properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') &amp;lt;math&amp;gt;=&amp;lt;/math&amp;gt; (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' {{=}} ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' {{=}} ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 = ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 {{=}} ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') {{=}} 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') {{=}} (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' {{=}} (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' {{=}} 0}}, then {{math|''a'' {{=}} 0}} or {{math|''b'' {{=}} 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4012</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4012"/>
		<updated>2021-11-18T15:45:48Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Integers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') {{=}} (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') {{=}} (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' {{=}} ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' {{=}} ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 = ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 {{=}} ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') {{=}} 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') {{=}} (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' {{=}} (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' {{=}} 0}}, then {{math|''a'' {{=}} 0}} or {{math|''b'' {{=}} 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}. To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4011</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4011"/>
		<updated>2021-11-18T15:44:30Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Licensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') {{=}} (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') {{=}} (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' {{=}} ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' {{=}} ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 {{=}} ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 {{=}} ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') {{=}} 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') {{=}} (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' {{=}} (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' {{=}} 0}}, then {{math|''a'' {{=}} 0}} or {{math|''b'' {{=}} 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}.&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers;&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Integer Integer, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4010</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4010"/>
		<updated>2021-11-18T15:43:38Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Integers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or blackboard bold &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is closed under the operations of addition and multiplication, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under subtraction.&lt;br /&gt;
&lt;br /&gt;
The integers form a unital ring which is the most basic one, in the following sense: for any unital ring, there is a unique ring homomorphism from the integers into this ring. This universal property, namely to be an initial object in the category of rings, characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under exponentiation, the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Closure:&lt;br /&gt;
|{{math|''a'' + ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|Associativity:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') {{=}} (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') {{=}} (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Commutativity:&lt;br /&gt;
|{{math|''a'' + ''b'' {{=}} ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' {{=}} ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an identity element:&lt;br /&gt;
|{{math|''a'' + 0 {{=}} ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 {{=}} ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of inverse elements:&lt;br /&gt;
|{{math|''a'' + (−''a'') {{=}} 0}}&lt;br /&gt;
|The only invertible integers (called units) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Distributivity:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') {{=}} (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' {{=}} (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No zero divisors:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' {{=}} 0}}, then {{math|''a'' {{=}} 0}} or {{math|''b'' {{=}} 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an abelian group. It is also a cyclic group, since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is isomorphic to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a commutative monoid. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a commutative ring with unity. It is the prototype of all objects of such algebraic structure. Only those equalities of expressions are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; for all values of variables, which are true in any unital commutative ring. Certain non-zero integers map to zero in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of zero divisors in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an integral domain.&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a field. The smallest field containing the integers as a subring is the field of rational numbers. The process of constructing the rationals from the integers can be mimicked to form the field of fractions of any integral domain. And back, starting from an algebraic number field (an extension of rational numbers), its ring of integers can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its subring.&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called Euclidean division, and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the absolute value of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''remainder'' of the division of {{math|''a''}} by {{math|''b''}}. The Euclidean algorithm for computing greatest common divisors works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a Euclidean domain. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a principal ideal domain, and any positive integer can be written as the products of primes in an essentially unique way. This is the fundamental theorem of arithmetic.&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of natural numbers. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, zero, and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic. Therefore, in modern set-theoretic mathematics, a more abstract construction allowing one to define arithmetical operations without any case distinction is often used instead. The integers can thus be formally constructed as the equivalence classes of ordered pairs of natural numbers {{math|(''a'',''b'')}}.&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}.&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an equivalence relation {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers;&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are embedded into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar representation of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4009</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4009"/>
		<updated>2021-11-18T15:36:44Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Integers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero (0), the positive natural numbers (1, 2, 3,&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or [[blackboard bold]] &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
=== Algebraic properties ===&lt;br /&gt;
&lt;br /&gt;
Like the [[natural numbers]], &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is [[closure (mathematics)|closed]] under the [[binary operation|operations]] of addition and [[multiplication]], that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers (and importantly,&amp;amp;nbsp;{{num|0}}), &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, unlike the natural numbers, is also closed under [[subtraction]].&amp;lt;ref&amp;gt;{{Cite web|title=Integer {{!}} mathematics|url=https://www.britannica.com/science/integer|access-date=2020-08-11|website=Encyclopedia Britannica|language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The integers form a [[unital ring]] which is the most basic one, in the following sense: for any unital ring, there is a unique [[ring homomorphism]] from the integers into this ring. This [[universal property]], namely to be an [[initial object]] in the [[category of rings]], characterizes the ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under [[division (mathematics)|division]], since the quotient of two integers (e.g.,&amp;amp;nbsp;1 divided by&amp;amp;nbsp;2) need not be an integer. Although the natural numbers are closed under [[exponentiation]], the integers are not (since the result can be a fraction when the exponent is negative).&lt;br /&gt;
&lt;br /&gt;
The following table lists some of the basic properties of addition and multiplication for any integers {{math|''a''}}, {{math|''b''}} and {{math|''c''}}:&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin-left: auto; margin-right: auto; border: none;&amp;quot;&lt;br /&gt;
|+Properties of addition and multiplication on integers&lt;br /&gt;
!&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Addition&lt;br /&gt;
!scope=&amp;quot;col&amp;quot; |Multiplication&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |[[Closure (mathematics)|Closure]]:&lt;br /&gt;
|{{math|''a'' + ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|{{math|''a'' × ''b''}}{{pad|1em}}is an integer&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot;|[[Associativity]]:&lt;br /&gt;
|{{math|''a'' + (''b'' + ''c'') {{=}} (''a'' + ''b'') + ''c''}}&lt;br /&gt;
|{{math|''a'' × (''b'' × ''c'') {{=}} (''a'' × ''b'') × ''c''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |[[Commutativity]]:&lt;br /&gt;
|{{math|''a'' + ''b'' {{=}} ''b'' + ''a''}}&lt;br /&gt;
|{{math|''a'' × ''b'' {{=}} ''b'' × ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of an [[identity element]]:&lt;br /&gt;
|{{math|''a'' + 0 {{=}} ''a''}}&lt;br /&gt;
|{{math|''a'' × 1 {{=}} ''a''}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |Existence of [[inverse element]]s:&lt;br /&gt;
|{{math|''a'' + (−''a'') {{=}} 0}}&lt;br /&gt;
|The only invertible integers (called [[Unit (ring theory)|units]]) are {{math|−1}} and&amp;amp;nbsp;{{math|1}}.&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |[[Distributivity]]:&lt;br /&gt;
|colspan=2 align=center |{{math|''a'' × (''b'' + ''c'') {{=}} (''a'' × ''b'') + (''a'' × ''c'')}}{{pad|1em}}and{{pad|1em}}{{math|(''a'' + ''b'') × ''c'' {{=}} (''a'' × ''c'') + (''b'' × ''c'')}}&lt;br /&gt;
|-&lt;br /&gt;
!scope=&amp;quot;row&amp;quot; |No [[zero divisor]]s:&lt;br /&gt;
| || | If {{math|''a'' × ''b'' {{=}} 0}}, then {{math|''a'' {{=}} 0}} or {{math|''b'' {{=}} 0}} (or both)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The first five properties listed above for addition say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, under addition, is an [[abelian group]]. It is also a [[cyclic group]], since every non-zero integer can be written as a finite sum {{nowrap|1 + 1 + ... + 1}} or {{nowrap|(−1) + (−1) + ... + (−1)}}. In fact, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under addition is the ''only'' infinite cyclic group—in the sense that any infinite cyclic group is [[group isomorphism|isomorphic]] to &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The first four properties listed above for multiplication say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is a [[commutative monoid]]. However, not every integer has a multiplicative inverse (as is the case of the number 2), which means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; under multiplication is not a group.&lt;br /&gt;
&lt;br /&gt;
All the rules from the above property table (except for the last), when taken together, say that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; together with addition and multiplication is a [[commutative ring]] with [[multiplicative identity|unity]]. It is the prototype of all objects of such [[algebraic structure]]. Only those [[equality (mathematics)|equalities]] of [[algebraic expression|expressions]] are true in&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; [[for all]] values of variables, which are true in any unital commutative ring. Certain non-zero integers map to [[additive identity|zero]] in certain rings.&lt;br /&gt;
&lt;br /&gt;
The lack of [[zero divisor]]s in the integers (last property in the table) means that the commutative ring&amp;amp;nbsp;&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is an [[integral domain]].&lt;br /&gt;
&lt;br /&gt;
The lack of multiplicative inverses, which is equivalent to the fact that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is not closed under division, means that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is ''not'' a [[field (mathematics)|field]]. The smallest field containing the integers as a [[subring]] is the field of [[rational number]]s. The process of constructing the rationals from the integers can be mimicked to form the [[field of fractions]] of any integral domain. And back, starting from an [[algebraic number field]] (an extension of rational numbers), its [[ring of integers]] can be extracted, which includes &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; as its [[subring]].&lt;br /&gt;
&lt;br /&gt;
Although ordinary division is not defined on &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt;, the division &amp;quot;with remainder&amp;quot; is defined on them. It is called [[Euclidean division]], and possesses the following important property: given two integers {{math|''a''}} and {{math|''b''}} with {{math|''b'' ≠ 0}}, there exist unique integers {{math|''q''}} and {{math|''r''}} such that {{math|''a'' {{=}} ''q'' × ''b'' + ''r''}} and {{math|0 ≤ ''r'' &amp;lt;  {{!}}''b''{{!}}}}, where {{math|{{!}}''b''{{!}}}} denotes the [[absolute value]] of {{math|''b''}}. The integer {{math|''q''}} is called the ''quotient'' and {{math|''r''}} is called the ''[[remainder]]'' of the division of {{math|''a''}} by {{math|''b''}}. The [[Euclidean algorithm]] for computing [[greatest common divisor]]s works by a sequence of Euclidean divisions.&lt;br /&gt;
&lt;br /&gt;
The above says that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a [[Euclidean domain]]. This implies that &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a [[principal ideal domain]], and any positive integer can be written as the products of [[prime number|primes]] in an [[essentially unique]] way.&amp;lt;ref&amp;gt;{{cite book |last=Serge |first=Lang |author-link=Serge Lang |title=Algebra |edition=3rd |publisher=Addison-Wesley |year=1993 |isbn=978-0-201-55540-0 |pages=86–87}}&amp;lt;/ref&amp;gt; This is the [[fundamental theorem of arithmetic]].&lt;br /&gt;
&lt;br /&gt;
===Construction===&lt;br /&gt;
[[File:Relative numbers representation.svg|thumb|alt=Representation of equivalence classes for the numbers −5 to 5&lt;br /&gt;
|Red points represent ordered pairs of [[natural number]]s. Linked red points are equivalence classes representing the blue integers at the end of the line.|upright=1.5]]&lt;br /&gt;
In elementary school teaching, integers are often intuitively defined as the (positive) natural numbers, [[zero]], and the negations of the natural numbers. However, this style of definition leads to many different cases (each arithmetic operation needs to be defined on each combination of types of integer) and makes it tedious to prove that integers obey the various laws of arithmetic.&amp;lt;ref&amp;gt;{{cite book |title=Number Systems and the Foundations of Analysis |series=Dover Books on Mathematics |first=Elliott |last=Mendelson |publisher=Courier Dover Publications |year=2008 |isbn=978-0-486-45792-5 |page=86 |url=https://books.google.com/books?id=3domViIV7HMC&amp;amp;pg=PA86 |access-date=2016-02-15 |archive-url=https://web.archive.org/web/20161208233040/https://books.google.com/books?id=3domViIV7HMC&amp;amp;pg=PA86 |archive-date=2016-12-08|url-status=live}}.&amp;lt;/ref&amp;gt; Therefore, in modern set-theoretic mathematics, a more abstract construction&amp;lt;ref&amp;gt;Ivorra Castillo: ''Álgebra''&amp;lt;/ref&amp;gt; allowing one to define arithmetical operations without any case distinction is often used instead.&amp;lt;ref&amp;gt;{{cite book |title=Learning to Teach Number: A Handbook for Students and Teachers in the Primary School |series=The Stanley Thornes Teaching Primary Maths Series |first=Len |last=Frobisher |publisher=Nelson Thornes |year=1999 |isbn=978-0-7487-3515-0 |page=126 |url=https://books.google.com/books?id=KwJQIt4jQHUC&amp;amp;pg=PA126 |access-date=2016-02-15 |archive-url=https://web.archive.org/web/20161208121843/https://books.google.com/books?id=KwJQIt4jQHUC&amp;amp;pg=PA126 |archive-date=2016-12-08 |url-status=live}}.&amp;lt;/ref&amp;gt; The integers can thus be formally constructed as the [[equivalence class]]es of [[ordered pair]]s of [[natural number]]s {{math|(''a'',''b'')}}.&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;&amp;gt;{{cite book |author=Campbell, Howard E. |title=The structure of arithmetic |publisher=Appleton-Century-Crofts |year=1970 |isbn=978-0-390-16895-5 |page=[https://archive.org/details/structureofarith00camp/page/83 83] |url-access=registration |url=https://archive.org/details/structureofarith00camp/page/83 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The intuition is that {{math|(''a'',''b'')}} stands for the result of subtracting {{math|''b''}} from {{math|''a''}}.&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; To confirm our expectation that {{nowrap|1 − 2}} and {{nowrap|4 − 5}} denote the same number, we define an [[equivalence relation]] {{math|~}} on these pairs with the following rule:&lt;br /&gt;
:&amp;lt;math&amp;gt;(a,b) \sim (c,d) &amp;lt;/math&amp;gt;&lt;br /&gt;
precisely when&lt;br /&gt;
:&amp;lt;math&amp;gt;a + d = b + c. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers;&amp;lt;ref name=&amp;quot;Campbell-1970-p83&amp;quot;/&amp;gt; by using {{math|[(''a'',''b'')]}} to denote the equivalence class having {{math|(''a'',''b'')}} as a member, one has:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] + [(c,d)] := [(a+c,b+d)].&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)]\cdot[(c,d)] := [(ac+bd,ad+bc)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:&lt;br /&gt;
:&amp;lt;math&amp;gt;-[(a,b)] := [(b,a)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hence subtraction can be defined as the addition of the additive inverse:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] - [(c,d)] := [(a+d,b+c)].&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard ordering on the integers is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;[(a,b)] &amp;lt; [(c,d)]&amp;lt;/math&amp;gt; [[if and only if]] &amp;lt;math&amp;gt;a+d &amp;lt; b+c.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.&lt;br /&gt;
&lt;br /&gt;
Every equivalence class has a unique member that is of the form {{math|(''n'',0)}} or {{math|(0,''n'')}} (or both at once). The natural number {{math|''n''}} is identified with the class {{math|[(''n'',0)]}} (i.e., the natural numbers are [[embedding|embedded]] into the integers by map sending {{math|''n''}} to {{math|[(''n'',0)]}}), and the class {{math|[(0,''n'')]}} is denoted {{math|−''n''}} (this covers all remaining classes, and gives the class {{math|[(0,0)]}} a second time since {{math|−0 {{=}} 0.}}&lt;br /&gt;
&lt;br /&gt;
Thus, {{math|[(''a'',''b'')]}} is denoted by&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{cases} a - b, &amp;amp; \mbox{if }  a \ge b  \\ -(b - a),  &amp;amp; \mbox{if } a &amp;lt; b. \end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.&lt;br /&gt;
&lt;br /&gt;
This notation recovers the familiar [[group representation|representation]] of the integers as {{math|{..., −2, −1, 0, 1, 2, ...} }}.&lt;br /&gt;
&lt;br /&gt;
Some examples are:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
 0 &amp;amp;= [(0,0)] &amp;amp;= [(1,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k)] \\&lt;br /&gt;
 1 &amp;amp;= [(1,0)] &amp;amp;= [(2,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+1,k)] \\&lt;br /&gt;
-1 &amp;amp;= [(0,1)] &amp;amp;= [(1,2)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+1)] \\&lt;br /&gt;
 2 &amp;amp;= [(2,0)] &amp;amp;= [(3,1)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k+2,k)] \\&lt;br /&gt;
-2 &amp;amp;= [(0,2)] &amp;amp;= [(1,3)] &amp;amp;= \cdots &amp;amp; &amp;amp;= [(k,k+2)].&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4008</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4008"/>
		<updated>2021-11-18T15:32:25Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Integers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
The set of integers consists of zero ({{num|0}}), the positive natural numbers ({{num|1}}, {{num|2}}, {{num|3}},&amp;amp;nbsp;...), also called ''whole numbers'' or ''counting numbers'', and their additive inverses (the '''negative integers''', i.e., −1, −2, −3,&amp;amp;nbsp;...). The set of integers is often denoted by the boldface ({{math|'''Z'''}}) or [[blackboard bold]] &amp;lt;math&amp;gt;(\mathbb{Z})&amp;lt;/math&amp;gt; letter &amp;quot;Z&amp;quot;—standing originally for the German word ''Zahlen'' (&amp;quot;numbers&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is a subset of the set of all rational numbers &amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;, which in turn is a subset of the real numbers &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.  Like the natural numbers, &amp;lt;math&amp;gt;\mathbb{Z}&amp;lt;/math&amp;gt; is countably infinite.&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4007</id>
		<title>Abstract Algebra: Preliminaries</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=Abstract_Algebra:_Preliminaries&amp;diff=4007"/>
		<updated>2021-11-18T15:28:13Z</updated>

		<summary type="html">&lt;p&gt;Lila: /* Licensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Natural numbers==&lt;br /&gt;
The '''natural numbers''' are those numbers used for counting (as in &amp;quot;there are ''six'' coins on the table&amp;quot;) and ordering (as in &amp;quot;this is the ''third'' largest city in the country&amp;quot;). In common mathematical terminology, words colloquially used for counting are &amp;quot;cardinal numbers&amp;quot;, and words used for ordering are &amp;quot;ordinal numbers&amp;quot;. The natural numbers can, at times, appear as a convenient set of codes (labels or &amp;quot;names&amp;quot;), that is, as what linguists call nominal numbers, forgoing many or all of the properties of being a number in a mathematical sense.&lt;br /&gt;
&lt;br /&gt;
Some definitions begin the natural numbers with 0, corresponding to the non-negative integers {0, 1, 2, 3, ...}, whereas others start with 1, corresponding to the positive integers {1, 2, 3, ...}. Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).&lt;br /&gt;
&lt;br /&gt;
The natural numbers are a basis from which many other number sets may be built by extension: the integers, by including (if not yet in) the neutral element 0 and an additive inverse ({{math|−''n''}}) for each nonzero natural number {{mvar|n}}; the rational numbers, by including a multiplicative inverse (&amp;lt;math&amp;gt;\tfrac 1n&amp;lt;/math&amp;gt;) for each nonzero integer {{mvar|n}} (and also the product of these inverses by integers); the real numbers by including with the rationals the limits of (converging) Cauchy sequences of rationals; the complex numbers, by including with the real numbers the unresolved square root of minus one (and also the sums and products thereof); and so on. This chain of extensions make the natural numbers canonically embedded (identified) in the other number systems.&lt;br /&gt;
&lt;br /&gt;
In common language, particularly in primary school education, natural numbers may be called '''counting numbers''' to intuitively exclude the negative integers and zero, and also to contrast the discreteness of counting to the continuity of measurement — a hallmark characteristic of real numbers.&lt;br /&gt;
&lt;br /&gt;
===Well-ordering principle===&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the following set which we define to be the set of natural numbers:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{N} = \{ 1, 2, 3, ... \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Now consider any subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. For example, let us consider the subsets &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1 = \{ 7, 29 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2 = \{1, 3, 5, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3 = \{2, 4, 6, ... \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes a finite set containing two integers. The subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all odd natural numbers, and the subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; describes the infinite set of all even natural numbers. Notice that in each of these cases we can identify a &amp;lt;em&amp;gt;least&amp;lt;/em&amp;gt; element of the subset. For example, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;7&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, and the least element in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A_3&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In fact, it is impossible to construct a nonempty subset &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that does not contain a least element. We describe this very important result below in the following theorem.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Theorem 1 (The Well-Ordering Principle of the Natural Numbers):&amp;lt;/strong&amp;gt; Let &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; be a &amp;lt;em&amp;gt;nonempty&amp;lt;/em&amp;gt; subset of the natural numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{N} = \{1, 2, 3, ...\}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Then there exists a least element &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;We do not have the tools to prove Theorem 1 although it is a rather intuitively obvious result. Nevertheless, we should note that while Theorem 1 holds true for the set of natural numbers, it does not hold true for all sets of real numbers. For example, consider the set of rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad \mathbb{Q} = \left \{ \frac{a}{b} : a, b \in \mathbb{Z}, b \neq 0 \right \} \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Any subset of the rational numbers need not have a least element. For example, consider the following subset of rational numbers between &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; noninclusive, that is, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A = \{ x \in \mathbb{Q} : 0 &amp;lt; x &amp;lt; 1 \}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. We claim that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; has no least element. To prove this, assume that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; does have a least element, say &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; is such that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \leq y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; for all &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x = \frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; where &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;a, b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we must have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;x &amp;gt; 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; too since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and so:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center;&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\begin{align} \quad 0 &amp;lt; \frac{a}{b} &amp;lt; 1 \end{align}&amp;lt;/math&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Consider the number &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; in the middle of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\frac{a}{b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. This number is &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;. Since &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; we have that &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \in \mathbb{Z}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;2b \neq 0&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;, so indeed, &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;y = \frac{a}{2b} \in A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;0 &amp;lt; y &amp;lt; x &amp;lt; 1&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; which is a contradiction to our assumption that a least element exists in &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;It's important to note that while not every subset of the rational numbers &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; contains a least element, there are still subsets of &amp;lt;span class=&amp;quot;math-inline&amp;quot;&amp;gt;&amp;lt;math&amp;gt;\mathbb{Q}&amp;lt;/math&amp;gt;&amp;lt;/span&amp;gt; that do contain a least element.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Induction===&lt;br /&gt;
'''Mathematical induction''' is a mathematical proof technique. It is essentially used to prove that a statement ''P''(''n'') holds for every natural number ''n''&amp;amp;nbsp;=&amp;amp;nbsp;0,&amp;amp;nbsp;1,&amp;amp;nbsp;2,&amp;amp;nbsp;3,&amp;amp;nbsp;. . . ; that is, the overall statement is a sequence of infinitely many cases ''P''(0), ''P''(1), ''P''(2), ''P''(3), . . . . Informal metaphors help to explain this technique, such as falling dominoes or climbing a ladder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;Mathematical induction proves that we can climb as high as we like on a ladder, by proving that we can climb onto the bottom rung (the '''basis''') and that from each rung we can climb up to the next one (the '''step''').&amp;quot;&lt;br /&gt;
::: — Concrete Mathematics, page 3 margins.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A '''proof by induction''' consists of two cases. The first, the '''base case''' (or '''basis'''), proves the statement for ''n ='' 0 without assuming any knowledge of other cases. The second case, the '''induction step''', proves that ''if'' the statement holds for any given case ''n = k'', ''then'' it must also hold for the next case&amp;amp;nbsp;''n''  = ''k'' + 1. These two steps establish that the statement holds for every natural number ''n''. The base case does not necessarily begin with ''n ='' 0, but often with ''n ='' 1, and possibly with any fixed natural number ''n = N'', establishing the truth of the statement for all natural numbers ''n ≥ N''.&lt;br /&gt;
&lt;br /&gt;
====Description====&lt;br /&gt;
The simplest and most common form of mathematical induction infers that a statement involving a natural number {{mvar|n}} (that is, an integer {{math|''n'' ≥ 0}} or 1) holds for all values of {{mvar|n}}. The proof consists of two steps:&lt;br /&gt;
# The '''initial''' or '''base case''': prove that the statement holds for 0, or 1.&lt;br /&gt;
# The '''induction step''', '''inductive step''', or '''step case''': prove that for every {{mvar|n}}, if the statement holds for {{mvar|n}}, then it holds for {{math|''n'' + 1}}. In other words, assume that the statement holds for some arbitrary natural number {{mvar|n}}, and prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
The hypothesis in the inductive step, that the statement holds for a particular {{mvar|n}}, is called the '''induction hypothesis''' or '''inductive hypothesis'''. To prove the inductive step, one assumes the induction hypothesis for {{mvar|n}} and then uses this assumption to prove that the statement holds for {{math|''n'' + 1}}.&lt;br /&gt;
&lt;br /&gt;
Authors who prefer to define natural numbers to begin at 0 use that value in the base case; those who define natural numbers to begin at 1 use that value.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Mathematical induction can be used to prove the following statement ''P''(''n'') for all natural numbers ''n''.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)\!:\ \ 0 + 1 + 2 + \cdots + n \,=\, \frac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This states a general formula for the sum of the natural numbers less than or equal to a given number; in fact an infinite sequence of statements:  &amp;lt;math&amp;gt;0 = \tfrac{(0)(0+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1 = \tfrac{(1)(1+1)}2&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0+1+2 = \tfrac{(2)(2+1)}2&amp;lt;/math&amp;gt;, etc.&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;u&amp;gt;Proposition.&amp;lt;/u&amp;gt;'''  For any &amp;lt;math&amp;gt;n\in\mathbb{N}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Proof.'''  Let ''P''(''n'') be the statement &amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + n = \tfrac{n(n + 1)}{2}.&amp;lt;/math&amp;gt;  We give a proof by induction on ''n''.&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Base case&amp;lt;/u&amp;gt;:'' Show that the statement holds for the smallest natural number ''n'' = 0.&lt;br /&gt;
&lt;br /&gt;
''P''(0) is clearly true:  &amp;lt;math&amp;gt;0 = \tfrac{0(0 + 1)}{2}\,.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''&amp;lt;u&amp;gt;Inductive step&amp;lt;/u&amp;gt;:'' Show that for any ''k ≥'' 0, if ''P''(''k'') holds, then ''P''(''k''+1) also holds.&lt;br /&gt;
&lt;br /&gt;
Assume the induction hypothesis that for a particular ''k'', the single case ''n = k'' holds, meaning ''P''(''k'') is true:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + \cdots + k \ =\ \frac{k(k{+}1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;It follows that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;(0 + 1 + 2 + \cdots + k )+ (k{+}1) \ =\  \frac{k(k{+}1)}2 + (k{+}1).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Algebraically, the right hand side simplifies as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\frac{k(k{+}1)}{2} + (k{+}1) &amp;amp; \ =\ \frac {k(k{+}1)+2(k{+}1)} 2 \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)(k{+}2)}{2} \\&lt;br /&gt;
&amp;amp; \ =\ \frac{(k{+}1)((k{+}1) + 1)}{2}.&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Equating the extreme left hand and right hand sides, we deduce that:&amp;lt;blockquote&amp;gt;&amp;lt;math&amp;gt;0 + 1 + 2 + \cdots + k + (k{+}1) \ =\  \frac{(k{+}1)((k{+}1)+1)}2.&amp;lt;/math&amp;gt;&amp;lt;/blockquote&amp;gt;That is, the statement ''P''(''k+''1) also holds true, establishing the inductive step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;''Conclusion''&amp;lt;/u&amp;gt;: Since both the base case and the inductive step have been proved as true, by mathematical induction the statement ''P''(''n'') holds for every natural number ''n''. ∎&lt;br /&gt;
&lt;br /&gt;
==Integers==&lt;br /&gt;
&lt;br /&gt;
==Division algorithm==&lt;br /&gt;
&lt;br /&gt;
==Congruence modulo m==&lt;br /&gt;
&lt;br /&gt;
==Algebra on &amp;lt;math&amp;gt;\Z_m&amp;lt;/math&amp;gt;==&lt;br /&gt;
&lt;br /&gt;
==GCD, LCM, and Bézout's identity==&lt;br /&gt;
&lt;br /&gt;
==Primes==&lt;br /&gt;
===Euclid's Lemma===&lt;br /&gt;
&lt;br /&gt;
==Fundamental Theorem of Arithmetic==&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Natural_number Natural number, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Mathematical_induction Mathematical induction, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [http://mathonline.wikidot.com/abstract-algebra Abstract Algebra, mathonline.wikidot.com] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Lila</name></author>
		
	</entry>
</feed>