Find all ordered pairs $(a,b)$ of positive integers for which $frac{1}{a} + frac{1}{b} = frac{3}{2018}$












0












$begingroup$


This question comes from the 2018 Putnam and can be found in the following link:



https://kskedlaya.org/putnam-archive/



So far, I got the following two equations using simple algebra:



(1) $2018a = b(3a - 2018)$



(2) $2018b = a(3b - 2018)$



Then, I divide (1) by $b$ and I divide (2) by $a$ to get



(3) $frac{2018a}{b} = (3a - 2018)$



(4) $frac{2018b}{a} = (3b - 2018)$



Multiplying (3) and (4) together, I get $(2018)^2 = (3a - 2018)(3b-2018)$



So $(2018mod3)$ is congruent to $(2mod3)$ and $(2mod3)^2$ is congruent to $(1 mod3)$. In the answer provided, I'm told that each of the factors is congruent to $(1mod3)$. Do we not consider the case when both factors are congruent to $(2mod3)$ because only $2$ satisfies this requirement, and



$2$ x $2 = 4$ is definitely not equal to $2018$?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
    $endgroup$
    – lulu
    Dec 24 '18 at 16:59












  • $begingroup$
    math.stackexchange.com/questions/3050899/…
    $endgroup$
    – lab bhattacharjee
    Dec 24 '18 at 17:03
















0












$begingroup$


This question comes from the 2018 Putnam and can be found in the following link:



https://kskedlaya.org/putnam-archive/



So far, I got the following two equations using simple algebra:



(1) $2018a = b(3a - 2018)$



(2) $2018b = a(3b - 2018)$



Then, I divide (1) by $b$ and I divide (2) by $a$ to get



(3) $frac{2018a}{b} = (3a - 2018)$



(4) $frac{2018b}{a} = (3b - 2018)$



Multiplying (3) and (4) together, I get $(2018)^2 = (3a - 2018)(3b-2018)$



So $(2018mod3)$ is congruent to $(2mod3)$ and $(2mod3)^2$ is congruent to $(1 mod3)$. In the answer provided, I'm told that each of the factors is congruent to $(1mod3)$. Do we not consider the case when both factors are congruent to $(2mod3)$ because only $2$ satisfies this requirement, and



$2$ x $2 = 4$ is definitely not equal to $2018$?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
    $endgroup$
    – lulu
    Dec 24 '18 at 16:59












  • $begingroup$
    math.stackexchange.com/questions/3050899/…
    $endgroup$
    – lab bhattacharjee
    Dec 24 '18 at 17:03














0












0








0





$begingroup$


This question comes from the 2018 Putnam and can be found in the following link:



https://kskedlaya.org/putnam-archive/



So far, I got the following two equations using simple algebra:



(1) $2018a = b(3a - 2018)$



(2) $2018b = a(3b - 2018)$



Then, I divide (1) by $b$ and I divide (2) by $a$ to get



(3) $frac{2018a}{b} = (3a - 2018)$



(4) $frac{2018b}{a} = (3b - 2018)$



Multiplying (3) and (4) together, I get $(2018)^2 = (3a - 2018)(3b-2018)$



So $(2018mod3)$ is congruent to $(2mod3)$ and $(2mod3)^2$ is congruent to $(1 mod3)$. In the answer provided, I'm told that each of the factors is congruent to $(1mod3)$. Do we not consider the case when both factors are congruent to $(2mod3)$ because only $2$ satisfies this requirement, and



$2$ x $2 = 4$ is definitely not equal to $2018$?










share|cite|improve this question









$endgroup$




This question comes from the 2018 Putnam and can be found in the following link:



https://kskedlaya.org/putnam-archive/



So far, I got the following two equations using simple algebra:



(1) $2018a = b(3a - 2018)$



(2) $2018b = a(3b - 2018)$



Then, I divide (1) by $b$ and I divide (2) by $a$ to get



(3) $frac{2018a}{b} = (3a - 2018)$



(4) $frac{2018b}{a} = (3b - 2018)$



Multiplying (3) and (4) together, I get $(2018)^2 = (3a - 2018)(3b-2018)$



So $(2018mod3)$ is congruent to $(2mod3)$ and $(2mod3)^2$ is congruent to $(1 mod3)$. In the answer provided, I'm told that each of the factors is congruent to $(1mod3)$. Do we not consider the case when both factors are congruent to $(2mod3)$ because only $2$ satisfies this requirement, and



$2$ x $2 = 4$ is definitely not equal to $2018$?







modular-arithmetic






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 24 '18 at 16:47









K.MK.M

698412




698412








  • 1




    $begingroup$
    It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
    $endgroup$
    – lulu
    Dec 24 '18 at 16:59












  • $begingroup$
    math.stackexchange.com/questions/3050899/…
    $endgroup$
    – lab bhattacharjee
    Dec 24 '18 at 17:03














  • 1




    $begingroup$
    It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
    $endgroup$
    – lulu
    Dec 24 '18 at 16:59












  • $begingroup$
    math.stackexchange.com/questions/3050899/…
    $endgroup$
    – lab bhattacharjee
    Dec 24 '18 at 17:03








1




1




$begingroup$
It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
$endgroup$
– lulu
Dec 24 '18 at 16:59






$begingroup$
It is obvious that $(3a-2018)equiv 1 pmod 3$, for all $a$, since $2018equiv -1 pmod 3$.
$endgroup$
– lulu
Dec 24 '18 at 16:59














$begingroup$
math.stackexchange.com/questions/3050899/…
$endgroup$
– lab bhattacharjee
Dec 24 '18 at 17:03




$begingroup$
math.stackexchange.com/questions/3050899/…
$endgroup$
– lab bhattacharjee
Dec 24 '18 at 17:03










4 Answers
4






active

oldest

votes


















1












$begingroup$

You want to look at factorizations of $2018^2$ where each term $equiv -2018 equiv 1 mod 3$. Since $2018 = 2 times 1009$ with $1009$ prime, there are not too many solutions.






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$


    Do we not consider the case when both factors are congruent to (2mod3) ...?




    There is no such case since both factors in $(3a-2018)(3b-2018)$ are congruent to $1$ (mod $3$) whatever integers you take for $a$ and $b$:
    $$
    3n-2018=-2018=1pmod{3},quad forall nin{mathbb{Z}}.
    $$



    That's why the solution says so:




    enter image description here







    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
      $endgroup$
      – K.M
      Dec 24 '18 at 17:24










    • $begingroup$
      @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
      $endgroup$
      – user587192
      Dec 24 '18 at 17:59












    • $begingroup$
      well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
      $endgroup$
      – K.M
      Dec 24 '18 at 18:29












    • $begingroup$
      and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
      $endgroup$
      – K.M
      Dec 24 '18 at 18:34



















    0












    $begingroup$

    Take $d=gcd(a,b)$, with $a=da_2$, $b=db_2$. Then $frac 1 a + frac 1 b = frac 1 {da_2} + frac 1 {db_2}$. $a_2$ and $b_2$ are by definition coprime, so $frac {b_2+a_2}{da_2b_2}$ is a fraction in simplest form that is equal to $frac 3 {2018}$. Since $da_2b_2=2018$, and $1009$ is a prime factor of $2018$, it follows that of $d$, $a_2$, and $b_2$, one of them must be $1009$, and clearly that would be $d$ (otherwise the numerator $b_2+a_2$ would contain a $1009$, which is more than $3$). It then follows that of $a_2$ and $b_2$, one of them is $2$, and then it follows that the other is $1$.






    share|cite|improve this answer









    $endgroup$





















      0












      $begingroup$

      More generally,
      if
      $dfrac1{a}+dfrac1{b}
      =dfrac{u}{v}$
      ,
      then
      $v(a+b)
      =abu
      $

      or



      $begin{array}\
      0
      &=abu^2-uv(a+b)\
      &=abu^2-uv(a+b)+v^2-v^2\
      &=(au-v)(bu-v)-v^2\
      end{array}
      $



      so
      $(au-v)(bu-v)=v^2
      $
      .



      In particular,
      either
      $augt v, bu gt v$
      or
      $ault v, bu lt v$.



      We can assume that
      $a ge b$.



      If $a=b$
      then
      $(au-v)^2=v^2
      $

      so
      $au-v = pm v$
      so that
      $a = frac{2v}{u}$
      (which gives
      $frac1{a}=frac{u}{2v}$)
      or
      $a=0$ ,
      which not be.
      For there to be a solution here,
      we must have
      $u | 2v$.



      So we can assume
      from now on
      that $a > b$.



      For each factorization
      $v^2 = rs$
      with $r le s$,
      for a solution
      we must have either
      $au-v=r, bu-v = s
      $
      ,
      $au-v=s, bu-v = r
      $
      ,
      $au-v=-r, bu-v = -s
      $
      ,
      or
      $au-v=-s, bu-v = -r$.



      Since
      $a > b$ and $r le s$,
      the first and third cases can not hold,
      so either
      $a = frac{v+s}{u},
      b = frac{v+r}{u}
      $

      or
      $a = frac{v-r}{u},
      b = frac{v-s}{u}
      $
      .



      For these to be integers,
      we must have either
      $u | (v+s),
      u | (v+r)$

      or
      $u | (v-r),
      u | (v-s)$
      .
      In either case,
      we must have
      $u | (s-r)$.



      By looking at
      $v bmod u$
      we can quickly decide
      which $r$ and $s$
      will work.






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
        $endgroup$
        – K.M
        Dec 25 '18 at 3:46










      • $begingroup$
        The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
        $endgroup$
        – marty cohen
        Dec 25 '18 at 5:06











      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%2f3051443%2ffind-all-ordered-pairs-a-b-of-positive-integers-for-which-frac1a-fr%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1












      $begingroup$

      You want to look at factorizations of $2018^2$ where each term $equiv -2018 equiv 1 mod 3$. Since $2018 = 2 times 1009$ with $1009$ prime, there are not too many solutions.






      share|cite|improve this answer









      $endgroup$


















        1












        $begingroup$

        You want to look at factorizations of $2018^2$ where each term $equiv -2018 equiv 1 mod 3$. Since $2018 = 2 times 1009$ with $1009$ prime, there are not too many solutions.






        share|cite|improve this answer









        $endgroup$
















          1












          1








          1





          $begingroup$

          You want to look at factorizations of $2018^2$ where each term $equiv -2018 equiv 1 mod 3$. Since $2018 = 2 times 1009$ with $1009$ prime, there are not too many solutions.






          share|cite|improve this answer









          $endgroup$



          You want to look at factorizations of $2018^2$ where each term $equiv -2018 equiv 1 mod 3$. Since $2018 = 2 times 1009$ with $1009$ prime, there are not too many solutions.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 24 '18 at 16:59









          Robert IsraelRobert Israel

          327k23216470




          327k23216470























              1












              $begingroup$


              Do we not consider the case when both factors are congruent to (2mod3) ...?




              There is no such case since both factors in $(3a-2018)(3b-2018)$ are congruent to $1$ (mod $3$) whatever integers you take for $a$ and $b$:
              $$
              3n-2018=-2018=1pmod{3},quad forall nin{mathbb{Z}}.
              $$



              That's why the solution says so:




              enter image description here







              share|cite|improve this answer











              $endgroup$













              • $begingroup$
                you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
                $endgroup$
                – K.M
                Dec 24 '18 at 17:24










              • $begingroup$
                @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
                $endgroup$
                – user587192
                Dec 24 '18 at 17:59












              • $begingroup$
                well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:29












              • $begingroup$
                and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:34
















              1












              $begingroup$


              Do we not consider the case when both factors are congruent to (2mod3) ...?




              There is no such case since both factors in $(3a-2018)(3b-2018)$ are congruent to $1$ (mod $3$) whatever integers you take for $a$ and $b$:
              $$
              3n-2018=-2018=1pmod{3},quad forall nin{mathbb{Z}}.
              $$



              That's why the solution says so:




              enter image description here







              share|cite|improve this answer











              $endgroup$













              • $begingroup$
                you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
                $endgroup$
                – K.M
                Dec 24 '18 at 17:24










              • $begingroup$
                @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
                $endgroup$
                – user587192
                Dec 24 '18 at 17:59












              • $begingroup$
                well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:29












              • $begingroup$
                and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:34














              1












              1








              1





              $begingroup$


              Do we not consider the case when both factors are congruent to (2mod3) ...?




              There is no such case since both factors in $(3a-2018)(3b-2018)$ are congruent to $1$ (mod $3$) whatever integers you take for $a$ and $b$:
              $$
              3n-2018=-2018=1pmod{3},quad forall nin{mathbb{Z}}.
              $$



              That's why the solution says so:




              enter image description here







              share|cite|improve this answer











              $endgroup$




              Do we not consider the case when both factors are congruent to (2mod3) ...?




              There is no such case since both factors in $(3a-2018)(3b-2018)$ are congruent to $1$ (mod $3$) whatever integers you take for $a$ and $b$:
              $$
              3n-2018=-2018=1pmod{3},quad forall nin{mathbb{Z}}.
              $$



              That's why the solution says so:




              enter image description here








              share|cite|improve this answer














              share|cite|improve this answer



              share|cite|improve this answer








              edited Dec 24 '18 at 17:14

























              answered Dec 24 '18 at 17:08







              user587192



















              • $begingroup$
                you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
                $endgroup$
                – K.M
                Dec 24 '18 at 17:24










              • $begingroup$
                @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
                $endgroup$
                – user587192
                Dec 24 '18 at 17:59












              • $begingroup$
                well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:29












              • $begingroup$
                and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:34


















              • $begingroup$
                you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
                $endgroup$
                – K.M
                Dec 24 '18 at 17:24










              • $begingroup$
                @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
                $endgroup$
                – user587192
                Dec 24 '18 at 17:59












              • $begingroup$
                well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:29












              • $begingroup$
                and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
                $endgroup$
                – K.M
                Dec 24 '18 at 18:34
















              $begingroup$
              you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
              $endgroup$
              – K.M
              Dec 24 '18 at 17:24




              $begingroup$
              you're correct, each of the factors is congruent to $(1mod3)$ by the logic you've used above. But I'm not sure if the reasoning I used in my explanation is incorrect, perhaps inefficient?
              $endgroup$
              – K.M
              Dec 24 '18 at 17:24












              $begingroup$
              @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
              $endgroup$
              – user587192
              Dec 24 '18 at 17:59






              $begingroup$
              @K.M "because only 2 satisfies this requirement" does not make sense in that $(3a-2018)(3b-2018)$ can never be $2$. Then why would you consider $2$ in the first place? Also, I'm not sure what you mean by "this requirement".
              $endgroup$
              – user587192
              Dec 24 '18 at 17:59














              $begingroup$
              well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
              $endgroup$
              – K.M
              Dec 24 '18 at 18:29






              $begingroup$
              well, I meant to say that each factor respectively could be congruent to $(2 mod 3)$. Since we have that $(2 mod 3)(2mod 3)$=($2$ x $2$ $mod 3$) = $(1 mod 3)$. But it is incorrect to say that only $2 equiv 2mod 3$.
              $endgroup$
              – K.M
              Dec 24 '18 at 18:29














              $begingroup$
              and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
              $endgroup$
              – K.M
              Dec 24 '18 at 18:34




              $begingroup$
              and yes, $(2 mod 3)$ does not equal $(1 mod 3)$. I apologize for ruining mathematics.
              $endgroup$
              – K.M
              Dec 24 '18 at 18:34











              0












              $begingroup$

              Take $d=gcd(a,b)$, with $a=da_2$, $b=db_2$. Then $frac 1 a + frac 1 b = frac 1 {da_2} + frac 1 {db_2}$. $a_2$ and $b_2$ are by definition coprime, so $frac {b_2+a_2}{da_2b_2}$ is a fraction in simplest form that is equal to $frac 3 {2018}$. Since $da_2b_2=2018$, and $1009$ is a prime factor of $2018$, it follows that of $d$, $a_2$, and $b_2$, one of them must be $1009$, and clearly that would be $d$ (otherwise the numerator $b_2+a_2$ would contain a $1009$, which is more than $3$). It then follows that of $a_2$ and $b_2$, one of them is $2$, and then it follows that the other is $1$.






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                Take $d=gcd(a,b)$, with $a=da_2$, $b=db_2$. Then $frac 1 a + frac 1 b = frac 1 {da_2} + frac 1 {db_2}$. $a_2$ and $b_2$ are by definition coprime, so $frac {b_2+a_2}{da_2b_2}$ is a fraction in simplest form that is equal to $frac 3 {2018}$. Since $da_2b_2=2018$, and $1009$ is a prime factor of $2018$, it follows that of $d$, $a_2$, and $b_2$, one of them must be $1009$, and clearly that would be $d$ (otherwise the numerator $b_2+a_2$ would contain a $1009$, which is more than $3$). It then follows that of $a_2$ and $b_2$, one of them is $2$, and then it follows that the other is $1$.






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  Take $d=gcd(a,b)$, with $a=da_2$, $b=db_2$. Then $frac 1 a + frac 1 b = frac 1 {da_2} + frac 1 {db_2}$. $a_2$ and $b_2$ are by definition coprime, so $frac {b_2+a_2}{da_2b_2}$ is a fraction in simplest form that is equal to $frac 3 {2018}$. Since $da_2b_2=2018$, and $1009$ is a prime factor of $2018$, it follows that of $d$, $a_2$, and $b_2$, one of them must be $1009$, and clearly that would be $d$ (otherwise the numerator $b_2+a_2$ would contain a $1009$, which is more than $3$). It then follows that of $a_2$ and $b_2$, one of them is $2$, and then it follows that the other is $1$.






                  share|cite|improve this answer









                  $endgroup$



                  Take $d=gcd(a,b)$, with $a=da_2$, $b=db_2$. Then $frac 1 a + frac 1 b = frac 1 {da_2} + frac 1 {db_2}$. $a_2$ and $b_2$ are by definition coprime, so $frac {b_2+a_2}{da_2b_2}$ is a fraction in simplest form that is equal to $frac 3 {2018}$. Since $da_2b_2=2018$, and $1009$ is a prime factor of $2018$, it follows that of $d$, $a_2$, and $b_2$, one of them must be $1009$, and clearly that would be $d$ (otherwise the numerator $b_2+a_2$ would contain a $1009$, which is more than $3$). It then follows that of $a_2$ and $b_2$, one of them is $2$, and then it follows that the other is $1$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 24 '18 at 17:24









                  AcccumulationAcccumulation

                  7,1252619




                  7,1252619























                      0












                      $begingroup$

                      More generally,
                      if
                      $dfrac1{a}+dfrac1{b}
                      =dfrac{u}{v}$
                      ,
                      then
                      $v(a+b)
                      =abu
                      $

                      or



                      $begin{array}\
                      0
                      &=abu^2-uv(a+b)\
                      &=abu^2-uv(a+b)+v^2-v^2\
                      &=(au-v)(bu-v)-v^2\
                      end{array}
                      $



                      so
                      $(au-v)(bu-v)=v^2
                      $
                      .



                      In particular,
                      either
                      $augt v, bu gt v$
                      or
                      $ault v, bu lt v$.



                      We can assume that
                      $a ge b$.



                      If $a=b$
                      then
                      $(au-v)^2=v^2
                      $

                      so
                      $au-v = pm v$
                      so that
                      $a = frac{2v}{u}$
                      (which gives
                      $frac1{a}=frac{u}{2v}$)
                      or
                      $a=0$ ,
                      which not be.
                      For there to be a solution here,
                      we must have
                      $u | 2v$.



                      So we can assume
                      from now on
                      that $a > b$.



                      For each factorization
                      $v^2 = rs$
                      with $r le s$,
                      for a solution
                      we must have either
                      $au-v=r, bu-v = s
                      $
                      ,
                      $au-v=s, bu-v = r
                      $
                      ,
                      $au-v=-r, bu-v = -s
                      $
                      ,
                      or
                      $au-v=-s, bu-v = -r$.



                      Since
                      $a > b$ and $r le s$,
                      the first and third cases can not hold,
                      so either
                      $a = frac{v+s}{u},
                      b = frac{v+r}{u}
                      $

                      or
                      $a = frac{v-r}{u},
                      b = frac{v-s}{u}
                      $
                      .



                      For these to be integers,
                      we must have either
                      $u | (v+s),
                      u | (v+r)$

                      or
                      $u | (v-r),
                      u | (v-s)$
                      .
                      In either case,
                      we must have
                      $u | (s-r)$.



                      By looking at
                      $v bmod u$
                      we can quickly decide
                      which $r$ and $s$
                      will work.






                      share|cite|improve this answer









                      $endgroup$













                      • $begingroup$
                        I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                        $endgroup$
                        – K.M
                        Dec 25 '18 at 3:46










                      • $begingroup$
                        The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                        $endgroup$
                        – marty cohen
                        Dec 25 '18 at 5:06
















                      0












                      $begingroup$

                      More generally,
                      if
                      $dfrac1{a}+dfrac1{b}
                      =dfrac{u}{v}$
                      ,
                      then
                      $v(a+b)
                      =abu
                      $

                      or



                      $begin{array}\
                      0
                      &=abu^2-uv(a+b)\
                      &=abu^2-uv(a+b)+v^2-v^2\
                      &=(au-v)(bu-v)-v^2\
                      end{array}
                      $



                      so
                      $(au-v)(bu-v)=v^2
                      $
                      .



                      In particular,
                      either
                      $augt v, bu gt v$
                      or
                      $ault v, bu lt v$.



                      We can assume that
                      $a ge b$.



                      If $a=b$
                      then
                      $(au-v)^2=v^2
                      $

                      so
                      $au-v = pm v$
                      so that
                      $a = frac{2v}{u}$
                      (which gives
                      $frac1{a}=frac{u}{2v}$)
                      or
                      $a=0$ ,
                      which not be.
                      For there to be a solution here,
                      we must have
                      $u | 2v$.



                      So we can assume
                      from now on
                      that $a > b$.



                      For each factorization
                      $v^2 = rs$
                      with $r le s$,
                      for a solution
                      we must have either
                      $au-v=r, bu-v = s
                      $
                      ,
                      $au-v=s, bu-v = r
                      $
                      ,
                      $au-v=-r, bu-v = -s
                      $
                      ,
                      or
                      $au-v=-s, bu-v = -r$.



                      Since
                      $a > b$ and $r le s$,
                      the first and third cases can not hold,
                      so either
                      $a = frac{v+s}{u},
                      b = frac{v+r}{u}
                      $

                      or
                      $a = frac{v-r}{u},
                      b = frac{v-s}{u}
                      $
                      .



                      For these to be integers,
                      we must have either
                      $u | (v+s),
                      u | (v+r)$

                      or
                      $u | (v-r),
                      u | (v-s)$
                      .
                      In either case,
                      we must have
                      $u | (s-r)$.



                      By looking at
                      $v bmod u$
                      we can quickly decide
                      which $r$ and $s$
                      will work.






                      share|cite|improve this answer









                      $endgroup$













                      • $begingroup$
                        I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                        $endgroup$
                        – K.M
                        Dec 25 '18 at 3:46










                      • $begingroup$
                        The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                        $endgroup$
                        – marty cohen
                        Dec 25 '18 at 5:06














                      0












                      0








                      0





                      $begingroup$

                      More generally,
                      if
                      $dfrac1{a}+dfrac1{b}
                      =dfrac{u}{v}$
                      ,
                      then
                      $v(a+b)
                      =abu
                      $

                      or



                      $begin{array}\
                      0
                      &=abu^2-uv(a+b)\
                      &=abu^2-uv(a+b)+v^2-v^2\
                      &=(au-v)(bu-v)-v^2\
                      end{array}
                      $



                      so
                      $(au-v)(bu-v)=v^2
                      $
                      .



                      In particular,
                      either
                      $augt v, bu gt v$
                      or
                      $ault v, bu lt v$.



                      We can assume that
                      $a ge b$.



                      If $a=b$
                      then
                      $(au-v)^2=v^2
                      $

                      so
                      $au-v = pm v$
                      so that
                      $a = frac{2v}{u}$
                      (which gives
                      $frac1{a}=frac{u}{2v}$)
                      or
                      $a=0$ ,
                      which not be.
                      For there to be a solution here,
                      we must have
                      $u | 2v$.



                      So we can assume
                      from now on
                      that $a > b$.



                      For each factorization
                      $v^2 = rs$
                      with $r le s$,
                      for a solution
                      we must have either
                      $au-v=r, bu-v = s
                      $
                      ,
                      $au-v=s, bu-v = r
                      $
                      ,
                      $au-v=-r, bu-v = -s
                      $
                      ,
                      or
                      $au-v=-s, bu-v = -r$.



                      Since
                      $a > b$ and $r le s$,
                      the first and third cases can not hold,
                      so either
                      $a = frac{v+s}{u},
                      b = frac{v+r}{u}
                      $

                      or
                      $a = frac{v-r}{u},
                      b = frac{v-s}{u}
                      $
                      .



                      For these to be integers,
                      we must have either
                      $u | (v+s),
                      u | (v+r)$

                      or
                      $u | (v-r),
                      u | (v-s)$
                      .
                      In either case,
                      we must have
                      $u | (s-r)$.



                      By looking at
                      $v bmod u$
                      we can quickly decide
                      which $r$ and $s$
                      will work.






                      share|cite|improve this answer









                      $endgroup$



                      More generally,
                      if
                      $dfrac1{a}+dfrac1{b}
                      =dfrac{u}{v}$
                      ,
                      then
                      $v(a+b)
                      =abu
                      $

                      or



                      $begin{array}\
                      0
                      &=abu^2-uv(a+b)\
                      &=abu^2-uv(a+b)+v^2-v^2\
                      &=(au-v)(bu-v)-v^2\
                      end{array}
                      $



                      so
                      $(au-v)(bu-v)=v^2
                      $
                      .



                      In particular,
                      either
                      $augt v, bu gt v$
                      or
                      $ault v, bu lt v$.



                      We can assume that
                      $a ge b$.



                      If $a=b$
                      then
                      $(au-v)^2=v^2
                      $

                      so
                      $au-v = pm v$
                      so that
                      $a = frac{2v}{u}$
                      (which gives
                      $frac1{a}=frac{u}{2v}$)
                      or
                      $a=0$ ,
                      which not be.
                      For there to be a solution here,
                      we must have
                      $u | 2v$.



                      So we can assume
                      from now on
                      that $a > b$.



                      For each factorization
                      $v^2 = rs$
                      with $r le s$,
                      for a solution
                      we must have either
                      $au-v=r, bu-v = s
                      $
                      ,
                      $au-v=s, bu-v = r
                      $
                      ,
                      $au-v=-r, bu-v = -s
                      $
                      ,
                      or
                      $au-v=-s, bu-v = -r$.



                      Since
                      $a > b$ and $r le s$,
                      the first and third cases can not hold,
                      so either
                      $a = frac{v+s}{u},
                      b = frac{v+r}{u}
                      $

                      or
                      $a = frac{v-r}{u},
                      b = frac{v-s}{u}
                      $
                      .



                      For these to be integers,
                      we must have either
                      $u | (v+s),
                      u | (v+r)$

                      or
                      $u | (v-r),
                      u | (v-s)$
                      .
                      In either case,
                      we must have
                      $u | (s-r)$.



                      By looking at
                      $v bmod u$
                      we can quickly decide
                      which $r$ and $s$
                      will work.







                      share|cite|improve this answer












                      share|cite|improve this answer



                      share|cite|improve this answer










                      answered Dec 24 '18 at 21:00









                      marty cohenmarty cohen

                      74.3k549128




                      74.3k549128












                      • $begingroup$
                        I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                        $endgroup$
                        – K.M
                        Dec 25 '18 at 3:46










                      • $begingroup$
                        The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                        $endgroup$
                        – marty cohen
                        Dec 25 '18 at 5:06


















                      • $begingroup$
                        I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                        $endgroup$
                        – K.M
                        Dec 25 '18 at 3:46










                      • $begingroup$
                        The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                        $endgroup$
                        – marty cohen
                        Dec 25 '18 at 5:06
















                      $begingroup$
                      I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                      $endgroup$
                      – K.M
                      Dec 25 '18 at 3:46




                      $begingroup$
                      I was wondering if you could further elaborate as to why we choose to assume that $a>b$?
                      $endgroup$
                      – K.M
                      Dec 25 '18 at 3:46












                      $begingroup$
                      The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                      $endgroup$
                      – marty cohen
                      Dec 25 '18 at 5:06




                      $begingroup$
                      The problem is symmetric in a and b, so any solution with a < b implies one with a > b.
                      $endgroup$
                      – marty cohen
                      Dec 25 '18 at 5:06


















                      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%2f3051443%2ffind-all-ordered-pairs-a-b-of-positive-integers-for-which-frac1a-fr%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

                      Probability when a professor distributes a quiz and homework assignment to a class of n students.

                      Aardman Animations

                      Are they similar matrix