Board logo

标题: 余数问题求教--狒狒6-6 [打印本页]

作者: cheekar    时间: 2009-10-26 07:18     标题: 余数问题求教--狒狒6-6

6、If x and y are integers and xy<>0, what is the remainder when x is divided by y?

(1) when x is divided by 2y, the remainder is 4;

(2) when x+y is divided by y, the remainder is 4;


 


【答案】B

【思路】(1)X=2Y*K+4 举反例:当Y=4,X=4时,X/Y的余数为0。当Y=3,X=10时,X/Y的余数为1. (2)X+Y=Y*K+4 则X=(K-1)Y+4, 所以X/Y的余数为4


 

 

有点想不通,如果说(1)Y=4,X=4,余数为0,那么(2)举反例时也可以Y=4,X=4.余数为0,所以应该是E啊,想不通啊想不通,请明白的筒子赐教呵~~


作者: yubyuber    时间: 2009-10-26 20:19

x,y是不同的整数 吧?
作者: Fabulous    时间: 2009-10-30 06:58

这是狒狒6里的原题,我也不明白,直接忽略掉这个条件了
作者: xionghuixh    时间: 2009-10-31 06:52

楼主反例举的不妥,if y=x=4, how can u say when x+y is divided by 4,remainder is 4??




欢迎光临 国际顶尖MBA申请交流平台--TOPWAY MBA (http://forum.topway.org/) Powered by Discuz! 7.2