My first blog entry also is my first english math proof ( GCD(a,b)=min{a*x+b*y, a*x+b*y>0} )

theorem 31.2

 

If a and b are any integers,not both zero,then GCD(a,b) is the smallest positive element of the set {a*x+b*y} of linear combination of a and b.

Proof:

1.Let s be the smallest positive element in the set {ax+by},q=(int)a/s.
then a mod s=a-q*s=a-q*(a*x+b*y)=(a-q*a)*x-q*b*y.
that means a mod s also is a linear combination of the a and b.
Besides,a mod s<s and s is the smallest element in the set.
Therefore a mod s should be a nonpositive integer,but acutually a mod s>=0.
Thus,a mod s must be equal to zero.
so s|a.
By analogous reasoning,we could get s|b,then s|GCD(a,b).


2.On the other hand,GCD(a,b)|a and GCD(a,b)|b,
so  GCD(a,b)|(a*x+b*y),then GCD(a,b)|s.
beacause GCD(a,b)|s and s|GCD(a,b),we could conclude that GCD(a,b) is equal to s.

 

I'ts a original edition ,I wish everyone wants to reproduce indicate the source.
 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值