fw刚学数论,求证:
gcd(x,y)=gcd(x−y,y)gcd(x,y)=gcd(x-y,y)gcd(x,y)=gcd(x−y,y)
证明:
设 gcd(x,y)=agcd(x,y)=agcd(x,y)=a
∴a∣x\therefore a \mid x∴a∣x , ∴a∣y\therefore a \mid y∴a∣y
∴a∣x−y\therefore a \mid x-y∴a∣x−y
∴gcd(x,y)=gcd(x−y,y)\therefore gcd(x,y)=gcd(x-y,y) ∴gcd(x,y)=gcd(x−y,y)
0 or 1