Suppose $a$ and $b$ are positive integers, and that $d=\gcd(a,b)$. Suppose we have found integers $x$ and $y$ such that $ax+by=d$. Prove that $x$ and $y$ are relatively prime.
-
3Try dividing everything by $d$ – talkloud Sep 30 '11 at 00:18
-
7Welcome to MathSE. I see that this is your first question. So I wanted to let you know a few things about MathSE. Posting questions in the imperative (i.e. Compute all such, Prove that...), is considered rude by some of the members, so it would be nice of you to change that wording; perhaps by adding what are your thoughts or what you have tried in trying to answer the problem. These sort of pleasantries usually result in more and better answers. Thank you. – Arturo Magidin Sep 30 '11 at 00:19
-
2See http://math.stackexchange.com/questions/61990/how-to-show-that-gcda-b-axby-implies-gcdx-y-1 – TMM Sep 30 '11 at 00:25
-
1Sorry for the bad etiquette, I haven't explored this site enough to really understand the ins and outs. But thanks for the tip. I tried dividing everything by d to receive (ax/d) + (by/d) = 1. It is known that d|a and d|b, so it can be seen that d|ax and d|by. But from this I'm struggling to see how (x,y) can equal 1 – johnnymath Sep 30 '11 at 02:23
-
@johnnymath: Then you already have it: you have$$\left(\frac{a}{d}\right)x + \left(\frac{b}{d}\right)y = 1,$$which is an integral linear combination of $x$ and $y$. Since $(x,y)$ must divide any integral linear combination of $x$ and $y$, it divides $1$, hence equals $1$. – Arturo Magidin Sep 30 '11 at 04:53
4 Answers
If $k|x,y$, then $k|ax+by=d$, so we can write $d = kd' = ax'k + by'k$; hence $d'=ax'+by'$. Since $\gcd(a,b)|ax'+by' = d'$, then $d|d'$. Since $d'|d$, then $|d|=|d'|$.

- 398,050
Although you don't have to use proof by contradiction, it would be my first try.
Assume that $x$ and $y$ are not relatively prime. What does that mean? It means they have a common divisor larger than 1. So give that divisor a name, do some algebra, and see if you can reach a contradiction.
Post in the comments if you have problems.

- 11,565
Since, $d = (a, b)$ Let $a = dk_1, b = dk_2$ $\therefore ax + by = d \\ \Rightarrow dk_1x + dk_2y = d \\ \Rightarrow k_1x + k_2y = 1$
By Bezout's Theorem, x and y are relatively prime.

- 81
-
The last line is: By Bezout's theorem, x and y are relatively prime. Someone please format it. – Paul Jan 20 '21 at 17:28
-
-
Hint $\rm\ \,(x,y)\:\!\color{#c00}{(a,b)}\mid\overbrace{a\ x + b\ y}^{\large \color{#c00}{(a,b)}}\ \Rightarrow\ (x,y)\ |\ 1\ \:$ by cancelling $\rm\,\color{#c00}{(a,b)}\neq 0. \ \ \small\bf QED$
We used $\rm\ (a,b)\ |\ a, \ (x,y)\ |\ x\ \Rightarrow \ (a,b)\:(x,y)\ |\ \color{#0a0}{ax},\,$ by the Divisibility Product Rule.
In a similar way we infer also that $\ \rm (a,b)\,(x,y)\mid \color{#0aff}{by},\, $ so $\rm\,(a,b)(x,y)\mid \color{#0a0}{ax}+\color{#0af}{by}$.

- 272,048