PlanetMath (more info)
 Math for the people, by the people.
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Very high Entry average rating: Medium
greatest common divisor (Definition)

Let $ a$ and $ b$ be given integers, with at least one of them different from zero. The greatest common divisor of $ a$ and $ b$, denoted by $ \gcd(a,b)$, is the positive integer $ d$ satisfying

  1. $ d\mid a$ and $ d\mid b$,
  2. if $ c\mid a$ and $ c\mid b$, then $ c\mid d$.
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

  1. $ d\mid a$ for all $ a\in S$,
  2. if $ c\mid a, \forall a\in S$, then $ c\mid d$.
We denote $ d=\operatorname{gcd}(S)$.

Remarks.

  • $ \gcd(a,b,c)=\gcd(\gcd(a,b),c)$.
  • If $ \varnothing\ne T\subseteq S\subseteq \mathbb{Z}$, then $ \gcd(S)\mid \gcd(T)$.
  • For any $ \varnothing\ne S\subseteq\mathbb{Z}$, there is a finite subset $ T\subseteq S$ such that $ \gcd(T)=\gcd(S)$.



"greatest common divisor" is owned by CWoo. [ full author list (2) | owner history (1) ]
(view preamble)

View style:

See Also: gcd domain, corollary of Bézout's lemma, example of gcd, existence and uniqueness of the gcd of two integers, congruence, rational sine and cosine, integral basis of quadratic field

Other names:  gcd, greatest common factor, highest common factor, hcf
Keywords:  number theory

Attachments:
least common multiple (Definition) by pahio
example of gcd (Example) by pahio
existence and uniqueness of the gcd of two integers (Theorem) by alozano
Log in to rate this entry.
(view current ratings)

Cross-references: subset, finite, divisors, integral domain, even, commutative ring, Bezout identity, expression, linear combination, Euclidean algorithm, rational, positive, integers
There are 28 references to this entry.

This is version 17 of greatest common divisor, born on 2001-10-16, modified 2007-12-15.
Object id is 248, canonical name is GreatestCommonDivisor.
Accessed 19062 times total.

Classification:
AMS MSC11-00 (Number theory :: General reference works )

Pending Errata and Addenda
None.
[ View all 7 ]
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add derivation | add example | add (any)