数论推导疑问:由a≡b(mod m₁)、a≡b(mod m₂)推导a≡b(mod L)
Hey, let's work through this step by step to get past that stuck point you hit! First, let's recap your initial progress, then build on it:
由∃l∈ℤ,a−b = l·m₁得a = b + l·m₁;由∃m∈ℤ,a−b = m·m₂得a = b + m·m₂。将两式相等得b + l·m₁ = b + m·m₂,至此无法继续推导...
Great start—you've correctly translated the congruences into integer equations, and now we just need to leverage properties of the greatest common divisor (gcd) to move forward. Here's how to do it:
Simplify the equality
First, subtractbfrom both sides of your final equation to get:l·m₁ = m·m₂Introduce the gcd of m₁ and m₂
Letd = gcd(m₁, m₂). By definition, we can write:m₁ = d·m₁'wherem₁' = m₁/dm₂ = d·m₂'wherem₂' = m₂/d
Crucially,gcd(m₁', m₂') = 1(we've factored out all common divisors).
Substitute back into the equation
Replacem₁andm₂inl·m₁ = m·m₂:l·d·m₁' = m·d·m₂'
We can cancel outdfrom both sides (sincedis a positive integer, this is valid):l·m₁' = m·m₂'Use coprimality to find divisibility
Sincegcd(m₁', m₂') = 1,m₂'must dividel(this follows from Euclid's lemma, generalized to coprime integers: if a coprime pair divides a product, each divides one factor). So there exists some integerk ∈ ℤsuch that:l = k·m₂'Substitute back to find a - b
Recall thata - b = l·m₁. Plug inl = k·m₂'andm₁ = d·m₁':a - b = k·m₂'·d·m₁'
Rearrange the terms:a - b = k·d·m₁'·m₂'Connect to the least common multiple (lcm)
Remember that the lcm ofm₁andm₂is given by:lcm(m₁, m₂) = (m₁·m₂)/gcd(m₁, m₂) = (d·m₁'·d·m₂')/d = d·m₁'·m₂'
LetL = lcm(m₁, m₂). Then our equation becomes:a - b = k·L
Which directly translates to the congruence:a ≡ b (mod L)
And if we want to write a explicitly in terms of b, m₁, m₂, and k:a = b + k·(m₁·m₂)/gcd(m₁, m₂)
Which matches the result you mentioned at the start!
内容的提问来源于stack exchange,提问作者jitender

