<?xml version="1.0" encoding="UTF-8"?>

<record version="17" id="248">
 <title>greatest common divisor</title>
 <name>GreatestCommonDivisor</name>
 <created>2001-10-16 08:53:02</created>
 <modified>2007-12-15 11:30:26</modified>
 <type>Definition</type>
 <creator id="3771" name="CWoo"/>
 <author id="3771" name="CWoo"/>
 <author id="5" name="KimJ"/>
 <classification>
	<category scheme="msc" code="11-00"/>
 </classification>
 <synonyms>
	<synonym concept="greatest common divisor" alias="gcd"/>
	<synonym concept="greatest common divisor" alias="greatest common factor"/>
	<synonym concept="greatest common divisor" alias="highest common factor"/>
	<synonym concept="greatest common divisor" alias="hcf"/>
 </synonyms>
 <related>
	<object name="GcdDomain"/>
	<object name="CorollaryOfBezoutsLemma"/>
	<object name="ExampleOfGcd"/>
	<object name="ExistenceAndUniquenessOfTheGcdOfTwoIntegers"/>
	<object name="DivisionOfCongruence"/>
	<object name="Congruences"/>
	<object name="RationalSineAndCosine"/>
	<object name="IntegralBasisOfQuadraticField"/>
	<object name="SquareRootsOfRationals"/>
	<object name="IntegerContraharmonicMeans"/>
	<object name="SubgroupsWithCoprimeOrders"/>
 </related>
 <keywords>
	<term>number theory</term>
 </keywords>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}</preamble>
 <content>Let $a$ and $b$ be given integers, with at least one of them different from zero. The \emph{greatest common divisor} of $a$ and $b$, denoted by $\gcd(a,b)$, is the positive integer $d$ satisfying
\begin{enumerate}
\item $d\mid a$ and $d\mid b$,
\item if $c\mid a$ and $c\mid b$, then $c\mid d$.
\end{enumerate}
More intuitively, the greatest common divisor is the largest integer dividing both $a$ and $b$.

For example, $\gcd(345,135)=15$, $\gcd(-7,-21)=7$, $\gcd(18,0)=18$, and $\gcd(44,97)=1$

Given two (rational) integers, one can construct their gcd via Euclidean algorithm.  Once the gcd is found, it can be written as a linear combination of the two integers.  That is, for any two integers $a$ and $b$, we have $\operatorname{gcd}(a,b)=ra+sb$ for some integers $r$ and $s$.  This expression is known as the Bezout identity.

One can generalize the notion of a gcd of two integers into a gcd of two elements in a commutative ring.  However, given two elements in a general commutative ring, even an integral domain, a gcd may not exist.  For example, in $\mathbb{Z}[x^2,x^3]$, a gcd for the elements $x^5$ and $x^6$ does not exist, for $x^2$ and $x^3$ are both common divisors of $x^5$ and $x^6$, but neither one divides another.

The idea of the gcd of two integers can be generalized in another direction: to the gcd of a non-empty set of integers.  If $S$ is a non-empty set of integers, then the $\operatorname{gcd}$ of $S$, is a positive integer $d$ such that 
\begin{enumerate}
\item $d\mid a$ for all $a\in S$,
\item if $c\mid a, \forall a\in S$, then $c\mid d$.
\end{enumerate}
We denote $d=\operatorname{gcd}(S)$.

\textbf{Remarks}.
\begin{itemize}
\item $\gcd(a,b,c)=\gcd(\gcd(a,b),c)$.
\item If $\varnothing\ne T\subseteq S\subseteq \mathbb{Z}$, then $\gcd(S)\mid \gcd(T)$.
\item For any $\varnothing\ne S\subseteq\mathbb{Z}$, there is a finite subset $T\subseteq S$ such that $\gcd(T)=\gcd(S)$.
\end{itemize}</content>
</record>
