Understanding the Existence and Uniqueness of the GCD












2












$begingroup$


Definitions



For $a,b in mathbb{Z}$, a positive integer $c$ is said to be a common divisor of $a$ and $b$ if $cmid a$ and $cmid b$.



$c$ is the greatest common divisor of $a$ and $b$ if it is a common divisor of $a,b$ and for any common divisor $d$ of $a$ and $b$, we have $dmid c$.



The Proof



For all $a,b in mathbb{Z^{+}}$ there exists a unique $c in mathbb{Z^{+}}$, that is the greatest common divisor of $a,b$.



Let $S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. Since $ S neq emptyset$, then by the WOP, S has a least element $c$. We claim $c$ is a greatest common denominator of $a,b$.



My Problem




$S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. I have no idea what this has to do with the greatest common divisor. I understand the WOP ensures the existence of a smallest element, but why can I just claim this as the GCD?











share|cite|improve this question











$endgroup$












  • $begingroup$
    That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:11










  • $begingroup$
    The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:18










  • $begingroup$
    @fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
    $endgroup$
    – Dunka
    Apr 3 '17 at 5:46










  • $begingroup$
    Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:00






  • 1




    $begingroup$
    Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
    $endgroup$
    – Bill Dubuque
    Apr 3 '17 at 16:11
















2












$begingroup$


Definitions



For $a,b in mathbb{Z}$, a positive integer $c$ is said to be a common divisor of $a$ and $b$ if $cmid a$ and $cmid b$.



$c$ is the greatest common divisor of $a$ and $b$ if it is a common divisor of $a,b$ and for any common divisor $d$ of $a$ and $b$, we have $dmid c$.



The Proof



For all $a,b in mathbb{Z^{+}}$ there exists a unique $c in mathbb{Z^{+}}$, that is the greatest common divisor of $a,b$.



Let $S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. Since $ S neq emptyset$, then by the WOP, S has a least element $c$. We claim $c$ is a greatest common denominator of $a,b$.



My Problem




$S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. I have no idea what this has to do with the greatest common divisor. I understand the WOP ensures the existence of a smallest element, but why can I just claim this as the GCD?











share|cite|improve this question











$endgroup$












  • $begingroup$
    That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:11










  • $begingroup$
    The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:18










  • $begingroup$
    @fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
    $endgroup$
    – Dunka
    Apr 3 '17 at 5:46










  • $begingroup$
    Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:00






  • 1




    $begingroup$
    Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
    $endgroup$
    – Bill Dubuque
    Apr 3 '17 at 16:11














2












2








2





$begingroup$


Definitions



For $a,b in mathbb{Z}$, a positive integer $c$ is said to be a common divisor of $a$ and $b$ if $cmid a$ and $cmid b$.



$c$ is the greatest common divisor of $a$ and $b$ if it is a common divisor of $a,b$ and for any common divisor $d$ of $a$ and $b$, we have $dmid c$.



The Proof



For all $a,b in mathbb{Z^{+}}$ there exists a unique $c in mathbb{Z^{+}}$, that is the greatest common divisor of $a,b$.



Let $S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. Since $ S neq emptyset$, then by the WOP, S has a least element $c$. We claim $c$ is a greatest common denominator of $a,b$.



My Problem




$S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. I have no idea what this has to do with the greatest common divisor. I understand the WOP ensures the existence of a smallest element, but why can I just claim this as the GCD?











share|cite|improve this question











$endgroup$




Definitions



For $a,b in mathbb{Z}$, a positive integer $c$ is said to be a common divisor of $a$ and $b$ if $cmid a$ and $cmid b$.



$c$ is the greatest common divisor of $a$ and $b$ if it is a common divisor of $a,b$ and for any common divisor $d$ of $a$ and $b$, we have $dmid c$.



The Proof



For all $a,b in mathbb{Z^{+}}$ there exists a unique $c in mathbb{Z^{+}}$, that is the greatest common divisor of $a,b$.



Let $S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. Since $ S neq emptyset$, then by the WOP, S has a least element $c$. We claim $c$ is a greatest common denominator of $a,b$.



My Problem




$S = {as + bt: s,tin mathbb{Z}, as+bt > 0}$. I have no idea what this has to do with the greatest common divisor. I understand the WOP ensures the existence of a smallest element, but why can I just claim this as the GCD?








elementary-number-theory discrete-mathematics proof-explanation greatest-common-divisor






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 3 '17 at 20:23









Xam

4,57551846




4,57551846










asked Apr 3 '17 at 3:03









DunkaDunka

1,43732045




1,43732045












  • $begingroup$
    That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:11










  • $begingroup$
    The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:18










  • $begingroup$
    @fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
    $endgroup$
    – Dunka
    Apr 3 '17 at 5:46










  • $begingroup$
    Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:00






  • 1




    $begingroup$
    Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
    $endgroup$
    – Bill Dubuque
    Apr 3 '17 at 16:11


















  • $begingroup$
    That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:11










  • $begingroup$
    The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
    $endgroup$
    – fleablood
    Apr 3 '17 at 3:18










  • $begingroup$
    @fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
    $endgroup$
    – Dunka
    Apr 3 '17 at 5:46










  • $begingroup$
    Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:00






  • 1




    $begingroup$
    Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
    $endgroup$
    – Bill Dubuque
    Apr 3 '17 at 16:11
















$begingroup$
That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
$endgroup$
– fleablood
Apr 3 '17 at 3:11




$begingroup$
That's not a proof of the greatest common divisor. That's a proof of the least common multiple.
$endgroup$
– fleablood
Apr 3 '17 at 3:11












$begingroup$
The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
$endgroup$
– fleablood
Apr 3 '17 at 3:18




$begingroup$
The proof of gcd would be to let S={k| k|a,k||b}. It's not empty as 1 is in it. So it has a max element c. Gotta prove all divisors divide c
$endgroup$
– fleablood
Apr 3 '17 at 3:18












$begingroup$
@fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
$endgroup$
– Dunka
Apr 3 '17 at 5:46




$begingroup$
@fleablood this comes from the book "Discrete and Combinatorial Mathematics: An Applied Introduction" by Ralph P. Grimaldi. Maybe an error?
$endgroup$
– Dunka
Apr 3 '17 at 5:46












$begingroup$
Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
$endgroup$
– fleablood
Apr 3 '17 at 6:00




$begingroup$
Oops. I assumed those had to be positive integers. So, yes this is the gcd. But you have to continue the prove to see that this is so. It's not imediately apparent. Example: gcd(6,15) is 3 and the smallest 15s+6t is 1x15-2x6=3. And 3 is the gcd.
$endgroup$
– fleablood
Apr 3 '17 at 6:00




1




1




$begingroup$
Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
$endgroup$
– Bill Dubuque
Apr 3 '17 at 16:11




$begingroup$
Are you asking how to finish the quoted proof (isn't that done in your book?), or, instead, do you seek some intuition about why the proof uses the set $S$?
$endgroup$
– Bill Dubuque
Apr 3 '17 at 16:11










2 Answers
2






active

oldest

votes


















2












$begingroup$

This is related to Bezout identity.



Let $c_0=as_0+bt_0=min(S)tag{0}$



Then if $d$ is a common divisor of $a,b$ then $a=da'$ and $b=db'$ we have $as_0+bt_0=d(a's_0+b't_0)=c_0$



$text{d divides a,b}Rightarrow dmid c_0tag{1}$






On the other hand for $cin S$, we have $c=as+bt=c_0q+r=(as_0+bt_0)q+r$



So $r=(s-s_0q)a+(t-t_0q)b overset{?}{in} Squad$ but $0le r<c_0$ by euclidian division definition.



If $r>0$ this contradict the fact that $c_0$ is $min(S)$, so $r=0$ and $c=c_0q$



Note: since $qge 1$ then $cge c_0$ ($qge 0$ integer, and cannot be $0$, else $c=0notin S$). We already know it from the minimum assertion, but it's good to have it back as a verification.



$cin SRightarrow ctext{ is a multiple of }c_0tag{2}$






Using the same method of euclidian division by $c_0$, we can show that $a$ and $b$ are also multiples of $c_0$. (note: $q,r$ are dummy variables, they are not the same than previously).



$a=c_0q+r=(as_0+bt_0)q+r$ with $0le r<c_0$ so $r=(1-s_0q)a+(-t_0q)boverset{?}{in} S$ and we conclude like previously, same with $b$.



$a,b text{ are multiples of } c_0tag{3}$







Combining $(0),(1),(2),(3)$ we proved that $c_0=gcd(a,b)$ and that $c_0$ is the smallest number reachable by a relation of type $S$ whose elements are all multiples of $c_0$.





To put this in everyday words: if two numbers are multiple of $3$ for instance, then their sum and their difference is also a multiple of $3$. Plus if they are not equal, the smallest possible difference is $3$.



Replace $3$ by $gcd(a,b)$ and this is exactly what is mathematically written above.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    In paragraph 4 how do you know c_0 is a common divisor?
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:30










  • $begingroup$
    @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
    $endgroup$
    – zwim
    Apr 3 '17 at 8:20



















0












$begingroup$

We are asked to show the existence and uniqueness of the GCD denoted as $c$ of two integers $a,b$. There are two parts of of this proof: Showing the existence and showing the uniqueness. To show the existence we must show there is a $c$ that divides $a,b$ and for any common divisor $d$ of $a,b$, $d|c$.



Part I: Existence



1) Let $S = {as+bt|s,t in mathbb{Z},as+bt > 0}$. Since $S neq emptyset$, by WOP, $S$ has a smallest element $c$, which we will call the GCD.



2) Will now show any divisor $d$ also divided $c$. $c in S implies c =ax+by$ and any $d in mathbb{Z} land d|a land d|b implies d|(ax+by) implies d|c$



3) We now show that $c|a$ and $c|b$. If $c$ doesn't divide $a$, then $a = qc + r$ where $q,r in mathbb{Z^+} land 0 < r < c implies r = a - qc = a - q(ax + by) = a - qax - qby = a(1-qx) + (-qy)b implies r in S$ this contradicts that $c$ is the smallest element in $S$. Similar arguments apply for b



4) We have shown $c|a land c|b land d|c$ for any divisor $d$ of $a,b$, so now we must show that $c$ is unique.



Part II: Uniqueness



1) If $c_1,c_2$ both satisfy the conditions of GCD, then one is GCD and one is common divisor. If $c_1$ is GCD and $c_2$ is CD, then $c_2|c_1$ the other way around, we have $c_1|c_2$ which means $c_1 = c_2$ because they are both positive.






share|cite|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2215445%2funderstanding-the-existence-and-uniqueness-of-the-gcd%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2












    $begingroup$

    This is related to Bezout identity.



    Let $c_0=as_0+bt_0=min(S)tag{0}$



    Then if $d$ is a common divisor of $a,b$ then $a=da'$ and $b=db'$ we have $as_0+bt_0=d(a's_0+b't_0)=c_0$



    $text{d divides a,b}Rightarrow dmid c_0tag{1}$






    On the other hand for $cin S$, we have $c=as+bt=c_0q+r=(as_0+bt_0)q+r$



    So $r=(s-s_0q)a+(t-t_0q)b overset{?}{in} Squad$ but $0le r<c_0$ by euclidian division definition.



    If $r>0$ this contradict the fact that $c_0$ is $min(S)$, so $r=0$ and $c=c_0q$



    Note: since $qge 1$ then $cge c_0$ ($qge 0$ integer, and cannot be $0$, else $c=0notin S$). We already know it from the minimum assertion, but it's good to have it back as a verification.



    $cin SRightarrow ctext{ is a multiple of }c_0tag{2}$






    Using the same method of euclidian division by $c_0$, we can show that $a$ and $b$ are also multiples of $c_0$. (note: $q,r$ are dummy variables, they are not the same than previously).



    $a=c_0q+r=(as_0+bt_0)q+r$ with $0le r<c_0$ so $r=(1-s_0q)a+(-t_0q)boverset{?}{in} S$ and we conclude like previously, same with $b$.



    $a,b text{ are multiples of } c_0tag{3}$







    Combining $(0),(1),(2),(3)$ we proved that $c_0=gcd(a,b)$ and that $c_0$ is the smallest number reachable by a relation of type $S$ whose elements are all multiples of $c_0$.





    To put this in everyday words: if two numbers are multiple of $3$ for instance, then their sum and their difference is also a multiple of $3$. Plus if they are not equal, the smallest possible difference is $3$.



    Replace $3$ by $gcd(a,b)$ and this is exactly what is mathematically written above.






    share|cite|improve this answer











    $endgroup$









    • 1




      $begingroup$
      In paragraph 4 how do you know c_0 is a common divisor?
      $endgroup$
      – fleablood
      Apr 3 '17 at 6:30










    • $begingroup$
      @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
      $endgroup$
      – zwim
      Apr 3 '17 at 8:20
















    2












    $begingroup$

    This is related to Bezout identity.



    Let $c_0=as_0+bt_0=min(S)tag{0}$



    Then if $d$ is a common divisor of $a,b$ then $a=da'$ and $b=db'$ we have $as_0+bt_0=d(a's_0+b't_0)=c_0$



    $text{d divides a,b}Rightarrow dmid c_0tag{1}$






    On the other hand for $cin S$, we have $c=as+bt=c_0q+r=(as_0+bt_0)q+r$



    So $r=(s-s_0q)a+(t-t_0q)b overset{?}{in} Squad$ but $0le r<c_0$ by euclidian division definition.



    If $r>0$ this contradict the fact that $c_0$ is $min(S)$, so $r=0$ and $c=c_0q$



    Note: since $qge 1$ then $cge c_0$ ($qge 0$ integer, and cannot be $0$, else $c=0notin S$). We already know it from the minimum assertion, but it's good to have it back as a verification.



    $cin SRightarrow ctext{ is a multiple of }c_0tag{2}$






    Using the same method of euclidian division by $c_0$, we can show that $a$ and $b$ are also multiples of $c_0$. (note: $q,r$ are dummy variables, they are not the same than previously).



    $a=c_0q+r=(as_0+bt_0)q+r$ with $0le r<c_0$ so $r=(1-s_0q)a+(-t_0q)boverset{?}{in} S$ and we conclude like previously, same with $b$.



    $a,b text{ are multiples of } c_0tag{3}$







    Combining $(0),(1),(2),(3)$ we proved that $c_0=gcd(a,b)$ and that $c_0$ is the smallest number reachable by a relation of type $S$ whose elements are all multiples of $c_0$.





    To put this in everyday words: if two numbers are multiple of $3$ for instance, then their sum and their difference is also a multiple of $3$. Plus if they are not equal, the smallest possible difference is $3$.



    Replace $3$ by $gcd(a,b)$ and this is exactly what is mathematically written above.






    share|cite|improve this answer











    $endgroup$









    • 1




      $begingroup$
      In paragraph 4 how do you know c_0 is a common divisor?
      $endgroup$
      – fleablood
      Apr 3 '17 at 6:30










    • $begingroup$
      @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
      $endgroup$
      – zwim
      Apr 3 '17 at 8:20














    2












    2








    2





    $begingroup$

    This is related to Bezout identity.



    Let $c_0=as_0+bt_0=min(S)tag{0}$



    Then if $d$ is a common divisor of $a,b$ then $a=da'$ and $b=db'$ we have $as_0+bt_0=d(a's_0+b't_0)=c_0$



    $text{d divides a,b}Rightarrow dmid c_0tag{1}$






    On the other hand for $cin S$, we have $c=as+bt=c_0q+r=(as_0+bt_0)q+r$



    So $r=(s-s_0q)a+(t-t_0q)b overset{?}{in} Squad$ but $0le r<c_0$ by euclidian division definition.



    If $r>0$ this contradict the fact that $c_0$ is $min(S)$, so $r=0$ and $c=c_0q$



    Note: since $qge 1$ then $cge c_0$ ($qge 0$ integer, and cannot be $0$, else $c=0notin S$). We already know it from the minimum assertion, but it's good to have it back as a verification.



    $cin SRightarrow ctext{ is a multiple of }c_0tag{2}$






    Using the same method of euclidian division by $c_0$, we can show that $a$ and $b$ are also multiples of $c_0$. (note: $q,r$ are dummy variables, they are not the same than previously).



    $a=c_0q+r=(as_0+bt_0)q+r$ with $0le r<c_0$ so $r=(1-s_0q)a+(-t_0q)boverset{?}{in} S$ and we conclude like previously, same with $b$.



    $a,b text{ are multiples of } c_0tag{3}$







    Combining $(0),(1),(2),(3)$ we proved that $c_0=gcd(a,b)$ and that $c_0$ is the smallest number reachable by a relation of type $S$ whose elements are all multiples of $c_0$.





    To put this in everyday words: if two numbers are multiple of $3$ for instance, then their sum and their difference is also a multiple of $3$. Plus if they are not equal, the smallest possible difference is $3$.



    Replace $3$ by $gcd(a,b)$ and this is exactly what is mathematically written above.






    share|cite|improve this answer











    $endgroup$



    This is related to Bezout identity.



    Let $c_0=as_0+bt_0=min(S)tag{0}$



    Then if $d$ is a common divisor of $a,b$ then $a=da'$ and $b=db'$ we have $as_0+bt_0=d(a's_0+b't_0)=c_0$



    $text{d divides a,b}Rightarrow dmid c_0tag{1}$






    On the other hand for $cin S$, we have $c=as+bt=c_0q+r=(as_0+bt_0)q+r$



    So $r=(s-s_0q)a+(t-t_0q)b overset{?}{in} Squad$ but $0le r<c_0$ by euclidian division definition.



    If $r>0$ this contradict the fact that $c_0$ is $min(S)$, so $r=0$ and $c=c_0q$



    Note: since $qge 1$ then $cge c_0$ ($qge 0$ integer, and cannot be $0$, else $c=0notin S$). We already know it from the minimum assertion, but it's good to have it back as a verification.



    $cin SRightarrow ctext{ is a multiple of }c_0tag{2}$






    Using the same method of euclidian division by $c_0$, we can show that $a$ and $b$ are also multiples of $c_0$. (note: $q,r$ are dummy variables, they are not the same than previously).



    $a=c_0q+r=(as_0+bt_0)q+r$ with $0le r<c_0$ so $r=(1-s_0q)a+(-t_0q)boverset{?}{in} S$ and we conclude like previously, same with $b$.



    $a,b text{ are multiples of } c_0tag{3}$







    Combining $(0),(1),(2),(3)$ we proved that $c_0=gcd(a,b)$ and that $c_0$ is the smallest number reachable by a relation of type $S$ whose elements are all multiples of $c_0$.





    To put this in everyday words: if two numbers are multiple of $3$ for instance, then their sum and their difference is also a multiple of $3$. Plus if they are not equal, the smallest possible difference is $3$.



    Replace $3$ by $gcd(a,b)$ and this is exactly what is mathematically written above.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Apr 3 '17 at 8:30

























    answered Apr 3 '17 at 3:13









    zwimzwim

    12.5k831




    12.5k831








    • 1




      $begingroup$
      In paragraph 4 how do you know c_0 is a common divisor?
      $endgroup$
      – fleablood
      Apr 3 '17 at 6:30










    • $begingroup$
      @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
      $endgroup$
      – zwim
      Apr 3 '17 at 8:20














    • 1




      $begingroup$
      In paragraph 4 how do you know c_0 is a common divisor?
      $endgroup$
      – fleablood
      Apr 3 '17 at 6:30










    • $begingroup$
      @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
      $endgroup$
      – zwim
      Apr 3 '17 at 8:20








    1




    1




    $begingroup$
    In paragraph 4 how do you know c_0 is a common divisor?
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:30




    $begingroup$
    In paragraph 4 how do you know c_0 is a common divisor?
    $endgroup$
    – fleablood
    Apr 3 '17 at 6:30












    $begingroup$
    @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
    $endgroup$
    – zwim
    Apr 3 '17 at 8:20




    $begingroup$
    @fleablood you are right, it is not written explicitly, I'll edit, this is equation (3).
    $endgroup$
    – zwim
    Apr 3 '17 at 8:20











    0












    $begingroup$

    We are asked to show the existence and uniqueness of the GCD denoted as $c$ of two integers $a,b$. There are two parts of of this proof: Showing the existence and showing the uniqueness. To show the existence we must show there is a $c$ that divides $a,b$ and for any common divisor $d$ of $a,b$, $d|c$.



    Part I: Existence



    1) Let $S = {as+bt|s,t in mathbb{Z},as+bt > 0}$. Since $S neq emptyset$, by WOP, $S$ has a smallest element $c$, which we will call the GCD.



    2) Will now show any divisor $d$ also divided $c$. $c in S implies c =ax+by$ and any $d in mathbb{Z} land d|a land d|b implies d|(ax+by) implies d|c$



    3) We now show that $c|a$ and $c|b$. If $c$ doesn't divide $a$, then $a = qc + r$ where $q,r in mathbb{Z^+} land 0 < r < c implies r = a - qc = a - q(ax + by) = a - qax - qby = a(1-qx) + (-qy)b implies r in S$ this contradicts that $c$ is the smallest element in $S$. Similar arguments apply for b



    4) We have shown $c|a land c|b land d|c$ for any divisor $d$ of $a,b$, so now we must show that $c$ is unique.



    Part II: Uniqueness



    1) If $c_1,c_2$ both satisfy the conditions of GCD, then one is GCD and one is common divisor. If $c_1$ is GCD and $c_2$ is CD, then $c_2|c_1$ the other way around, we have $c_1|c_2$ which means $c_1 = c_2$ because they are both positive.






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      We are asked to show the existence and uniqueness of the GCD denoted as $c$ of two integers $a,b$. There are two parts of of this proof: Showing the existence and showing the uniqueness. To show the existence we must show there is a $c$ that divides $a,b$ and for any common divisor $d$ of $a,b$, $d|c$.



      Part I: Existence



      1) Let $S = {as+bt|s,t in mathbb{Z},as+bt > 0}$. Since $S neq emptyset$, by WOP, $S$ has a smallest element $c$, which we will call the GCD.



      2) Will now show any divisor $d$ also divided $c$. $c in S implies c =ax+by$ and any $d in mathbb{Z} land d|a land d|b implies d|(ax+by) implies d|c$



      3) We now show that $c|a$ and $c|b$. If $c$ doesn't divide $a$, then $a = qc + r$ where $q,r in mathbb{Z^+} land 0 < r < c implies r = a - qc = a - q(ax + by) = a - qax - qby = a(1-qx) + (-qy)b implies r in S$ this contradicts that $c$ is the smallest element in $S$. Similar arguments apply for b



      4) We have shown $c|a land c|b land d|c$ for any divisor $d$ of $a,b$, so now we must show that $c$ is unique.



      Part II: Uniqueness



      1) If $c_1,c_2$ both satisfy the conditions of GCD, then one is GCD and one is common divisor. If $c_1$ is GCD and $c_2$ is CD, then $c_2|c_1$ the other way around, we have $c_1|c_2$ which means $c_1 = c_2$ because they are both positive.






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        We are asked to show the existence and uniqueness of the GCD denoted as $c$ of two integers $a,b$. There are two parts of of this proof: Showing the existence and showing the uniqueness. To show the existence we must show there is a $c$ that divides $a,b$ and for any common divisor $d$ of $a,b$, $d|c$.



        Part I: Existence



        1) Let $S = {as+bt|s,t in mathbb{Z},as+bt > 0}$. Since $S neq emptyset$, by WOP, $S$ has a smallest element $c$, which we will call the GCD.



        2) Will now show any divisor $d$ also divided $c$. $c in S implies c =ax+by$ and any $d in mathbb{Z} land d|a land d|b implies d|(ax+by) implies d|c$



        3) We now show that $c|a$ and $c|b$. If $c$ doesn't divide $a$, then $a = qc + r$ where $q,r in mathbb{Z^+} land 0 < r < c implies r = a - qc = a - q(ax + by) = a - qax - qby = a(1-qx) + (-qy)b implies r in S$ this contradicts that $c$ is the smallest element in $S$. Similar arguments apply for b



        4) We have shown $c|a land c|b land d|c$ for any divisor $d$ of $a,b$, so now we must show that $c$ is unique.



        Part II: Uniqueness



        1) If $c_1,c_2$ both satisfy the conditions of GCD, then one is GCD and one is common divisor. If $c_1$ is GCD and $c_2$ is CD, then $c_2|c_1$ the other way around, we have $c_1|c_2$ which means $c_1 = c_2$ because they are both positive.






        share|cite|improve this answer









        $endgroup$



        We are asked to show the existence and uniqueness of the GCD denoted as $c$ of two integers $a,b$. There are two parts of of this proof: Showing the existence and showing the uniqueness. To show the existence we must show there is a $c$ that divides $a,b$ and for any common divisor $d$ of $a,b$, $d|c$.



        Part I: Existence



        1) Let $S = {as+bt|s,t in mathbb{Z},as+bt > 0}$. Since $S neq emptyset$, by WOP, $S$ has a smallest element $c$, which we will call the GCD.



        2) Will now show any divisor $d$ also divided $c$. $c in S implies c =ax+by$ and any $d in mathbb{Z} land d|a land d|b implies d|(ax+by) implies d|c$



        3) We now show that $c|a$ and $c|b$. If $c$ doesn't divide $a$, then $a = qc + r$ where $q,r in mathbb{Z^+} land 0 < r < c implies r = a - qc = a - q(ax + by) = a - qax - qby = a(1-qx) + (-qy)b implies r in S$ this contradicts that $c$ is the smallest element in $S$. Similar arguments apply for b



        4) We have shown $c|a land c|b land d|c$ for any divisor $d$ of $a,b$, so now we must show that $c$ is unique.



        Part II: Uniqueness



        1) If $c_1,c_2$ both satisfy the conditions of GCD, then one is GCD and one is common divisor. If $c_1$ is GCD and $c_2$ is CD, then $c_2|c_1$ the other way around, we have $c_1|c_2$ which means $c_1 = c_2$ because they are both positive.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Apr 3 '17 at 21:31









        DunkaDunka

        1,43732045




        1,43732045






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2215445%2funderstanding-the-existence-and-uniqueness-of-the-gcd%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Mario Kart Wii

            What does “Dominus providebit” mean?

            Antonio Litta Visconti Arese