I have a book that says that 6 and -6 are both greatest common divisors of 12 and 18, and thus a gcd is not uniquely defined. I have an obvious question about this. 6 >-6 so how is -6 also a gcd?
I believe they say this because the definition of GCD given in the book includes a condition that if T is GCD of a and b, then any other number, say r, that divides a and b will also be a factor of T. Then, when including all integers, 6 and -6 both can be divided by all other common factors of 12 and 18, namely 2,3,1,-1,-2 and -3. So I'm wondering is the usage of the word "greatest" in "greatest common divisor" something different than that usual meaning of the word that refers to ordering of numbers, if we are taking this over all integers and not just natural numbers? Maybe in a precise definition a modulus will be involved?