Solving Congruences: Proving a=b

  • Context: Graduate 
  • Thread starter Thread starter ninjagod123
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 7K views
ninjagod123
Messages
7
Reaction score
0
Show that if a [tex]\equiv[/tex] b mod p for all primes p, then a = b.
 
Physics news on Phys.org
Well, a - b must be divisible by all primes p. What is the only way for this to happen?
 
JSuarez said:
Well, a - b must be divisible by all primes p. What is the only way for this to happen?

Oh hmmm...

The only way is if (a - b) is zero. How would I formally write this up? I guess a - b can't be the product of all primes?
 
Every nonzero integer can only be divisible by a finite number of primes.
 
If [itex]a> b[/itex] then a- b is a positive number. Since there are an infinite number of primes, there exist a prime, p> a- b. Then p cannot divide a- b so [itex]a\ne b (mod p)[/itex].

If [itex]b> a[/itex] just use b- a instead of a- b.