Understanding the Results of gcd(x,n)

  • Context: Undergrad 
  • Thread starter Thread starter Peter_Newman
  • Start date Start date
  • Tags Tags
    Gcd Number theory
Click For Summary

Discussion Overview

The discussion revolves around understanding the behavior of the greatest common divisor (gcd) when one of the factors is a prime divisor of a composite number. Specifically, the participants explore the implications of having a prime divisor \( p \) of \( x \) and a composite number \( n = p \cdot q \), examining under what conditions \( \gcd(x, n) \) can equal either \( n \) or \( p \).

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that if \( p | x \), then \( \gcd(x, n) \) is either \( n \) or \( p \), and provides reasoning based on the relationship between \( c \) and \( q \).
  • Another participant clarifies that the relevant consideration is whether \( q \) divides \( c \), rather than \( c \) being equal to \( q \).
  • A participant expresses confusion about how the assertion regarding \( \gcd(x, n) \) follows from the earlier reasoning and requests further clarification.
  • One participant states that if \( q \) does not divide \( c \), then \( \gcd(cp, pq) = p \), arguing that \( p \) is the greatest common factor in this case.
  • Another participant questions the reasoning if \( q \) divides \( c \), suggesting that it should lead to \( n \) instead of just \( q \).
  • A later reply proposes testing with \( c = qd \) to clarify the situation when \( q \) divides \( c \).

Areas of Agreement / Disagreement

Participants express differing views on the implications of \( q \) dividing \( c \) and whether this leads to \( \gcd(x, n) \) being \( n \) or \( q \). The discussion remains unresolved with multiple competing interpretations of the gcd behavior.

Contextual Notes

Participants rely on specific definitions of divisibility and gcd, and there are unresolved assumptions regarding the nature of \( c \) and its relationship to \( q \). The discussion does not reach a consensus on the implications of these relationships.

Peter_Newman
Messages
155
Reaction score
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.
 
Physics news on Phys.org
If ##n = pq## then the only divisors of ##n## are ##1,p, q, pq##.

Then the two cases are whether ##q## divides ##x## or not.

It's not a case of ##c =q##, it's a case of whether ##q## divides ##c##.
 
  • Like
Likes   Reactions: Peter_Newman
Hello @PeroK , can you explain this a little further? From there, it is not really clear to me, how one then comes to the assertion "if ##p|x##, then ##gcd(x,n)## is either ##n## or ##p##".
 
Peter_Newman said:
Hello @PeroK , can you explain this a little further? From there, it is not really clear to me, how one then comes to the assertion "if ##p|x##, then ##gcd(x,n)## is either ##n## or ##p##".
I left that bit for you to do. Look at the two cases I mentioned.
 
OK, then I would get started:

If the ##q## does not divide the ##c##, then ##\gcd(cp,pq)=p##, I would argue that the ##p## is the greatest common factor (in the expression of the gcd()). Is stat okay?
 
Peter_Newman said:
OK, then I would get started:

If the ##q## does not divide the ##c##, then ##\gcd(cp,pq)=p##, I would argue that the ##p## is the greatest common factor (in the expression of the gcd()). Is stat okay?
Yes.
 
  • Like
Likes   Reactions: Peter_Newman
Thank you @PeroK .

I have to admit, however, that the other part of proving "feels" kind of weird.

If the ##q## divides the ##c##, then surely the ##\gcd(cp,pq) = q##, but that can't be? Surely it should be shown that then the ##n## results?!
 
Peter_Newman said:
Thank you @PeroK .

I have to admit, however, that the other part of proving "feels" kind of weird.

If the ##q## divides the ##c##, then surely the ##\gcd(cp,pq) = q##, but that can't be? Surely it should be shown that then the ##n## results?!
You're looking for the greatest common divisor. And ##pq > q##.

Try ##c = qd## if you are still unsure.
 
  • Like
Likes   Reactions: Peter_Newman
Oh, now I see what you mean! Yes, of course that is absolutely right! If the ##q## divides the ##c## that means exactly ##k\cdot q = c##... Insert and one sees the "magic". Many thanks @PeroK !
 
  • Like
Likes   Reactions: PeroK

Similar threads

  • · Replies 23 ·
Replies
23
Views
1K
Replies
48
Views
5K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 12 ·
Replies
12
Views
826
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 26 ·
Replies
26
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K