Find all [x;y] for which: GCD(x,y) + 5 = LCM(x,y)Greatest Common Factors and Least Common MultiplesWhy don't...

What is Tony Stark injecting into himself in Iron Man 3?

Does the US political system, in principle, allow for a no-party system?

Was it really inappropriate to write a pull request for the company I interviewed with?

Sort array by month and year

Why isn't P and P/poly trivially the same?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

How to make sure I'm assertive enough in contact with subordinates?

Exempt portion of equation line from aligning?

What does it take to become a wilderness skills guide as a business?

What is the oldest European royal house?

Who has more? Ireland or Iceland?

Why do we call complex numbers “numbers” but we don’t consider 2-vectors numbers?

Why would /etc/passwd be used every time someone executes `ls -l` command?

How spaceships determine each other's mass in space?

Is it appropriate to ask a former professor to order a library book for me through ILL?

School performs periodic password audits. Is my password compromised?

What is better: yes / no radio, or simple checkbox?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Does an unused member variable take up memory?

How to recover against Snake as a heavyweight character?

Should I file my taxes? No income, unemployed, but paid 2k in student loan interest

What can I do if someone tampers with my SSH public key?

What exactly is the meaning of "fine wine"?

A running toilet that stops itself



Find all [x;y] for which: GCD(x,y) + 5 = LCM(x,y)


Greatest Common Factors and Least Common MultiplesWhy don't all elements of an arithmetic progression divide the lcm of the start and step?LCM. What am I missing?Problem with equation containing $operatorname{lcm}$ and $gcd$$B$-powersmooth number divides $mathrm{lcm}(1,2,3,ldots B)$GCD of $a+b$ and $frac{a^p + b^p}{a+b}$If $gcd(|x|,|y|) = 1$ then $|xy| = mathrm{lcm}(|x|,|y|)$ in an abelian group.How many pairs of numbers exist,which satisfy the following conditions?computing difference between all pairs of numbers which is given in ascending orderProving If and only if gcd(a,b) = gcd(b,c) = 1, then gcd(ab,c) = 1













0












$begingroup$


Suppose we have two numbers (x and y) both of which are from the natural numbers. The task is:




Find all [x;y] pairs for which:



GCD(x,y) + 5 = LCM(x,y)




The result should be:
{[1;6], [6;1], [2;3], [3;2], [5;10], [10;5]}



The problem is I have no idea how to get to the result. I got stuck in a loop of statements. So I'll appreciate any input.










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    Suppose we have two numbers (x and y) both of which are from the natural numbers. The task is:




    Find all [x;y] pairs for which:



    GCD(x,y) + 5 = LCM(x,y)




    The result should be:
    {[1;6], [6;1], [2;3], [3;2], [5;10], [10;5]}



    The problem is I have no idea how to get to the result. I got stuck in a loop of statements. So I'll appreciate any input.










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      Suppose we have two numbers (x and y) both of which are from the natural numbers. The task is:




      Find all [x;y] pairs for which:



      GCD(x,y) + 5 = LCM(x,y)




      The result should be:
      {[1;6], [6;1], [2;3], [3;2], [5;10], [10;5]}



      The problem is I have no idea how to get to the result. I got stuck in a loop of statements. So I'll appreciate any input.










      share|cite|improve this question









      $endgroup$




      Suppose we have two numbers (x and y) both of which are from the natural numbers. The task is:




      Find all [x;y] pairs for which:



      GCD(x,y) + 5 = LCM(x,y)




      The result should be:
      {[1;6], [6;1], [2;3], [3;2], [5;10], [10;5]}



      The problem is I have no idea how to get to the result. I got stuck in a loop of statements. So I'll appreciate any input.







      elementary-number-theory






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Oct 16 '16 at 17:44









      DeritusDeritus

      125




      125






















          3 Answers
          3






          active

          oldest

          votes


















          0












          $begingroup$

          Note that the lcm is a multiple of the gcd, hence (as it is different) at least twice as big. This makes the lcm $le 10$, and leaves only $(1,6), (5,10)$ for $(gcd,operatorname{lcm})$






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Took me quite a while to see it but I finalyl got it. Thank you!
            $endgroup$
            – Deritus
            Oct 16 '16 at 18:34



















          0












          $begingroup$

          Hint:
          Rewrite $x=md,y=nd$ where $gcd(m,n)=1$ then find that $d|5$






          share|cite|improve this answer









          $endgroup$





















            0












            $begingroup$

            Hint $newcommand{lcm}{operatorname{lcm}}$Since $gcd(x,y)midgcd(x,y)$ and $gcd(x,y) mid lcm(x,y)$ then we gave
            $$gcd(x,y)midlcm(x,y)-gcd(x,y)=5$$.



            This shows that $gcd(x,y) in {1,5 }$.






            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%2f1971337%2ffind-all-xy-for-which-gcdx-y-5-lcmx-y%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









              0












              $begingroup$

              Note that the lcm is a multiple of the gcd, hence (as it is different) at least twice as big. This makes the lcm $le 10$, and leaves only $(1,6), (5,10)$ for $(gcd,operatorname{lcm})$






              share|cite|improve this answer









              $endgroup$













              • $begingroup$
                Took me quite a while to see it but I finalyl got it. Thank you!
                $endgroup$
                – Deritus
                Oct 16 '16 at 18:34
















              0












              $begingroup$

              Note that the lcm is a multiple of the gcd, hence (as it is different) at least twice as big. This makes the lcm $le 10$, and leaves only $(1,6), (5,10)$ for $(gcd,operatorname{lcm})$






              share|cite|improve this answer









              $endgroup$













              • $begingroup$
                Took me quite a while to see it but I finalyl got it. Thank you!
                $endgroup$
                – Deritus
                Oct 16 '16 at 18:34














              0












              0








              0





              $begingroup$

              Note that the lcm is a multiple of the gcd, hence (as it is different) at least twice as big. This makes the lcm $le 10$, and leaves only $(1,6), (5,10)$ for $(gcd,operatorname{lcm})$






              share|cite|improve this answer









              $endgroup$



              Note that the lcm is a multiple of the gcd, hence (as it is different) at least twice as big. This makes the lcm $le 10$, and leaves only $(1,6), (5,10)$ for $(gcd,operatorname{lcm})$







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered Oct 16 '16 at 17:48









              Hagen von EitzenHagen von Eitzen

              282k23272507




              282k23272507












              • $begingroup$
                Took me quite a while to see it but I finalyl got it. Thank you!
                $endgroup$
                – Deritus
                Oct 16 '16 at 18:34


















              • $begingroup$
                Took me quite a while to see it but I finalyl got it. Thank you!
                $endgroup$
                – Deritus
                Oct 16 '16 at 18:34
















              $begingroup$
              Took me quite a while to see it but I finalyl got it. Thank you!
              $endgroup$
              – Deritus
              Oct 16 '16 at 18:34




              $begingroup$
              Took me quite a while to see it but I finalyl got it. Thank you!
              $endgroup$
              – Deritus
              Oct 16 '16 at 18:34











              0












              $begingroup$

              Hint:
              Rewrite $x=md,y=nd$ where $gcd(m,n)=1$ then find that $d|5$






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                Hint:
                Rewrite $x=md,y=nd$ where $gcd(m,n)=1$ then find that $d|5$






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  Hint:
                  Rewrite $x=md,y=nd$ where $gcd(m,n)=1$ then find that $d|5$






                  share|cite|improve this answer









                  $endgroup$



                  Hint:
                  Rewrite $x=md,y=nd$ where $gcd(m,n)=1$ then find that $d|5$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Oct 16 '16 at 17:48









                  arberavdullahuarberavdullahu

                  1,1571513




                  1,1571513























                      0












                      $begingroup$

                      Hint $newcommand{lcm}{operatorname{lcm}}$Since $gcd(x,y)midgcd(x,y)$ and $gcd(x,y) mid lcm(x,y)$ then we gave
                      $$gcd(x,y)midlcm(x,y)-gcd(x,y)=5$$.



                      This shows that $gcd(x,y) in {1,5 }$.






                      share|cite|improve this answer











                      $endgroup$


















                        0












                        $begingroup$

                        Hint $newcommand{lcm}{operatorname{lcm}}$Since $gcd(x,y)midgcd(x,y)$ and $gcd(x,y) mid lcm(x,y)$ then we gave
                        $$gcd(x,y)midlcm(x,y)-gcd(x,y)=5$$.



                        This shows that $gcd(x,y) in {1,5 }$.






                        share|cite|improve this answer











                        $endgroup$
















                          0












                          0








                          0





                          $begingroup$

                          Hint $newcommand{lcm}{operatorname{lcm}}$Since $gcd(x,y)midgcd(x,y)$ and $gcd(x,y) mid lcm(x,y)$ then we gave
                          $$gcd(x,y)midlcm(x,y)-gcd(x,y)=5$$.



                          This shows that $gcd(x,y) in {1,5 }$.






                          share|cite|improve this answer











                          $endgroup$



                          Hint $newcommand{lcm}{operatorname{lcm}}$Since $gcd(x,y)midgcd(x,y)$ and $gcd(x,y) mid lcm(x,y)$ then we gave
                          $$gcd(x,y)midlcm(x,y)-gcd(x,y)=5$$.



                          This shows that $gcd(x,y) in {1,5 }$.







                          share|cite|improve this answer














                          share|cite|improve this answer



                          share|cite|improve this answer








                          edited yesterday









                          Martin Sleziak

                          44.8k10119273




                          44.8k10119273










                          answered Oct 16 '16 at 17:51









                          N. S.N. S.

                          104k7114209




                          104k7114209






























                              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%2f1971337%2ffind-all-xy-for-which-gcdx-y-5-lcmx-y%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

                              Nidaros erkebispedøme

                              Birsay

                              Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?