无需反例的最大公约数运算G的两项性质证明需求
Hey there, let's work through these two proofs about the greatest common divisor operation (labeled G here) step by step. We'll avoid specific counterexamples and instead use general constructions to show these properties hold.
First, let's recall what the cancellation law requires for an operation: if c G a = c G b (i.e., gcd(c,a) = gcd(c,b)), then we would need a = b for the law to hold. We need to show this isn't always true—meaning there exist positive integers a ≠ b where the gcds are equal.
Here's a general construction:
- Let
cbe any positive integer. - Let
bbe a multiple ofcwhereb ≠ c(sob = m*cfor some integerm ≥ 2). - Set
a = c.
Now calculate the two GCDs:
c G a = gcd(c, c) = cc G b = gcd(c, m*c) = c
Clearly, c G a = c G b, but a = c ≠ m*c = b (since m ≥ 2). Since we can pick any c ≥ 1 and m ≥ 2, such positive integers a, b, c definitely exist. This proves G doesn't satisfy the cancellation law.
Next, we need to show G doesn't distribute over addition—meaning there exist positive integers a, b, c where c G (a+b) ≠ (c G a) + (c G b) (or in standard terms, gcd(c, a+b) ≠ gcd(c,a) + gcd(c,b)).
Again, here's a general construction:
- Let
cbe any positive integer greater than or equal to 2. - Set
a = candb = c.
Now compute both sides:
- Left-hand side:
c G (a+b) = gcd(c, c + c) = gcd(c, 2c) = c - Right-hand side:
(c G a) + (c G b) = gcd(c,c) + gcd(c,c) = c + c = 2c
Since c ≥ 2, c is strictly less than 2c, so the two expressions can't be equal. This gives us an infinite family of a, b, c where distribution fails, proving G doesn't distribute over addition.
内容的提问来源于stack exchange,提问作者jitender

