Prove if $(a,b) = 1$ implies $a|n$ and $b|n \implies ab|n$.
I'm pretty sure this has been asked before but I cannot find anything online.... I also have no idea how to solve it, I get stuck with al = bk for some l,k in the integers.
Prove if $(a,b) = 1$ implies $a|n$ and $b|n \implies ab|n$.
I'm pretty sure this has been asked before but I cannot find anything online.... I also have no idea how to solve it, I get stuck with al = bk for some l,k in the integers.
If $\gcd(a,b) = 1$ then the Bezout identity gives some $x,y$ such that $ax+by = 1$. Hence $axn+byn = n$, and since $ab \mid axn$ and $ab \mid byn$ we have $ab \mid n$.
Modular arithmetic to the rescue!
If
$$ n \equiv 0 \bmod a $$ $$ n \equiv 0 \bmod b $$
then by the Chinese Remainder Theorem,
$$ n \equiv 0 \bmod \operatorname{lcm}(a,b) $$
The proof comes out of intuition as follows:
Since $a \mid n$, Let $q$ the quotient.
$b \mid n$ $ \implies b \mid q$. Since $a$ doesn't remove any of the factors of $b$ from $n$ as there are no common factors between $a$ and $b$.
$ \implies ab \mid n$
existence and uniqueness of prime factorizations was quite intuitive. :)
– nitish712
Feb 24 '14 at 02:53
As I've been commenting that this is simpler than some other answers suggest, let me be fair and say what minimum knowledge I think is required for this conclusion. I'll assume (though the question does not say so) $a,b$ are supposed to be nonzero; anyway either being $0$ would force $n=0$, a trivial case.
You must (as is often the case when reasoning about integers) at some point use the possibility of integer division: for integer $k,l$ with $l>0$ there exist integer $q,r$ with $k=ql+r$ and $0\leq r<l$. Here it can be used to show that the smallest positive common multiple $m$ of $a,b$ (which certainly exists because $|ab|$ is a positive common multiple) divides any other common multiple $c$ of $a,b$: writing $c=qm+r$ with $0\leq r<m$ one easily sees that $r=c-qm$ is a common multiple of $a,b$, so $r=0$ by minimality of$~m$.
Now things are easy. If the least common multiple$~m$ of $a,b$ were smaller than $|ab|$, then by the above it would divide $|ab|$, and $|ab|/m>1$ would be a common divisor of $a,b$, contradicting the hypothesis $\gcd(a,b)=1$. So $m=|ab|$, and as we saw it divides any common divisor of $a,b$, such as$~n$.
Notice $\ a,b\mid n\,\Rightarrow\ ab\mid an,bn \,\Rightarrow\, ab\mid (an,bn)=(a,b)n = n\ $ by the GCD Distributive Law.
Remark $\, $ This generalizes to $\ ab = \gcd(a,b) {\rm lcm}(a,b)\ $ if $\ {\rm lcm}(a,b)\,$ exists (true in any domain).
Note that if something is divisible by both $a$ and $b$, it must also be divisible by the least common multiple of $a$ and $b$. Hence, we have that $lcm(a,b)\ |\ n$.
You're already given that $gcd(a,b) = 1$, what can you conclude from that about $lcm(a,b)$?
If $\ \color{#0a0}{(a,b)=1}\,$ then $\ a,b\mid n\,\Rightarrow\, \color{#0a0}a\mid \color{#0a0}b\,(n/b)\,\overset{\color{#c00}{\rm(E)}}\Rightarrow\, a\mid n/b\,\overset{\times\ b}\Rightarrow\,ab\mid n\ $ by $\,\color{#c00}{\rm(E)} =$ Euclid's Lemma.