I'm trying to prove something about divisilibity and got stuck for long hours in the following:
All the integers mentioned below are ≥0.
Let q and m be integers and let d be a divisor of m.
Show that if $q
My attempt:
Well, clearly md divides both. Suppose that there is a k>md such that k divides both.
I'm trying to conclude then that k must divide md, but the fact that md and q are not necessarily coprime is making things really difficult. By doing some examples and seeing what was going on, I came up with the formula
m−q⋅md=md(d−q),
which gives the question for q=d−1.
How can I finish this proof? Thanks.
Answer
I find this route simpler:
Since gcd(q,d)=1, there are x,y∈Z such that qx+dy=1.
Multiplying both sides by md,we get
qmdx+my=md.
This proves that md is a multiple of gcd(qmd,m).
Since md is a common divisor of qmd and m, it must divide gcd(qmd,m).
Therefore, md=gcd(qmd,m).
No comments:
Post a Comment