Prove that ## gcd(a, n)=gcd(b, n) ##.

  • Thread starter Thread starter Math100
  • Start date Start date
Click For Summary
SUMMARY

The proof establishes that if \( a \equiv b \mod n \), then \( \text{gcd}(a, n) = \text{gcd}(b, n) \). It begins by defining \( d = \text{gcd}(a, n) \) and \( h = \text{gcd}(b, n) \), demonstrating that \( d \mid b \) and \( h \mid a \) through the properties of divisibility. The conclusion is reached by showing that \( d \) and \( h \) divide each other, leading to the equality \( d = h \). The proof emphasizes the importance of considering positive integers for the greatest common divisor to avoid ambiguity with units.

PREREQUISITES
  • Understanding of modular arithmetic, specifically congruences.
  • Knowledge of the properties of the greatest common divisor (gcd).
  • Familiarity with divisibility and integer properties.
  • Basic algebraic manipulation skills.
NEXT STEPS
  • Study the properties of modular arithmetic in depth, focusing on equivalence relations.
  • Explore the Euclidean algorithm for computing the greatest common divisor.
  • Learn about units in number theory and their implications on gcd calculations.
  • Investigate alternative proofs for gcd properties using different mathematical techniques.
USEFUL FOR

Mathematicians, students studying number theory, and anyone interested in understanding the properties of gcd in modular arithmetic.

Math100
Messages
817
Reaction score
230
Homework Statement
If ## a\equiv b \mod n ##, prove that ## gcd(a, n)=gcd(b, n) ##.
Relevant Equations
None.
Proof:

Suppose ## a\equiv b \mod n ##.
Then ## n\mid (a-b)\implies kn=a-b ## for some ## k\in\mathbb{Z} ##.
Let ## gcd(a, n)=d ## and ## gcd(b, n)=h ##.
Note that ## d\mid a \land d\mid n\implies d\mid (a-kn)\implies d\mid b ## and ## h\mid b \land h\mid n\implies h\mid (b+kn)\implies h\mid a ##.
Thus ## d\mid n \land d\mid b\implies d\mid gcd(b, n)\implies d\mid h ## and ## h\mid n \land h\mid a\implies h\mid gcd(a, n)\implies h\mid d ##.
Therefore, if ## a\equiv b \mod n ##, then ## gcd(a, n)=gcd(b, n) ##.
 
Physics news on Phys.org
Math100 said:
Homework Statement:: If ## a\equiv b \mod n ##, prove that ## gcd(a, n)=gcd(b, n) ##.
Relevant Equations:: None.

Proof:

Suppose ## a\equiv b \mod n ##.
Then ## n\mid (a-b)\implies kn=a-b ## for some ## k\in\mathbb{Z} ##.
Let ## gcd(a, n)=d ## and ## gcd(b, n)=h ##.
Note that ## d\mid a \land d\mid n\implies d\mid (a-kn)\implies d\mid b ## and ## h\mid b \land h\mid n\implies h\mid (b+kn)\implies h\mid a ##.
Thus ## d\mid n \land d\mid b\implies d\mid gcd(b, n)\implies d\mid h ## and ## h\mid n \land h\mid a\implies h\mid gcd(a, n)\implies h\mid d ##.
Therefore, if ## a\equiv b \mod n ##, then ## gcd(a, n)=gcd(b, n) ##.
I'm not sure whether this is the most elegant way to write it, but it is correct. Maybe a few too many ##\Longrightarrow ##.A common technique is to prove only ##d\,|\,h## and state that ##h\,|\,d## for symmetry reasons.

Also, there is an error in all of it. Any statement about divisors is always only true up to units. Units are invertible numbers, integers in this case. The only units in the ring of integers are ##\pm 1.## Hence we cannot conclude equality unless we add the requirement that the greatest common divisor has to be positive, which might be the case, I don't know. But from ##d\,|\,h ## and ##h\,|\,d## alone, we only get ##d=\pm h.##
 
Suppose ## a\equiv b \mod n ##.
Then ## n\mid (a-b)\implies kn=a-b ## for some ## k\in\mathbb{Z} ##.
Let ## gcd(a, n)=d ## and ## gcd(b, n)=h ## where ## d ## is a positive integer.
Note that ## d\mid a\land d\mid n\implies d\mid (a-kn)\implies d\mid b ##.
Thus ## d\mid n\land d\mid b\implies d\mid gcd(b, n)\implies d\mid h ##.
Conversely, ## h\mid d ## by symmetry.
Since ## d\mid h ## and ## h\mid d ##,
it follows that ## d=h\implies gcd(a, n)=gcd(b, n) ##.
Therefore, if ## a\equiv b \mod n ##, then ## gcd(a, n)=gcd(b, n) ##.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
1K