# Definition:Gcd

Definition: gcd
Euclid's GCD algorithm is the function which is given as follows: , and for , where .

This function is a good inductively defined function because by definition, , so the second argument is decreasing in the inductive definition.

The algorithm can be extended to operate on negative integers by simply taking the gcd of the absolute values of its arguments.