Writing gcd 1