Thursday, 23 January 2014

algorithms - Find gcd(a,c) with gcd(a,b) and gcd(b,c) is given?



Suppose gcd(a,b) and gcd(b,c) are given. How can we find gcd(a,c)? (gcd(x,y) is the greatest common divisor of x and y). Any help is appreciated.


Answer



GCD as such has no transitive properties at all.



For example, you can take an extreme case : Let a=p, let b=1 and let c=p. Then, while gcd, it so happens that \gcd(a,c) = p. Taking p as large enough as you want, you can see that there is no relationship at all between the suggested quantities.



No comments:

Post a Comment

real analysis - How to find lim_{hrightarrow 0}frac{sin(ha)}{h}

How to find \lim_{h\rightarrow 0}\frac{\sin(ha)}{h} without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...