PGCD
PGCD stands for Plus Grand Commun Diviseur, the French term for the greatest common divisor (GCD). For two integers a and b, the PGCD is the largest positive integer that divides both a and b without remainder. It is usually denoted gcd(a,b) or PGCD(a,b). The concept extends to any finite set of integers by recursively taking the gcd of pairs. The gcd is always nonnegative and depends only on the absolute values of the inputs.
Key properties include commutativity (gcd(a,b) = gcd(b,a)) and the ability to factor integers. Any common divisor of
The most common algorithm for computing the PGCD is the Euclidean algorithm. It uses the principle gcd(a,b)
Applications of the PGCD include simplifying fractions, solving linear Diophantine equations, and testing coprimality in number