- #1
Peter_Newman
- 155
- 11
Hello,
I read something about to which I have a small question of understanding. Before I would like to outline it a little. So we have the primes ##p## and ##q## and we know ##p|x## and ##n = p\cdot q## furthermore it follows that ##p|n## also holds.
Now it was said that if ##p|x##, then ##\gcd(x,n)## is either ##n## or ##p##. Why is this so? I had a few thoughts that I would like to share here.
Consideration 1:
From ##p|x## it follows that there is a ##c## such that ##c \cdot p = x##, I simply put this into the ##\gcd(x,n)## and rewrite this a bit, I get ##\gcd(c\cdot p, p\cdot q)##. This is exactly ##n## if the ##c=q##, because ##c## cannot divide either the ##q## or the ##p##. (gcd of two equal numbers, is that number)
Consideration 2:
I again use the approach as before, ##\gcd(c\cdot p, p\cdot q)##. So this is ##p## exactly when ##c \neq q##, because then the only (common) divisor can be the ##q##.
I would be interested to know if the reasoning is correct.
I read something about to which I have a small question of understanding. Before I would like to outline it a little. So we have the primes ##p## and ##q## and we know ##p|x## and ##n = p\cdot q## furthermore it follows that ##p|n## also holds.
Now it was said that if ##p|x##, then ##\gcd(x,n)## is either ##n## or ##p##. Why is this so? I had a few thoughts that I would like to share here.
Consideration 1:
From ##p|x## it follows that there is a ##c## such that ##c \cdot p = x##, I simply put this into the ##\gcd(x,n)## and rewrite this a bit, I get ##\gcd(c\cdot p, p\cdot q)##. This is exactly ##n## if the ##c=q##, because ##c## cannot divide either the ##q## or the ##p##. (gcd of two equal numbers, is that number)
Consideration 2:
I again use the approach as before, ##\gcd(c\cdot p, p\cdot q)##. So this is ##p## exactly when ##c \neq q##, because then the only (common) divisor can be the ##q##.
I would be interested to know if the reasoning is correct.