Prove: \[\gcd(ca,cb)=c\gcd(a,b)\]
\[ \begin{align*} \gcd(ca,cb)&=cam+cby\\\\ c\gcd(a,b)&|(cam+cby)\\ \gcd(a,b)&|am+by\qquad\text{Clearly true.} \end{align*}\]
Does \(cd|ce\implies d|e\)?
How about the other way?
\(\gcd(ca,~cb)\) is the "minimum" positive values that can be represented as \[(ca)x+(cb)y\]
Clearly \(\large \min\{(ca)x+(cb)y\} = c~\min\{ax+by\}\)
But \(\large \min\{ax+by\}\) is the \(\large \gcd(a,b)\) by definition. So we have : \[\large \gcd(ca,cb) =\min\{(ca)x+(cb)y\} = c~\min\{ax+by\} = c\gcd(a,b)\]
My teacher gave this proof. \[ g=\gcd(a,b)\\ cg=(ca)m+(cb)n\\ \gcd(ca,cb)|ca\land\gcd(ca,cb)|cb\\ \implies \gcd(ca,cb)|c\gcd(a,b)\\ \gcd(ca,cb)|c\gcd(a,b)\land c\gcd(a,b)|gcd(ca,cb)\\ \implies c\gcd(a,b)=\gcd(ca,cb) \]
@ganeshie8
that looks good too
I find proofs involving gcd and lcm very messy. So many names for the same thing.
Do you see why below one line proof works ? \[\large \gcd(ca,cb) =\min\{(ca)x+(cb)y\} = c~\min\{ax+by\} = c\gcd(a,b)\]
If you can factor out a constant in a minimum then yes this proof is very clear.
yes, why do you think you're not allowed to factor out a constant ? \[\large \min\{k (stuff)\} = k\min\{(stuff)\} \] you will be using that simple observation in many other proofs in discrete math
look at problem4 http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-042j-mathematics-for-computer-science-spring-2005/assignments/pset3_soln.pdf
Clearly it works but I need a proof to make sure that teachers don't nitpick on me lol.
I am not sure whether this is provable or not since it seems so trivial.
they wont nitpick on you and im sure you teacher doesn't want you make a proof artificially lengthy just for the sake of making it seem "non trivial" :P
All three proofs in this thread work just fine! but that one line proof outsmarts every other proof because thats simple and gives you more insight into linear combination representation and also it touches the more useful definition of gcd
True. I don't like divisibility proof as it is very hard to get a intuitive grasp on what is going on.
Most of these messy looking divisibility proofs can be made simpile by using congruences
The proof of \(\gcd(a,b)\times\text{lcm}(a,b)=ab\) in my book is absolutely confusing.
does your textbook use prime factorization ?
Nope. It uses a bunch of divisibility nonsense. To prove \(gcd(a,b)\times\text{lcm}(a,b)=ab\) the book uses the variables a,b,d,m,n,S,k,q. How am I suppose to remember all these variables in the proof?
It is a good idea to try to prove it on your own w/o looking at textbook
I read through the proof in the textbook quite a few (>=7) and still have a hard time memorising it. The proof involves to many letters and I still couldn't grasp it intuitively.
I don't like prime factorization in proofs like these but for this particular proof, using prime factorization is simple..
Consider prime factorization of \(a\) and \(b\) : \[\large a = p_1^{a_1}p_2^{a_2}\cdots p_r^{a_r}\] \[\large b = p_1^{b_1}p_2^{b_2}\cdots p_r^{b_r}\]
do you know how to represent gcd(a,b) and lcm(a,b) using above prime factorization ?
\[\gcd(a,b)=p_1^{\min\{a_1,b_1\}}p_2^{\min\{a_2,b_2\}}\cdots p_r^{\min\{a_r,b_r\}}\\ \text{lcm}(a,b)=p_1^{\max\{a_1,b_1\}}p_2^{\max\{a_2,b_2\}}\cdots p_r^{\max\{a_r,b_r\}}\] We were taught this way in primary schools.
Yes that still works
multiply them and show that they equal \(ab\)
thats a legit proof
\[ \gcd(a,b)\times\text{lcm}(a,b)=p_1^{\min\{a_1,b_1\}+max\{a_1,b_1\}}p_2^{\min\{a_2,b_2\}+max\{a_2,b_2\}}\cdots p_r^{\min\{a_r,b_r\}+max\{a_r,b_r\}}\\ =p_1^{a_1+b_1}p_2^{a_2+b_2}\cdots p_n^{a_n+b_n} \]
Looks perfect! as you can see the bad part is that we won't learn anything about divisibility properties
the moment you see \(\gcd(a,b)\), one way to start a proof is by letting \(d = \gcd(a,b)\) so that we have \(a = dr\) and \(b = ds\) for some integers \(r\) and \(s\).
How do you deal with the LCM though?
use the definition : \(\text{lcm}(a,b)\) is the positive integer \(m\) satisfying 1) \(a|m\) and \(b|m\) 2) If \(a|c\) and \(b|c\), then \(m \le c\).
first part tells us that the lcm(a,b) is divisible by both \(a\) and \(b\)
second part tells us that lcm(a,b)is the least such positive integer
Join our real-time social learning platform and learn together with your friends!