如果您有 a=8, b=2, m=2,那么您就有 a/b mod m = 8/2 mod 2 = 4 mod 2 = 0 和(a mod m)/(b mod m) = (8 mod 2)/(2 mod 2) = 0/0 = NaN NaN 不等于0。
No.
If you have a=8, b=2, m=2 then you have a/b mod m = 8/2 mod 2 = 4 mod 2 = 0 and (a mod m)/(b mod m) = (8 mod 2)/(2 mod 2) = 0/0 = NaN NaN is not equal to 0.
发布评论
评论(3)
不。
如果您有
a=8, b=2, m=2
,那么您就有a/b mod m = 8/2 mod 2 = 4 mod 2 = 0
和
(a mod m)/(b mod m) = (8 mod 2)/(2 mod 2) = 0/0 = NaN
NaN
不等于0
。No.
If you have
a=8, b=2, m=2
then you havea/b mod m = 8/2 mod 2 = 4 mod 2 = 0
and
(a mod m)/(b mod m) = (8 mod 2)/(2 mod 2) = 0/0 = NaN
NaN
is not equal to0
.这个恒等式不成立。这是一个反例:
因此你的身份不成立。然而,我几乎可以肯定,如果 m 和 b 互质,则它成立。
This identity does not hold. Here is a counter-example:
Thus your identity does not hold. However, I am almost certain that it will hold if m and b are relatively prime.
您可以使用以下链接来评估 (a/b)mod m......
http://mathworld.wolfram.com/Congruence.html
评估答案在结尾..
You can use the following link to evaluate (a/b)mod m.....
http://mathworld.wolfram.com/Congruence.html
The answer for evaluating is given at the end..