由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - A stupid question
相关主题
urgent question!Stupid tax form
Help for an algorithm, Thanks问一个facebook的电面题
[转载] a stupid matlab question关于除法的问题
Re: A stupid question -- to Bremen(otto计算乘法和除法,不用乘法和除法符号,怎么scale
帮我看看这个C语言错误两个整数除法的问题太刁钻了吧
Degree of Freedomleetcode上的2个整数相除
Divide Two Integersleecode上的divide two integers问题
问一道 Interviewstreet 上的题 (JAVA)两整数相除问题
相关话题的讨论汇总
话题: ab话题: gcd话题: stupid话题: question话题: divides
进入Computation版参与讨论
1 (共1页)
r****e
发帖数: 9
1
I met a problem which is easy intuitively, but I don't know how to prove it.
Please help me on this.
For all positive integer n, a, and b, if n|ab, gcd(a, n) = 1, then n|b.
gcd is greatest common divisor, n|ab means n divides a*b.
Thanks
B****n
发帖数: 11290
2
if (a,n)=1 then there exists integers x and y such that ax+ny=1
n|ab=>n|axb=>n|(1-ny)b=>n|b

【在 r****e 的大作中提到】
: I met a problem which is easy intuitively, but I don't know how to prove it.
: Please help me on this.
: For all positive integer n, a, and b, if n|ab, gcd(a, n) = 1, then n|b.
: gcd is greatest common divisor, n|ab means n divides a*b.
: Thanks

1 (共1页)
进入Computation版参与讨论
相关主题
两整数相除问题帮我看看这个C语言错误
关于Divide a integerDegree of Freedom
leetcode: Divide Two Integers 怎么做?Divide Two Integers
Divide Two Integers Answer 超时问一道 Interviewstreet 上的题 (JAVA)
urgent question!Stupid tax form
Help for an algorithm, Thanks问一个facebook的电面题
[转载] a stupid matlab question关于除法的问题
Re: A stupid question -- to Bremen(otto计算乘法和除法,不用乘法和除法符号,怎么scale
相关话题的讨论汇总
话题: ab话题: gcd话题: stupid话题: question话题: divides