# Greatest common divisor

highest common factor

The largest of the common divisors of a set of integers or, in particular, of natural numbers $a_1,\ldots,a_n$. The greatest common divisor of a set of numbers not all of which are zero always exists. The greatest common divisor of $a_1,\ldots,a_n$ is usually denoted by $(a_1,\ldots,a_n)$.

Properties of the greatest common divisor are:

1) The greatest common divisor of $a_1,\ldots,a_n$ is divisible by any common divisor of these numbers.

2) $(a_1,\ldots,a_n,a_{n+1}) = ((a_1,\ldots,a_n),a_{n+1})$.

3) If $a_1,\ldots,a_n$ are expressed as $$a_1 = p_1^{\alpha_1} \cdots p_s^{\alpha_s}\ ,\ \ \ldots\ ,\ a_n = p_1^{\nu_1} \cdots p_s^{\nu_s}$$ where $p_1,\ldots,p_s$ are distinct primes, $\alpha_i \ge 0\,\,\ldots\,\,\nu_i \ge 0$, $i=1,\ldots,s$ and $\delta_i = \min\{\alpha_i,\ldots,\nu_i\}$, then $$(a_1,\ldots,a_n) = p_1^{\delta_1} \cdots p_s^{\delta_s} \ .$$

The greatest common divisor of two natural numbers can be determined by the Euclidean algorithm. The number of steps necessary to do this is bounded from above by five times the number of digits in the smaller of the two numbers (in decimal notation).

A greatest common divisor of two polynomials over a given field is a polynomial of greatest degree that divides both polynomials. In this case again, a greatest common divisor is divisible by any other common divisor of the polynomials: cf Factorization of polynomials. The Euclidean algorithm may be used in this setting also to obtain the highest common factor, with a number of steps bounded by the smaller of the degrees of the polynomials: cf Euclidean ring

A greatest common divisor of elements of an integral domain is defined as a common divisor of these elements that is divisible by any other common divisor. In general, a greatest common divisor of two elements of an integral domain need not exist (cf Divisibility in rings), but if one exists, it is unique up to multiplication by an invertible element. The greatest common divisor of two ideals $\mathfrak{a}$ and $\mathfrak{b}$ in a ring is the ideal $(\mathfrak{a},\mathfrak{b})$ generated by the union of the sets$\mathfrak{a}$ and $\mathfrak{b}$ (see Factorial ring).

How to Cite This Entry:
Greatest common divisor. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Greatest_common_divisor&oldid=34063
This article was adapted from an original article by A.A. BukhshtabV.I. Nechaev (originator), which appeared in Encyclopedia of Mathematics - ISBN 1402006098. See original article