<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=LCM_%26_GCD</id>
	<title>LCM &amp; GCD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mathresearch.utsa.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=LCM_%26_GCD"/>
	<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;action=history"/>
	<updated>2026-05-22T05:10:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4106&amp;oldid=prev</id>
		<title>Khanh: /* Calculation */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4106&amp;oldid=prev"/>
		<updated>2021-12-11T17:47:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Calculation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:47, 11 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l384&quot; &gt;Line 384:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 384:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Using prime factorizations ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Using prime factorizations ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Greatest common divisors can be computed by determining the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/del&gt;prime &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;factorization]]s &lt;/del&gt;of the two numbers and comparing factors. For example, to compute gcd(48,&amp;amp;nbsp;180), we find the prime factorizations 48&amp;amp;nbsp;=&amp;amp;nbsp;2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; and 180&amp;amp;nbsp;=&amp;amp;nbsp;2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;; the GCD is then 2&amp;lt;sup&amp;gt;min(4,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;min(1,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;min(0,1)&amp;lt;/sup&amp;gt; = 2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;  =&amp;amp;nbsp;12, as shown in the Venn diagram. The corresponding LCM is then  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Greatest common divisors can be computed by determining the prime &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;factorizations &lt;/ins&gt;of the two numbers and comparing factors. For example, to compute gcd(48,&amp;amp;nbsp;180), we find the prime factorizations 48&amp;amp;nbsp;=&amp;amp;nbsp;2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; and 180&amp;amp;nbsp;=&amp;amp;nbsp;2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;; the GCD is then 2&amp;lt;sup&amp;gt;min(4,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;min(1,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;min(0,1)&amp;lt;/sup&amp;gt; = 2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;  =&amp;amp;nbsp;12, as shown in the Venn diagram. The corresponding LCM is then  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2&amp;lt;sup&amp;gt;max(4,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;max(1,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;max(0,1)&amp;lt;/sup&amp;gt; =  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2&amp;lt;sup&amp;gt;max(4,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;max(1,2)&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;max(0,1)&amp;lt;/sup&amp;gt; =  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;  =&amp;amp;nbsp;720.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;3&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;&amp;amp;nbsp;·&amp;amp;nbsp;5&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;  =&amp;amp;nbsp;720.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l404&quot; &gt;Line 404:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 404:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Euclidean algorithm===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Euclidean algorithm===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:The Great Common Divisor of 62 and 36 is 2.ogv|thumb|Animation showing an application of the Euclidean algorithm to find the greatest common divisor of 62 and 36, which is 2.]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A more efficient method is the ''Euclidean algorithm'', a variant in which the difference of the two numbers {{mvar|a}} and {{mvar|b}} is replaced by the ''remainder'' of the Euclidean division (also called ''division with remainder'') of {{mvar|a}} by {{mvar|b}}.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A more efficient method is the ''Euclidean algorithm'', a variant in which the difference of the two numbers {{mvar|a}} and {{mvar|b}} is replaced by the ''remainder'' of the Euclidean division (also called ''division with remainder'') of {{mvar|a}} by {{mvar|b}}.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l470&quot; &gt;Line 470:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 468:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;\gcd(a,b)=\sum\limits_{k=1}^a \exp (2\pi ikb/a) \cdot \sum\limits_{d\left| a\right.} \frac{c_d (k)}{d} &amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;\gcd(a,b)=\sum\limits_{k=1}^a \exp (2\pi ikb/a) \cdot \sum\limits_{d\left| a\right.} \frac{c_d (k)}{d} &amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;is an &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/del&gt;entire function&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]] &lt;/del&gt;in the variable ''b'' for all positive integers ''a'' where ''c''&amp;lt;sub&amp;gt;''d''&amp;lt;/sub&amp;gt;(''k'') is Ramanujan's sum.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;is an entire function in the variable ''b'' for all positive integers ''a'' where ''c''&amp;lt;sub&amp;gt;''d''&amp;lt;/sub&amp;gt;(''k'') is Ramanujan's sum.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Complexity===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Complexity===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4105&amp;oldid=prev</id>
		<title>Khanh: /* Coprime numbers */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4105&amp;oldid=prev"/>
		<updated>2021-12-11T17:42:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Coprime numbers&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:42, 11 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l363&quot; &gt;Line 363:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 363:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Coprime numbers ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Coprime numbers ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Two numbers are called relatively prime, or &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/del&gt;coprime&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/del&gt;, if their greatest common divisor equals 1. For example, 9 and 28 are Coprime.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Two numbers are called relatively prime, or coprime, if their greatest common divisor equals 1. For example, 9 and 28 are Coprime.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== A geometric view ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== A geometric view ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4104&amp;oldid=prev</id>
		<title>Khanh: /* Definition */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4104&amp;oldid=prev"/>
		<updated>2021-12-11T17:41:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Definition&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:41, 11 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l341&quot; &gt;Line 341:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 341:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The ''greatest common divisor'' (GCD) of two nonzero integers {{mvar|a}} and {{mvar|b}}  is the greatest positive integer {{mvar|d}} such that {{mvar|d}} is a divisor of both {{mvar|a}} and {{mvar|b}}; that is, there are integers {{mvar|e}} and {{mvar|f}} such that {{math|1=''a'' = ''de''}} and {{math|1=''b'' = ''df''}}, and {{mvar|d}} is the largest such integer. The GCD of {{mvar|a}} and {{mvar|b}} is generally denoted {{math|gcd(''a'', ''b'')}}.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The ''greatest common divisor'' (GCD) of two nonzero integers {{mvar|a}} and {{mvar|b}}  is the greatest positive integer {{mvar|d}} such that {{mvar|d}} is a divisor of both {{mvar|a}} and {{mvar|b}}; that is, there are integers {{mvar|e}} and {{mvar|f}} such that {{math|1=''a'' = ''de''}} and {{math|1=''b'' = ''df''}}, and {{mvar|d}} is the largest such integer. The GCD of {{mvar|a}} and {{mvar|b}} is generally denoted {{math|gcd(''a'', ''b'')}}.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This definition also applies when one of {{mvar|a}} and {{mvar|b}} is zero. In this case, the GCD is the absolute value of the non zero integer: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{math|1=&lt;/del&gt;gcd(''a'', 0) = gcd(0, ''a'') = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{abs&lt;/del&gt;|''a''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}}}&lt;/del&gt;. This case is important as the terminating step of the Euclidean algorithm.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This definition also applies when one of {{mvar|a}} and {{mvar|b}} is zero. In this case, the GCD is the absolute value of the non zero integer: gcd(''a'', 0) = gcd(0, ''a'') = |''a''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;. This case is important as the terminating step of the Euclidean algorithm.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The above definition cannot be used for defining {{math|gcd(0, 0)}}, since {{math|1=0 × ''n'' = 0}}, and zero thus has no greatest divisor. However, zero is its own greatest divisor if ''greatest'' is understood in the context of the divisibility relation, so {{math|gcd(0, 0)}} is commonly defined as 0. This preserves the usual identities for GCD, and in particular Bézout's identity, namely that {{math|gcd(''a'', ''b'')}} generates the same ideal as {&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{math|{{mset|&lt;/del&gt;''a'', ''b''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}}&lt;/del&gt;}. This convention is followed by many computer algebra systems. Nonetheless, some authors leave {{math|gcd(0, 0)}} undefined.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The above definition cannot be used for defining {{math|gcd(0, 0)}}, since {{math|1=0 × ''n'' = 0}}, and zero thus has no greatest divisor. However, zero is its own greatest divisor if ''greatest'' is understood in the context of the divisibility relation, so {{math|gcd(0, 0)}} is commonly defined as 0. This preserves the usual identities for GCD, and in particular Bézout's identity, namely that {{math|gcd(''a'', ''b'')}} generates the same ideal as {''a'', ''b''}. This convention is followed by many computer algebra systems. Nonetheless, some authors leave {{math|gcd(0, 0)}} undefined.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The GCD of {{mvar|a}} and {{mvar|b}} is their greatest positive common divisor in the preorder relation of divisibility. This means that the common divisors of {{mvar|a}} and {{mvar|b}} are exactly the divisors of their GCD. This is commonly proved by using either Euclid's lemma, the fundamental theorem of arithmetic, or the Euclidean algorithm. This is the meaning of &amp;quot;greatest&amp;quot; that is used for the generalizations of the concept of GCD.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The GCD of {{mvar|a}} and {{mvar|b}} is their greatest positive common divisor in the preorder relation of divisibility. This means that the common divisors of {{mvar|a}} and {{mvar|b}} are exactly the divisors of their GCD. This is commonly proved by using either Euclid's lemma, the fundamental theorem of arithmetic, or the Euclidean algorithm. This is the meaning of &amp;quot;greatest&amp;quot; that is used for the generalizations of the concept of GCD.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4103&amp;oldid=prev</id>
		<title>Khanh: /* In commutative rings */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4103&amp;oldid=prev"/>
		<updated>2021-12-11T17:39:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;In commutative rings&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:39, 11 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l538&quot; &gt;Line 538:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 538:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;R = \mathbb{Z}\left[\sqrt{-3}\,\,\right],\quad a = 4 = 2\cdot 2 = \left(1+\sqrt{-3}\,\,\right)\left(1-\sqrt{-3}\,\,\right),\quad b = \left(1+\sqrt{-3}\,\,\right)\cdot 2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;R = \mathbb{Z}\left[\sqrt{-3}\,\,\right],\quad a = 4 = 2\cdot 2 = \left(1+\sqrt{-3}\,\,\right)\left(1-\sqrt{-3}\,\,\right),\quad b = \left(1+\sqrt{-3}\,\,\right)\cdot 2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements 2 and 1&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;math&amp;gt;\sqrt{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;−3&lt;/del&gt;}&amp;lt;/math&amp;gt; are two maximal common divisors (that is, any common divisor which is a multiple of 2 is associated to 2, the same holds for 1&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/del&gt;+&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;nbsp;&lt;/del&gt;&amp;lt;math&amp;gt;\sqrt{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;−3&lt;/del&gt;}&amp;lt;/math&amp;gt;, but they are not associated, so there is no greatest common divisor of {{mvar|a}} and&amp;amp;nbsp;''b''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements 2 and 1&amp;amp;nbsp;+&amp;amp;nbsp;&amp;lt;math&amp;gt;\sqrt{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-3&lt;/ins&gt;}&amp;lt;/math&amp;gt; are two maximal common divisors (that is, any common divisor which is a multiple of 2 is associated to 2, the same holds for 1 + &amp;lt;math&amp;gt;\sqrt{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-3&lt;/ins&gt;}&amp;lt;/math&amp;gt;, but they are not associated, so there is no greatest common divisor of {{mvar|a}} and&amp;amp;nbsp;''b''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Corresponding to the Bézout property we may, in any commutative ring, consider the collection of elements of the form ''pa''&amp;amp;nbsp;+&amp;amp;nbsp;''qb'', where {{mvar|p}} and {{mvar|q}} range over the ring. This is the ideal generated by {{mvar|a}} and {{mvar|b}}, and is denoted simply (''a'',&amp;amp;nbsp;''b''). In a ring all of whose ideals are principal (a principal ideal domain or PID), this ideal will be identical with the set of multiples of some ring element ''d''; then this {{mvar|d}} is a greatest common divisor of {{mvar|a}} and ''b''. But the ideal (''a'',&amp;amp;nbsp;''b'') can be useful even when there is no greatest common divisor of {{mvar|a}} and ''b''. (Indeed, Ernst Kummer used this ideal as a replacement for a GCD in his treatment of Fermat's Last Theorem, although he envisioned it as the set of multiples of some hypothetical, or ''ideal'', ring element {{mvar|d}}, whence the ring-theoretic term.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Corresponding to the Bézout property we may, in any commutative ring, consider the collection of elements of the form ''pa''&amp;amp;nbsp;+&amp;amp;nbsp;''qb'', where {{mvar|p}} and {{mvar|q}} range over the ring. This is the ideal generated by {{mvar|a}} and {{mvar|b}}, and is denoted simply (''a'',&amp;amp;nbsp;''b''). In a ring all of whose ideals are principal (a principal ideal domain or PID), this ideal will be identical with the set of multiples of some ring element ''d''; then this {{mvar|d}} is a greatest common divisor of {{mvar|a}} and ''b''. But the ideal (''a'',&amp;amp;nbsp;''b'') can be useful even when there is no greatest common divisor of {{mvar|a}} and ''b''. (Indeed, Ernst Kummer used this ideal as a replacement for a GCD in his treatment of Fermat's Last Theorem, although he envisioned it as the set of multiples of some hypothetical, or ''ideal'', ring element {{mvar|d}}, whence the ring-theoretic term.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4102&amp;oldid=prev</id>
		<title>Khanh: /* In commutative rings */</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4102&amp;oldid=prev"/>
		<updated>2021-12-11T17:37:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;In commutative rings&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:37, 11 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l538&quot; &gt;Line 538:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 538:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;R = \mathbb{Z}\left[\sqrt{-3}\,\,\right],\quad a = 4 = 2\cdot 2 = \left(1+\sqrt{-3}\,\,\right)\left(1-\sqrt{-3}\,\,\right),\quad b = \left(1+\sqrt{-3}\,\,\right)\cdot 2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:&amp;lt;math&amp;gt;R = \mathbb{Z}\left[\sqrt{-3}\,\,\right],\quad a = 4 = 2\cdot 2 = \left(1+\sqrt{-3}\,\,\right)\left(1-\sqrt{-3}\,\,\right),\quad b = \left(1+\sqrt{-3}\,\,\right)\cdot 2.&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements 2 and 1&amp;amp;nbsp;+&amp;amp;nbsp;{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{sqrt|&lt;/del&gt;−3}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;are two maximal common divisors (that is, any common divisor which is a multiple of 2 is associated to 2, the same holds for 1&amp;amp;nbsp;+&amp;amp;nbsp;{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{sqrt|&lt;/del&gt;−3}&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}&lt;/del&gt;, but they are not associated, so there is no greatest common divisor of {{mvar|a}} and&amp;amp;nbsp;''b''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The elements 2 and 1&amp;amp;nbsp;+&amp;amp;nbsp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;math&amp;gt;\sqrt&lt;/ins&gt;{−3}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/math&amp;gt; &lt;/ins&gt;are two maximal common divisors (that is, any common divisor which is a multiple of 2 is associated to 2, the same holds for 1&amp;amp;nbsp;+&amp;amp;nbsp;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;math&amp;gt;\sqrt&lt;/ins&gt;{−3}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/math&amp;gt;&lt;/ins&gt;, but they are not associated, so there is no greatest common divisor of {{mvar|a}} and&amp;amp;nbsp;''b''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Corresponding to the Bézout property we may, in any commutative ring, consider the collection of elements of the form ''pa''&amp;amp;nbsp;+&amp;amp;nbsp;''qb'', where {{mvar|p}} and {{mvar|q}} range over the ring. This is the ideal generated by {{mvar|a}} and {{mvar|b}}, and is denoted simply (''a'',&amp;amp;nbsp;''b''). In a ring all of whose ideals are principal (a principal ideal domain or PID), this ideal will be identical with the set of multiples of some ring element ''d''; then this {{mvar|d}} is a greatest common divisor of {{mvar|a}} and ''b''. But the ideal (''a'',&amp;amp;nbsp;''b'') can be useful even when there is no greatest common divisor of {{mvar|a}} and ''b''. (Indeed, Ernst Kummer used this ideal as a replacement for a GCD in his treatment of &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/del&gt;Fermat's Last Theorem&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/del&gt;, although he envisioned it as the set of multiples of some hypothetical, or ''ideal'', ring element {{mvar|d}}, whence the ring-theoretic term.)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Corresponding to the Bézout property we may, in any commutative ring, consider the collection of elements of the form ''pa''&amp;amp;nbsp;+&amp;amp;nbsp;''qb'', where {{mvar|p}} and {{mvar|q}} range over the ring. This is the ideal generated by {{mvar|a}} and {{mvar|b}}, and is denoted simply (''a'',&amp;amp;nbsp;''b''). In a ring all of whose ideals are principal (a principal ideal domain or PID), this ideal will be identical with the set of multiples of some ring element ''d''; then this {{mvar|d}} is a greatest common divisor of {{mvar|a}} and ''b''. But the ideal (''a'',&amp;amp;nbsp;''b'') can be useful even when there is no greatest common divisor of {{mvar|a}} and ''b''. (Indeed, Ernst Kummer used this ideal as a replacement for a GCD in his treatment of Fermat's Last Theorem, although he envisioned it as the set of multiples of some hypothetical, or ''ideal'', ring element {{mvar|d}}, whence the ring-theoretic term.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Licensing =  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Licensing =  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4101&amp;oldid=prev</id>
		<title>Khanh at 17:34, 11 December 2021</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4101&amp;oldid=prev"/>
		<updated>2021-12-11T17:34:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;amp;diff=4101&amp;amp;oldid=4100&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
	<entry>
		<id>https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4100&amp;oldid=prev</id>
		<title>Khanh: Created page with &quot;= Least common multiple = File:Symmetrical_5-set_Venn_diagram_LCM_2_3_4_5_7.svg|thumb|250px|A Venn diagram showing the least common multiples of combinations of 2, 3, 4, 5 a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mathresearch.utsa.edu/wiki/index.php?title=LCM_%26_GCD&amp;diff=4100&amp;oldid=prev"/>
		<updated>2021-12-11T07:51:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Least common multiple = File:Symmetrical_5-set_Venn_diagram_LCM_2_3_4_5_7.svg|thumb|250px|A Venn diagram showing the least common multiples of combinations of 2, 3, 4, 5 a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Least common multiple =&lt;br /&gt;
[[File:Symmetrical_5-set_Venn_diagram_LCM_2_3_4_5_7.svg|thumb|250px|A Venn diagram showing the least common multiples of combinations of 2, 3, 4, 5 and 7 (6 is skipped as it is 2&amp;amp;nbsp;&amp;amp;times;&amp;amp;nbsp;3, both of which are already represented).&amp;lt;br /&amp;gt;For example, a card game which requires its cards to be divided equally among up to 5 players requires at least 60 cards, the number at the intersection of the 2, 3, 4, and 5 sets, but not the 7 set.]]&lt;br /&gt;
&lt;br /&gt;
In arithmetic and number theory, the '''least common multiple''', '''lowest common multiple''', or '''smallest common multiple''' of two integers ''a'' and ''b'', usually denoted by '''lcm(''a'',&amp;amp;nbsp;''b'')''', is the smallest positive integer that is divisible by both ''a'' and ''b''. Since division of integers by zero is undefined, this definition has meaning only if ''a'' and ''b'' are both different from zero.  However, some authors define lcm(''a'',0) as 0 for all ''a'', which is the result of taking the lcm to be the least upper bound in the lattice of divisibility.&lt;br /&gt;
&lt;br /&gt;
The lcm is the &amp;quot;lowest common denominator&amp;quot; (lcd) that can be used before fractions can be added, subtracted or compared. The lcm of more than two integers is also well-defined: it is the smallest positive integer that is divisible by each of them.&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
A multiple of a number is the product of that number and an integer. For example, 10 is a multiple of 5 because 5 × 2 = 10, so 10 is divisible by 5 and 2. Because 10 is the smallest positive integer that is divisible by both 5 and 2, it is the least common multiple of 5 and 2. By the same principle, 10 is the least common multiple of −5 and −2 as well.&lt;br /&gt;
&lt;br /&gt;
=== Notation ===&lt;br /&gt;
The least common multiple of two integers ''a'' and ''b'' is denoted as lcm(''a'', ''b''). Some older textbooks use [''a'', ''b''].&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(4, 6)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Multiples of 4 are:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, ...&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Multiples of 6 are:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, ...&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Common multiples'' of 4 and 6 are the numbers that are in both lists:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; 12, 24, 36, 48, 60, 72, ...&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this list, the smallest number is 12. Hence, the ''least common multiple'' is&amp;amp;nbsp;12.&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
When adding, subtracting, or comparing simple fractions, the least common multiple of the denominators (often called the lowest common denominator) is used, because each of the fractions can be expressed as a fraction with this denominator. For example,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{2\over21}+{1\over6}={4\over42}+{7\over42}={11\over42}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the denominator 42 was used, because it is the least common multiple of 21 and 6.&lt;br /&gt;
&lt;br /&gt;
=== Gears problem ===&lt;br /&gt;
Suppose there are two meshing gears in a machine, having ''m'' and ''n'' teeth, respectively, and the gears are marked by a line segment drawn from the center of the first gear to the center of the second gear. When the gears begin rotating, the number of rotations the first gear must complete to realign the line segment can be calculated by using &amp;lt;math&amp;gt;\operatorname{lcm}(m, n)&amp;lt;/math&amp;gt;. The first gear must complete &amp;lt;math&amp;gt;\operatorname{lcm}(m, n)\over m&amp;lt;/math&amp;gt; rotations for the realignment. By that time, the second gear will have made &amp;lt;math&amp;gt;\operatorname{lcm}(m, n)\over n&amp;lt;/math&amp;gt; rotations.&lt;br /&gt;
&lt;br /&gt;
=== Planetary alignment ===&lt;br /&gt;
Suppose there are three planets revolving around a star which take ''l'', ''m'' and ''n'' units of time, respectively, to complete their orbits. Assume that ''l'', ''m'' and ''n'' are integers. Assuming the planets started moving around the star after an initial linear alignment, all the planets attain a linear alignment again after &amp;lt;math&amp;gt;\operatorname{lcm}(l, m, n)&amp;lt;/math&amp;gt; units of time. At this time, the first, second and third planet will have completed &amp;lt;math&amp;gt;\operatorname{lcm}(l, m, n)\over l&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\operatorname{lcm}(l, m, n)\over m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\operatorname{lcm}(l, m, n)\over n&amp;lt;/math&amp;gt; orbits, respectively, around the star.&lt;br /&gt;
&lt;br /&gt;
== Calculation ==&lt;br /&gt;
&lt;br /&gt;
=== Using the greatest common divisor ===&lt;br /&gt;
The following formula reduces the problem of computing the least common multiple to the problem of computing the greatest common divisor (gcd), also known as the greatest common factor:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a,b)=\frac{|ab|}{\gcd(a,b)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This formula is also valid when exactly one of ''a'' and ''b'' is 0, since gcd(''a'', 0) = |''a''|. However, if both ''a'' and ''b'' are 0, this formula would cause division by zero; lcm(0, 0) = 0 is a special case.&lt;br /&gt;
&lt;br /&gt;
There are fast algorithms for computing the gcd that do not require the numbers to be factored, such as the Euclidean algorithm. To return to the example above,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(21,6)&lt;br /&gt;
={21\cdot6\over\gcd(21,6)}&lt;br /&gt;
={21\cdot6\over\gcd(3,6)}&lt;br /&gt;
={21\cdot 6\over 3}= \frac{126}{3} = 42.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Because gcd(''a'', ''b'') is a divisor of both ''a'' and ''b'', it is more efficient to compute the lcm by dividing ''before'' multiplying:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a,b)=\left({|a|\over\gcd(a,b)}\right)\cdot |b|=\left({|b|\over\gcd(a,b)}\right)\cdot |a|.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This reduces the size of one input for both the division and the multiplication, and reduces the required storage needed for intermediate results (that is, overflow in the ''a''×''b'' computation). Because gcd(''a'', ''b'') is a divisor of both ''a'' and ''b'', the division is guaranteed to yield an integer, so the intermediate result can be stored in an integer. Implemented this way, the previous example becomes:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(21,6)={21\over\gcd(21,6)}\cdot6={21\over\gcd(3,6)}\cdot6={21\over3}\cdot6=7\cdot6=42.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using prime factorization ===&lt;br /&gt;
The unique factorization theorem indicates that every positive integer greater than 1 can be written in only one way as a product of prime numbers. The prime numbers can be considered as the atomic elements which, when combined, make up a composite number.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;90 = 2^1 \cdot 3^2 \cdot 5^1 = 2 \cdot 3 \cdot 3 \cdot 5. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, the composite number 90 is made up of one atom of the prime number 2, two atoms of the prime number 3, and one atom of the prime number 5.&lt;br /&gt;
&lt;br /&gt;
This fact can be used to find the lcm of a set of numbers.&lt;br /&gt;
&lt;br /&gt;
Example: lcm(8,9,21)&lt;br /&gt;
&lt;br /&gt;
Factor each number and express it as a product of prime number powers.&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
8 &amp;amp; = 2^3 \\&lt;br /&gt;
9 &amp;amp; = 3^2 \\&lt;br /&gt;
21 &amp;amp; = 3^1 \cdot 7^1&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The lcm will be the product of multiplying the highest power of each prime number together. The highest power of the three prime numbers 2, 3, and 7 is 2&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;, 3&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, and 7&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;, respectively. Thus,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(8,9,21) = 2^3 \cdot 3^2 \cdot 7^1 = 8 \cdot 9 \cdot 7 = 504. &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This method is not as efficient as reducing to the greatest common divisor, since there is no known general efficient algorithm for integer factorization.&lt;br /&gt;
&lt;br /&gt;
The same method can also be illustrated with a Venn diagram as follows, with the prime factorization of each of the two numbers demonstrated in each circle and ''all'' factors they share in common in the intersection. The lcm then can be found by multiplying all of the prime numbers in the diagram.&lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
&lt;br /&gt;
: 48 = 2 × 2 × 2 × 2 × 3,&lt;br /&gt;
: 180 = 2 × 2 × 3 × 3 × 5,&lt;br /&gt;
&lt;br /&gt;
sharing two &amp;quot;2&amp;quot;s and a &amp;quot;3&amp;quot; in common:&lt;br /&gt;
&lt;br /&gt;
:[[Image:least common multiple.svg|400px]]&lt;br /&gt;
&lt;br /&gt;
: Least common multiple = 2 × 2 × 2 × 2 × 3 × 3 × 5 = 720&lt;br /&gt;
: Greatest common divisor = 2 × 2 × 3 = 12&lt;br /&gt;
&lt;br /&gt;
This also works for the greatest common divisor (gcd), except that instead of multiplying all of the numbers in the Venn diagram, one multiplies only the prime factors that are in the intersection. Thus the gcd of 48 and 180 is 2&amp;amp;nbsp;×&amp;amp;nbsp;2&amp;amp;nbsp;×&amp;amp;nbsp;3&amp;amp;nbsp;=&amp;amp;nbsp;12.&lt;br /&gt;
&lt;br /&gt;
=== Using a simple algorithm ===&lt;br /&gt;
This method works easily for finding the lcm of several integers.&lt;br /&gt;
&lt;br /&gt;
Let there be a finite sequence of positive integers ''X'' = (''x''&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, ''x''&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, ..., ''x''&amp;lt;sub&amp;gt;''n''&amp;lt;/sub&amp;gt;), ''n'' &amp;gt; 1. The algorithm proceeds in steps as follows: on each step ''m'' it examines and updates the sequence ''X''&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; = (''x''&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt;, ''x''&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt;, ..., ''x''&amp;lt;sub&amp;gt;''n''&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt;), ''X''&amp;lt;sup&amp;gt;(1)&amp;lt;/sup&amp;gt; = ''X'', where ''X''&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; is the ''m''th iteration of ''X'', that is, ''X'' at step ''m'' of the algorithm, etc. The purpose of the examination is to pick the least (perhaps, one of many) element of the sequence ''X''&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt;. Assuming ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; is the selected element, the sequence ''X''&amp;lt;sup&amp;gt;(''m''+1)&amp;lt;/sup&amp;gt; is defined as&lt;br /&gt;
&lt;br /&gt;
: ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m''+1)&amp;lt;/sup&amp;gt; = ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt;, ''k'' ≠ ''k''&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&lt;br /&gt;
: ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m''+1)&amp;lt;/sup&amp;gt; = ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; + ''x''&amp;lt;sub&amp;gt;''k''&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(1)&amp;lt;/sup&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In other words, the least element is increased by the corresponding ''x'' whereas the rest of the elements pass from ''X''&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; to ''X''&amp;lt;sup&amp;gt;(''m''+1)&amp;lt;/sup&amp;gt; unchanged.&lt;br /&gt;
&lt;br /&gt;
The algorithm stops when all elements in sequence ''X''&amp;lt;sup&amp;gt;(''m'')&amp;lt;/sup&amp;gt; are equal. Their common value ''L'' is exactly lcm(''X'').&lt;br /&gt;
&lt;br /&gt;
For example, if ''X'' = ''X''&amp;lt;sup&amp;gt;(1)&amp;lt;/sup&amp;gt; = (3, 4, 6), the steps in the algorithm produce:&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(2)&amp;lt;/sup&amp;gt; = (6, 4, 6)&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(3)&amp;lt;/sup&amp;gt; = (6, 8, 6)&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(4)&amp;lt;/sup&amp;gt; = (6, 8, 12) - by choosing the second 6&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(5)&amp;lt;/sup&amp;gt; = (9, 8, 12)&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(6)&amp;lt;/sup&amp;gt; = (9, 12, 12)&lt;br /&gt;
:''X''&amp;lt;sup&amp;gt;(7)&amp;lt;/sup&amp;gt; = (12, 12, 12)  so lcm = 12.&lt;br /&gt;
&lt;br /&gt;
=== Using the table-method ===&lt;br /&gt;
This method works for any number of numbers. One begins by listing all of the numbers vertically in a table (in this example 4, 7, 12, 21, and 42):&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-family: monospace;&amp;quot;&amp;gt;&lt;br /&gt;
:  4&lt;br /&gt;
:  7&lt;br /&gt;
: 12&lt;br /&gt;
: 21&lt;br /&gt;
: 42&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The process begins by dividing all of the numbers by 2. If 2 divides any of them evenly, write 2 in a new column at the top of the table, and the result of division by 2 of each number in the space to the right in this new column. If a number is not evenly divisible, just rewrite the number again. If 2 does not divide evenly into any of the numbers, repeat this procedure with the next largest prime number, 3 (see below).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! &amp;amp;times;&lt;br /&gt;
! 2&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| '''2'''&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| '''6'''&lt;br /&gt;
|-&lt;br /&gt;
| 21&lt;br /&gt;
| 21&lt;br /&gt;
|-&lt;br /&gt;
| 42&lt;br /&gt;
| '''21'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Now, assuming that 2 did divide at least one number (as in this example), check if 2 divides again:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! &amp;amp;times;&lt;br /&gt;
! 2&lt;br /&gt;
! 2&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| '''2'''&lt;br /&gt;
| '''1'''&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| '''6'''&lt;br /&gt;
| '''3'''&lt;br /&gt;
|-&lt;br /&gt;
| 21&lt;br /&gt;
| 21&lt;br /&gt;
| 21&lt;br /&gt;
|-&lt;br /&gt;
| 42&lt;br /&gt;
| '''21'''&lt;br /&gt;
| 21&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once 2 no longer divides any number in the current column, repeat the procedure by dividing by the next larger prime, 3.  Once 3 no longer divides, try the next larger primes, 5 then 7, etc. The process ends when all of the numbers have been reduced to 1 (the column under the last prime divisor consists only of 1's).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:right&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! &amp;amp;times;&lt;br /&gt;
! 2&lt;br /&gt;
! 2&lt;br /&gt;
! 3&lt;br /&gt;
! 7&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| '''2'''&lt;br /&gt;
| '''1'''&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
| 7&lt;br /&gt;
| '''1'''&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| '''6'''&lt;br /&gt;
| '''3'''&lt;br /&gt;
| '''1'''&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 21&lt;br /&gt;
| 21&lt;br /&gt;
| 21&lt;br /&gt;
| '''7'''&lt;br /&gt;
| '''1'''&lt;br /&gt;
|-&lt;br /&gt;
| 42&lt;br /&gt;
| '''21'''&lt;br /&gt;
| 21&lt;br /&gt;
| '''7'''&lt;br /&gt;
| '''1'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Now, multiply the numbers in the top row to obtain the lcm.  In this case, it is 2&amp;amp;nbsp;×&amp;amp;nbsp;2&amp;amp;nbsp;×&amp;amp;nbsp;3&amp;amp;nbsp;×&amp;amp;nbsp;7&amp;amp;nbsp;=&amp;amp;nbsp;84.&lt;br /&gt;
&lt;br /&gt;
As a general computational algorithm, the above is quite inefficient. One would never want to implement it in software: it takes too many steps and requires too much storage space. A far more efficient numerical algorithm can be obtained by using Euclid's algorithm to compute the gcd first, and then obtaining the lcm by division.&lt;br /&gt;
&lt;br /&gt;
== Formulas ==&lt;br /&gt;
&lt;br /&gt;
=== Fundamental theorem of arithmetic ===&lt;br /&gt;
According to the fundamental theorem of arithmetic, a positive integer is the product of prime numbers, and this representation is unique up to the ordering of prime numbers:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n = 2^{n_2} 3^{n_3} 5^{n_5} 7^{n_7} \cdots = \prod_p p^{n_p},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the exponents ''n''&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, ''n''&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;, ... are non-negative integers; for example, 84 = 2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; 3&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; 5&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt; 7&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; 11&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt; 13&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt; ...&lt;br /&gt;
&lt;br /&gt;
Given two positive integers &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;a = \prod_p p^{a_p}&amp;lt;/math&amp;gt; and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;b = \prod_p p^{b_p}&amp;lt;/math&amp;gt;, their least common multiple and greatest common divisor are given by the formulas&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a,b) = \prod_p p^{\min(a_p, b_p)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a,b) = \prod_p p^{\max(a_p, b_p)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since&lt;br /&gt;
:&amp;lt;math&amp;gt;\min(x,y) + \max(x,y) = x + y,&amp;lt;/math&amp;gt;&lt;br /&gt;
this gives&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a,b) \operatorname{lcm}(a,b) = ab.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In fact, every rational number can be written uniquely as the product of primes, if negative exponents are allowed. When this is done, the above formulas remain valid. For example:&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  4 &amp;amp;= 2^2 3^0,                   &amp;amp; 6 &amp;amp;= 2^1 3^1,    &amp;amp; \gcd(4, 6) &amp;amp;= 2^1 3^0 = 2,    &amp;amp; \operatorname{lcm}(4,6) &amp;amp;= 2^2  3^1 = 12. \\[8pt]&lt;br /&gt;
  \tfrac{1}{3} &amp;amp;= 2^0 3^{-1} 5^0, &amp;amp; \tfrac{2}{5} &amp;amp;= 2^1 3^0 5^{-1}, &amp;amp; \gcd\left(\tfrac13, \tfrac{2}{5}\right) &amp;amp;= 2^0 3^{-1} 5^{-1} = \tfrac{1}{15}, &amp;amp; \operatorname{lcm}\left(\tfrac{1}{3}, \tfrac{2}{5}\right) &amp;amp;= 2^1 3^0 5^0 = 2, \\[8pt]&lt;br /&gt;
  \tfrac{1}{6} &amp;amp;= 2^{-1} 3^{-1},  &amp;amp; \tfrac{3}{4} &amp;amp;= 2^{-2} 3^1, &amp;amp; \gcd\left(\tfrac{1}{6}, \tfrac{3}{4}\right) &amp;amp;= 2^{-2} 3^{-1} = \tfrac{1}{12}, &amp;amp; \operatorname{lcm}\left(\tfrac{1}{6}, \tfrac{3}{4}\right) &amp;amp;= 2^{-1} 3^1 = \tfrac{3}{2}.&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Lattice-theoretic ===&lt;br /&gt;
The positive integers may be partially ordered by divisibility: if ''a'' divides ''b'' (that is, if ''b'' is an integer multiple of ''a'') write ''a'' ≤  ''b'' (or equivalently, ''b'' ≥ ''a''). (Note that the usual magnitude-based definition of ≤ is not used here.)&lt;br /&gt;
&lt;br /&gt;
Under this ordering, the positive integers become a lattice, with meet given by the gcd and join given by the lcm. The proof is straightforward, if a bit tedious; it amounts to checking that lcm and gcd satisfy the axioms for meet and join. Putting the lcm and gcd into this more general context establishes a duality between them:&lt;br /&gt;
&lt;br /&gt;
:''If a formula involving integer variables, gcd, lcm, ≤ and ≥  is true, then the formula obtained by switching gcd with lcm and switching  ≥  with ≤ is also true.'' (Remember ≤  is defined as divides).&lt;br /&gt;
&lt;br /&gt;
The following pairs of dual formulas are special cases of general lattice-theoretic identities.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin:0;&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
;Commutative laws&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a, b) = \operatorname{lcm}(b, a),&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a, b) =\gcd( b, a).&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
|&lt;br /&gt;
;Associative laws&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a,\operatorname{lcm}(b, c)) = \operatorname{lcm}(\operatorname{lcm}(a , b),c),&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a, \gcd(b, c)) = \gcd(\gcd(a,b), c).&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
|&lt;br /&gt;
;Absorption laws:&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a, \gcd(a,b)) = a,&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a, \operatorname{lcm}(a, b)) = a.&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin:0;&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
;Idempotent laws&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a, a) = a,&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a, a) = a.&amp;lt;/math&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
|&lt;br /&gt;
;Define divides in terms of lcm and gcd&lt;br /&gt;
:&amp;lt;math&amp;gt;a \ge b \iff a = \operatorname{lcm}(a,b),&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a \le b \iff a = \gcd(a,b).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
It can also be shown that this lattice is distributive; that is, lcm distributes over gcd and gcd distributes over lcm:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a,\gcd(b,c)) = \gcd(\operatorname{lcm}(a,b),\operatorname{lcm}(a,c)),&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(a,\operatorname{lcm}(b,c)) = \operatorname{lcm}(\gcd(a,b),\gcd(a,c)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This identity is self-dual:&lt;br /&gt;
:&amp;lt;math&amp;gt;\gcd(\operatorname{lcm}(a,b),\operatorname{lcm}(b,c),\operatorname{lcm}(a,c))=\operatorname{lcm}(\gcd(a,b),\gcd(b,c),\gcd(a,c)).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other ===&lt;br /&gt;
* Let ''D'' be the product of ''ω''(''D'') distinct prime numbers (that is, ''D'' is squarefree).&lt;br /&gt;
&lt;br /&gt;
Then&amp;lt;ref&amp;gt;Crandall &amp;amp; Pomerance, ex. 2.4, p. 101.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;|\{(x,y) \;:\; \operatorname{lcm}(x,y) = D\}| = 3^{\omega(D)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the absolute bars || denote the cardinality of a set.&lt;br /&gt;
&lt;br /&gt;
* If none of &amp;lt;math&amp;gt;a_1, a_2, \ldots , a_r&amp;lt;/math&amp;gt; is zero, then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{lcm}(a_1, a_2, \ldots , a_r) = \operatorname{lcm}(\operatorname{lcm}(a_1, a_2, \ldots , a_{r-1}), a_r). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== In commutative rings ==&lt;br /&gt;
The least common multiple can be defined generally over commutative rings as follows: Let ''a'' and ''b'' be elements of a commutative ring ''R''. A common multiple of ''a'' and ''b'' is an element ''m'' of ''R'' such that both ''a'' and ''b'' divide ''m'' (that is, there exist elements ''x'' and ''y'' of ''R'' such that ''ax'' = ''m'' and ''by'' = ''m''). A least common multiple of ''a'' and ''b'' is a common multiple that is minimal, in the sense that for any other common multiple ''n'' of ''a'' and ''b'', ''m'' divides&amp;amp;nbsp;''n''.&lt;br /&gt;
&lt;br /&gt;
In general, two elements in a commutative ring can have no least common multiple or more than one. However, any two least common multiples of the same pair of elements are associates. In a unique factorization domain, any two elements have a least common multiple. In a principal ideal domain, the least common multiple of ''a'' and ''b'' can be characterised as a generator of the intersection of the ideals generated by ''a'' and ''b'' (the intersection of a collection of ideals is always an ideal).&lt;br /&gt;
&lt;br /&gt;
== Licensing == &lt;br /&gt;
Content obtained and/or adapted from:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Least_common_multiple Least common multiple, Wikipedia] under a CC BY-SA license&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Greatest_common_divisor Greatest common divisor, Wikipedia] under a CC BY-SA license&lt;/div&gt;</summary>
		<author><name>Khanh</name></author>
		
	</entry>
</feed>