Connection between GCD and LCM of two numbers











up vote
3
down vote

favorite












These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out.



Exercise 1:




Find all the numbers $x$ and $y$ such that:



$a) GCD(x,y)=15, LCM(x,y)=150$ $b) GCD(x,y)=120 LCM(x,y)=1320$
$c) GCD(x,y)=100 LCM(x,y)=990$




Exercise 2:





Find all the numbers $m,n$ such that $GCD(m,n)=pq , LCM(m,n)=p^2qs$




where $p,q,s$ are prime




The first thing that is known to me is that $GCD(x,y) cdot LCM(x,y)= x cdot y$



Also $LCM(x,y)$ is at most $x cdot y$ while $GCD(x,y)$ is at most $max {x,y}$. Last thing is that $GCD(x,y)|LCM(x,y)$.



Using all this I tried to solve the first exercise:



$a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x cdot y = 15 cdot 150$ Another such pair is $(x,y)=(30,75), (x,y)=(75,30)$.



Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist.



Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), LCM(x,y)$










share|cite|improve this question




















  • 1




    Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
    – tarit goswami
    6 hours ago















up vote
3
down vote

favorite












These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out.



Exercise 1:




Find all the numbers $x$ and $y$ such that:



$a) GCD(x,y)=15, LCM(x,y)=150$ $b) GCD(x,y)=120 LCM(x,y)=1320$
$c) GCD(x,y)=100 LCM(x,y)=990$




Exercise 2:





Find all the numbers $m,n$ such that $GCD(m,n)=pq , LCM(m,n)=p^2qs$




where $p,q,s$ are prime




The first thing that is known to me is that $GCD(x,y) cdot LCM(x,y)= x cdot y$



Also $LCM(x,y)$ is at most $x cdot y$ while $GCD(x,y)$ is at most $max {x,y}$. Last thing is that $GCD(x,y)|LCM(x,y)$.



Using all this I tried to solve the first exercise:



$a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x cdot y = 15 cdot 150$ Another such pair is $(x,y)=(30,75), (x,y)=(75,30)$.



Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist.



Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), LCM(x,y)$










share|cite|improve this question




















  • 1




    Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
    – tarit goswami
    6 hours ago













up vote
3
down vote

favorite









up vote
3
down vote

favorite











These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out.



Exercise 1:




Find all the numbers $x$ and $y$ such that:



$a) GCD(x,y)=15, LCM(x,y)=150$ $b) GCD(x,y)=120 LCM(x,y)=1320$
$c) GCD(x,y)=100 LCM(x,y)=990$




Exercise 2:





Find all the numbers $m,n$ such that $GCD(m,n)=pq , LCM(m,n)=p^2qs$




where $p,q,s$ are prime




The first thing that is known to me is that $GCD(x,y) cdot LCM(x,y)= x cdot y$



Also $LCM(x,y)$ is at most $x cdot y$ while $GCD(x,y)$ is at most $max {x,y}$. Last thing is that $GCD(x,y)|LCM(x,y)$.



Using all this I tried to solve the first exercise:



$a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x cdot y = 15 cdot 150$ Another such pair is $(x,y)=(30,75), (x,y)=(75,30)$.



Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist.



Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), LCM(x,y)$










share|cite|improve this question















These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out.



Exercise 1:




Find all the numbers $x$ and $y$ such that:



$a) GCD(x,y)=15, LCM(x,y)=150$ $b) GCD(x,y)=120 LCM(x,y)=1320$
$c) GCD(x,y)=100 LCM(x,y)=990$




Exercise 2:





Find all the numbers $m,n$ such that $GCD(m,n)=pq , LCM(m,n)=p^2qs$




where $p,q,s$ are prime




The first thing that is known to me is that $GCD(x,y) cdot LCM(x,y)= x cdot y$



Also $LCM(x,y)$ is at most $x cdot y$ while $GCD(x,y)$ is at most $max {x,y}$. Last thing is that $GCD(x,y)|LCM(x,y)$.



Using all this I tried to solve the first exercise:



$a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x cdot y = 15 cdot 150$ Another such pair is $(x,y)=(30,75), (x,y)=(75,30)$.



Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist.



Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), LCM(x,y)$







number-theory prime-numbers divisibility greatest-common-divisor least-common-multiple






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 6 hours ago

























asked 6 hours ago









DreaDk

581217




581217








  • 1




    Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
    – tarit goswami
    6 hours ago














  • 1




    Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
    – tarit goswami
    6 hours ago








1




1




Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
– tarit goswami
6 hours ago




Do you mean $lcm(m,n)=p^2qs$ and $gcd(m,n)=pq$?
– tarit goswami
6 hours ago










3 Answers
3






active

oldest

votes

















up vote
2
down vote



accepted










If you have two numbers with prime factorizations



$$x = p_1^{a_1}p_2^{a_2}p_3^{a_3}cdots p_n^{a_n}$$
$$y = p_1^{b_1}p_2^{b_2}p_3^{b_3}cdots p_n^{b_n}$$



then



$$GCD(x,y) = p_1^{min(a_1, b_1)}p_2^{min(a_2, b_2)}p_3^{min(a_3, b_3)}cdots p_n^{min(a_n, b_n)}$$



and



$$LCM(x,y) = p_1^{max(a_1, b_1)}p_2^{max(a_2, b_2)}p_3^{max(a_3, b_3)}cdots p_n^{max(a_n, b_n)}$$



where $min(a,b)$ and $max(a,b)$ are the minimum and maximum of $a$ and $b$, respectively.



Does this help?






share|cite|improve this answer























  • That is same as lhf saying
    – tarit goswami
    6 hours ago


















up vote
3
down vote













Here is the relevant fact:




Let $d=gcd(a,b)$ and $m=lcm(a,b)$. Then $v_p(d)=min(v_p(a),v_p(b))$ and $v_p(m)=max(v_p(a),v_p(b))$.




Here, $v_p(n)$ is the exponent of the prime $p$ in the factorization of $n$.






share|cite|improve this answer





















  • Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
    – DreaDk
    6 hours ago






  • 1




    In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
    – vrugtehagel
    6 hours ago




















up vote
1
down vote













$begin{align}{bf Hint}
&gcd(X,Y) = d, {rm lcm}(X,Y) = m text{yields by cancelling $,dneq 0$}\[.3em]
iff &gcd(x,,y) = 1,qquad , xcdot y =, m/d, {rm for} x = X/d,, y = Y/d
end{align}$



$begin{align}{rm e.g.}
&gcd(X,Y) = 15, , {rm lcm}(X,Y) = 150\[.3em]
iff &gcd(x,,y) = 1,qquad , xcdot y, =, 10
end{align}$



This method quickly and simply solves all of them. Cancelling to reduce to the coprime case is a common way to simplify homogeneous divisibility problems.






share|cite|improve this answer























    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',
    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%2f3007964%2fconnection-between-gcd-and-lcm-of-two-numbers%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    If you have two numbers with prime factorizations



    $$x = p_1^{a_1}p_2^{a_2}p_3^{a_3}cdots p_n^{a_n}$$
    $$y = p_1^{b_1}p_2^{b_2}p_3^{b_3}cdots p_n^{b_n}$$



    then



    $$GCD(x,y) = p_1^{min(a_1, b_1)}p_2^{min(a_2, b_2)}p_3^{min(a_3, b_3)}cdots p_n^{min(a_n, b_n)}$$



    and



    $$LCM(x,y) = p_1^{max(a_1, b_1)}p_2^{max(a_2, b_2)}p_3^{max(a_3, b_3)}cdots p_n^{max(a_n, b_n)}$$



    where $min(a,b)$ and $max(a,b)$ are the minimum and maximum of $a$ and $b$, respectively.



    Does this help?






    share|cite|improve this answer























    • That is same as lhf saying
      – tarit goswami
      6 hours ago















    up vote
    2
    down vote



    accepted










    If you have two numbers with prime factorizations



    $$x = p_1^{a_1}p_2^{a_2}p_3^{a_3}cdots p_n^{a_n}$$
    $$y = p_1^{b_1}p_2^{b_2}p_3^{b_3}cdots p_n^{b_n}$$



    then



    $$GCD(x,y) = p_1^{min(a_1, b_1)}p_2^{min(a_2, b_2)}p_3^{min(a_3, b_3)}cdots p_n^{min(a_n, b_n)}$$



    and



    $$LCM(x,y) = p_1^{max(a_1, b_1)}p_2^{max(a_2, b_2)}p_3^{max(a_3, b_3)}cdots p_n^{max(a_n, b_n)}$$



    where $min(a,b)$ and $max(a,b)$ are the minimum and maximum of $a$ and $b$, respectively.



    Does this help?






    share|cite|improve this answer























    • That is same as lhf saying
      – tarit goswami
      6 hours ago













    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    If you have two numbers with prime factorizations



    $$x = p_1^{a_1}p_2^{a_2}p_3^{a_3}cdots p_n^{a_n}$$
    $$y = p_1^{b_1}p_2^{b_2}p_3^{b_3}cdots p_n^{b_n}$$



    then



    $$GCD(x,y) = p_1^{min(a_1, b_1)}p_2^{min(a_2, b_2)}p_3^{min(a_3, b_3)}cdots p_n^{min(a_n, b_n)}$$



    and



    $$LCM(x,y) = p_1^{max(a_1, b_1)}p_2^{max(a_2, b_2)}p_3^{max(a_3, b_3)}cdots p_n^{max(a_n, b_n)}$$



    where $min(a,b)$ and $max(a,b)$ are the minimum and maximum of $a$ and $b$, respectively.



    Does this help?






    share|cite|improve this answer














    If you have two numbers with prime factorizations



    $$x = p_1^{a_1}p_2^{a_2}p_3^{a_3}cdots p_n^{a_n}$$
    $$y = p_1^{b_1}p_2^{b_2}p_3^{b_3}cdots p_n^{b_n}$$



    then



    $$GCD(x,y) = p_1^{min(a_1, b_1)}p_2^{min(a_2, b_2)}p_3^{min(a_3, b_3)}cdots p_n^{min(a_n, b_n)}$$



    and



    $$LCM(x,y) = p_1^{max(a_1, b_1)}p_2^{max(a_2, b_2)}p_3^{max(a_3, b_3)}cdots p_n^{max(a_n, b_n)}$$



    where $min(a,b)$ and $max(a,b)$ are the minimum and maximum of $a$ and $b$, respectively.



    Does this help?







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited 6 hours ago

























    answered 6 hours ago









    John

    22.3k32347




    22.3k32347












    • That is same as lhf saying
      – tarit goswami
      6 hours ago


















    • That is same as lhf saying
      – tarit goswami
      6 hours ago
















    That is same as lhf saying
    – tarit goswami
    6 hours ago




    That is same as lhf saying
    – tarit goswami
    6 hours ago










    up vote
    3
    down vote













    Here is the relevant fact:




    Let $d=gcd(a,b)$ and $m=lcm(a,b)$. Then $v_p(d)=min(v_p(a),v_p(b))$ and $v_p(m)=max(v_p(a),v_p(b))$.




    Here, $v_p(n)$ is the exponent of the prime $p$ in the factorization of $n$.






    share|cite|improve this answer





















    • Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
      – DreaDk
      6 hours ago






    • 1




      In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
      – vrugtehagel
      6 hours ago

















    up vote
    3
    down vote













    Here is the relevant fact:




    Let $d=gcd(a,b)$ and $m=lcm(a,b)$. Then $v_p(d)=min(v_p(a),v_p(b))$ and $v_p(m)=max(v_p(a),v_p(b))$.




    Here, $v_p(n)$ is the exponent of the prime $p$ in the factorization of $n$.






    share|cite|improve this answer





















    • Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
      – DreaDk
      6 hours ago






    • 1




      In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
      – vrugtehagel
      6 hours ago















    up vote
    3
    down vote










    up vote
    3
    down vote









    Here is the relevant fact:




    Let $d=gcd(a,b)$ and $m=lcm(a,b)$. Then $v_p(d)=min(v_p(a),v_p(b))$ and $v_p(m)=max(v_p(a),v_p(b))$.




    Here, $v_p(n)$ is the exponent of the prime $p$ in the factorization of $n$.






    share|cite|improve this answer












    Here is the relevant fact:




    Let $d=gcd(a,b)$ and $m=lcm(a,b)$. Then $v_p(d)=min(v_p(a),v_p(b))$ and $v_p(m)=max(v_p(a),v_p(b))$.




    Here, $v_p(n)$ is the exponent of the prime $p$ in the factorization of $n$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered 6 hours ago









    lhf

    161k9165384




    161k9165384












    • Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
      – DreaDk
      6 hours ago






    • 1




      In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
      – vrugtehagel
      6 hours ago




















    • Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
      – DreaDk
      6 hours ago






    • 1




      In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
      – vrugtehagel
      6 hours ago


















    Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
    – DreaDk
    6 hours ago




    Somehow completely forgot about prime factorisation and how it relates to everything I wrote.
    – DreaDk
    6 hours ago




    1




    1




    In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
    – vrugtehagel
    6 hours ago






    In other words, $gcd(a,b)cdottext{lcm}(a,b)=acdot b$.
    – vrugtehagel
    6 hours ago












    up vote
    1
    down vote













    $begin{align}{bf Hint}
    &gcd(X,Y) = d, {rm lcm}(X,Y) = m text{yields by cancelling $,dneq 0$}\[.3em]
    iff &gcd(x,,y) = 1,qquad , xcdot y =, m/d, {rm for} x = X/d,, y = Y/d
    end{align}$



    $begin{align}{rm e.g.}
    &gcd(X,Y) = 15, , {rm lcm}(X,Y) = 150\[.3em]
    iff &gcd(x,,y) = 1,qquad , xcdot y, =, 10
    end{align}$



    This method quickly and simply solves all of them. Cancelling to reduce to the coprime case is a common way to simplify homogeneous divisibility problems.






    share|cite|improve this answer



























      up vote
      1
      down vote













      $begin{align}{bf Hint}
      &gcd(X,Y) = d, {rm lcm}(X,Y) = m text{yields by cancelling $,dneq 0$}\[.3em]
      iff &gcd(x,,y) = 1,qquad , xcdot y =, m/d, {rm for} x = X/d,, y = Y/d
      end{align}$



      $begin{align}{rm e.g.}
      &gcd(X,Y) = 15, , {rm lcm}(X,Y) = 150\[.3em]
      iff &gcd(x,,y) = 1,qquad , xcdot y, =, 10
      end{align}$



      This method quickly and simply solves all of them. Cancelling to reduce to the coprime case is a common way to simplify homogeneous divisibility problems.






      share|cite|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        $begin{align}{bf Hint}
        &gcd(X,Y) = d, {rm lcm}(X,Y) = m text{yields by cancelling $,dneq 0$}\[.3em]
        iff &gcd(x,,y) = 1,qquad , xcdot y =, m/d, {rm for} x = X/d,, y = Y/d
        end{align}$



        $begin{align}{rm e.g.}
        &gcd(X,Y) = 15, , {rm lcm}(X,Y) = 150\[.3em]
        iff &gcd(x,,y) = 1,qquad , xcdot y, =, 10
        end{align}$



        This method quickly and simply solves all of them. Cancelling to reduce to the coprime case is a common way to simplify homogeneous divisibility problems.






        share|cite|improve this answer














        $begin{align}{bf Hint}
        &gcd(X,Y) = d, {rm lcm}(X,Y) = m text{yields by cancelling $,dneq 0$}\[.3em]
        iff &gcd(x,,y) = 1,qquad , xcdot y =, m/d, {rm for} x = X/d,, y = Y/d
        end{align}$



        $begin{align}{rm e.g.}
        &gcd(X,Y) = 15, , {rm lcm}(X,Y) = 150\[.3em]
        iff &gcd(x,,y) = 1,qquad , xcdot y, =, 10
        end{align}$



        This method quickly and simply solves all of them. Cancelling to reduce to the coprime case is a common way to simplify homogeneous divisibility problems.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited 3 hours ago

























        answered 3 hours ago









        Bill Dubuque

        206k29189621




        206k29189621






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3007964%2fconnection-between-gcd-and-lcm-of-two-numbers%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

            Feedback on college project

            Futebolista

            Albești (Vaslui)