Smallest cube ending in $2017$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
15
down vote

favorite
3













What is the smallest cube ending in $2017$?




My try: I know that the only possible units digit is $3$,



$$(a+3)^3 = 2017 mod 10^4;$$



and



$$a^3 + 9a^2 + 27a = 1990mod 10^4$$



I don't know how to proceed, I tried factoring and adding $10^5$ and $1990$ but when I saw the answer, this approach would take forever.







share|cite|improve this question


















  • 6




    You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
    – Mark Bennet
    Aug 12 at 11:55






  • 3




    It's rather modulo $10^4$
    – Arnaud Mortier
    Aug 12 at 11:55














up vote
15
down vote

favorite
3













What is the smallest cube ending in $2017$?




My try: I know that the only possible units digit is $3$,



$$(a+3)^3 = 2017 mod 10^4;$$



and



$$a^3 + 9a^2 + 27a = 1990mod 10^4$$



I don't know how to proceed, I tried factoring and adding $10^5$ and $1990$ but when I saw the answer, this approach would take forever.







share|cite|improve this question


















  • 6




    You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
    – Mark Bennet
    Aug 12 at 11:55






  • 3




    It's rather modulo $10^4$
    – Arnaud Mortier
    Aug 12 at 11:55












up vote
15
down vote

favorite
3









up vote
15
down vote

favorite
3






3






What is the smallest cube ending in $2017$?




My try: I know that the only possible units digit is $3$,



$$(a+3)^3 = 2017 mod 10^4;$$



and



$$a^3 + 9a^2 + 27a = 1990mod 10^4$$



I don't know how to proceed, I tried factoring and adding $10^5$ and $1990$ but when I saw the answer, this approach would take forever.







share|cite|improve this question















What is the smallest cube ending in $2017$?




My try: I know that the only possible units digit is $3$,



$$(a+3)^3 = 2017 mod 10^4;$$



and



$$a^3 + 9a^2 + 27a = 1990mod 10^4$$



I don't know how to proceed, I tried factoring and adding $10^5$ and $1990$ but when I saw the answer, this approach would take forever.









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 12 at 21:57









Xander Henderson

13.2k83150




13.2k83150










asked Aug 12 at 11:52









SuperMage1

707210




707210







  • 6




    You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
    – Mark Bennet
    Aug 12 at 11:55






  • 3




    It's rather modulo $10^4$
    – Arnaud Mortier
    Aug 12 at 11:55












  • 6




    You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
    – Mark Bennet
    Aug 12 at 11:55






  • 3




    It's rather modulo $10^4$
    – Arnaud Mortier
    Aug 12 at 11:55







6




6




You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
– Mark Bennet
Aug 12 at 11:55




You should use $10a+3$ instead of $a+3$ since $3$ is the units digit, and that will help you to make more progress.
– Mark Bennet
Aug 12 at 11:55




3




3




It's rather modulo $10^4$
– Arnaud Mortier
Aug 12 at 11:55




It's rather modulo $10^4$
– Arnaud Mortier
Aug 12 at 11:55










3 Answers
3






active

oldest

votes

















up vote
12
down vote













Recall Carmichael's theorem: $a^lambda(m) equiv 1 bmod m$ for all $a$ coprime with $m$.



For $lambda(10^4)=500$, we get $1 + 500 = 167 cdot 3$ and so $a equiv a cdot 1 equiv a cdot a^500 equiv (a^167)^3 bmod 10^4$.



Thus, the answer is $2017^167 bmod 10^4$, which is $9073$, by repeated squaring.



There is only one solution mod $10^4$ because $x mapsto x^3$ is injective in $U(10^4)$, as we have seen above.






share|cite|improve this answer






















  • Which formula you have used for the last deduction
    – lab bhattacharjee
    Aug 12 at 13:17










  • @user202729, see my edited answer
    – lhf
    Aug 12 at 16:29

















up vote
11
down vote













$x^3equiv 7 pmod 10$. So $xequiv 3 pmod 10$.



Put $x=10y+3$, and compute $pmod 100$.
This yields $1000y^3+900y^2+270y+27 equiv 17 pmod 100$. Thus $70y equiv -10 pmod 100$, or equivalently, $7y equiv -1 pmod 10$. Divide by $7$: $y equiv 7 pmod 10$.



Put $y=10z+7$, hence $x=100z+73$. I think you see the pattern now: calculate modulo $1000$, it gives you the $pmod10$ remainder of $z$, and one more iteration gives you the $pmod 10000$ remainder of $x$, which is also the smallest solution.



(Solution: $9073$)






share|cite|improve this answer





























    up vote
    8
    down vote













    $a^3 + 9a^2 + 27a = 1990mod 10^4Longleftrightarrowcasesa^3 + 9a^2 + 27a = 1990mod 2^4\a^3 + 9a^2 + 27a = 1990mod 5^4\$



    Now $2^4=16$, so the first equation is easy and happens to have only one solution, $14bmod 16$.



    As for the second, the only solution is $320bmod 625$.



    By the CRT, the only solution modulo $10000$ is $9070$, resulting in the least solution $$9073^3=746883272017$$






    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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f2880243%2fsmallest-cube-ending-in-2017%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      12
      down vote













      Recall Carmichael's theorem: $a^lambda(m) equiv 1 bmod m$ for all $a$ coprime with $m$.



      For $lambda(10^4)=500$, we get $1 + 500 = 167 cdot 3$ and so $a equiv a cdot 1 equiv a cdot a^500 equiv (a^167)^3 bmod 10^4$.



      Thus, the answer is $2017^167 bmod 10^4$, which is $9073$, by repeated squaring.



      There is only one solution mod $10^4$ because $x mapsto x^3$ is injective in $U(10^4)$, as we have seen above.






      share|cite|improve this answer






















      • Which formula you have used for the last deduction
        – lab bhattacharjee
        Aug 12 at 13:17










      • @user202729, see my edited answer
        – lhf
        Aug 12 at 16:29














      up vote
      12
      down vote













      Recall Carmichael's theorem: $a^lambda(m) equiv 1 bmod m$ for all $a$ coprime with $m$.



      For $lambda(10^4)=500$, we get $1 + 500 = 167 cdot 3$ and so $a equiv a cdot 1 equiv a cdot a^500 equiv (a^167)^3 bmod 10^4$.



      Thus, the answer is $2017^167 bmod 10^4$, which is $9073$, by repeated squaring.



      There is only one solution mod $10^4$ because $x mapsto x^3$ is injective in $U(10^4)$, as we have seen above.






      share|cite|improve this answer






















      • Which formula you have used for the last deduction
        – lab bhattacharjee
        Aug 12 at 13:17










      • @user202729, see my edited answer
        – lhf
        Aug 12 at 16:29












      up vote
      12
      down vote










      up vote
      12
      down vote









      Recall Carmichael's theorem: $a^lambda(m) equiv 1 bmod m$ for all $a$ coprime with $m$.



      For $lambda(10^4)=500$, we get $1 + 500 = 167 cdot 3$ and so $a equiv a cdot 1 equiv a cdot a^500 equiv (a^167)^3 bmod 10^4$.



      Thus, the answer is $2017^167 bmod 10^4$, which is $9073$, by repeated squaring.



      There is only one solution mod $10^4$ because $x mapsto x^3$ is injective in $U(10^4)$, as we have seen above.






      share|cite|improve this answer














      Recall Carmichael's theorem: $a^lambda(m) equiv 1 bmod m$ for all $a$ coprime with $m$.



      For $lambda(10^4)=500$, we get $1 + 500 = 167 cdot 3$ and so $a equiv a cdot 1 equiv a cdot a^500 equiv (a^167)^3 bmod 10^4$.



      Thus, the answer is $2017^167 bmod 10^4$, which is $9073$, by repeated squaring.



      There is only one solution mod $10^4$ because $x mapsto x^3$ is injective in $U(10^4)$, as we have seen above.







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited Aug 12 at 15:55

























      answered Aug 12 at 12:07









      lhf

      156k9161368




      156k9161368











      • Which formula you have used for the last deduction
        – lab bhattacharjee
        Aug 12 at 13:17










      • @user202729, see my edited answer
        – lhf
        Aug 12 at 16:29
















      • Which formula you have used for the last deduction
        – lab bhattacharjee
        Aug 12 at 13:17










      • @user202729, see my edited answer
        – lhf
        Aug 12 at 16:29















      Which formula you have used for the last deduction
      – lab bhattacharjee
      Aug 12 at 13:17




      Which formula you have used for the last deduction
      – lab bhattacharjee
      Aug 12 at 13:17












      @user202729, see my edited answer
      – lhf
      Aug 12 at 16:29




      @user202729, see my edited answer
      – lhf
      Aug 12 at 16:29










      up vote
      11
      down vote













      $x^3equiv 7 pmod 10$. So $xequiv 3 pmod 10$.



      Put $x=10y+3$, and compute $pmod 100$.
      This yields $1000y^3+900y^2+270y+27 equiv 17 pmod 100$. Thus $70y equiv -10 pmod 100$, or equivalently, $7y equiv -1 pmod 10$. Divide by $7$: $y equiv 7 pmod 10$.



      Put $y=10z+7$, hence $x=100z+73$. I think you see the pattern now: calculate modulo $1000$, it gives you the $pmod10$ remainder of $z$, and one more iteration gives you the $pmod 10000$ remainder of $x$, which is also the smallest solution.



      (Solution: $9073$)






      share|cite|improve this answer


























        up vote
        11
        down vote













        $x^3equiv 7 pmod 10$. So $xequiv 3 pmod 10$.



        Put $x=10y+3$, and compute $pmod 100$.
        This yields $1000y^3+900y^2+270y+27 equiv 17 pmod 100$. Thus $70y equiv -10 pmod 100$, or equivalently, $7y equiv -1 pmod 10$. Divide by $7$: $y equiv 7 pmod 10$.



        Put $y=10z+7$, hence $x=100z+73$. I think you see the pattern now: calculate modulo $1000$, it gives you the $pmod10$ remainder of $z$, and one more iteration gives you the $pmod 10000$ remainder of $x$, which is also the smallest solution.



        (Solution: $9073$)






        share|cite|improve this answer
























          up vote
          11
          down vote










          up vote
          11
          down vote









          $x^3equiv 7 pmod 10$. So $xequiv 3 pmod 10$.



          Put $x=10y+3$, and compute $pmod 100$.
          This yields $1000y^3+900y^2+270y+27 equiv 17 pmod 100$. Thus $70y equiv -10 pmod 100$, or equivalently, $7y equiv -1 pmod 10$. Divide by $7$: $y equiv 7 pmod 10$.



          Put $y=10z+7$, hence $x=100z+73$. I think you see the pattern now: calculate modulo $1000$, it gives you the $pmod10$ remainder of $z$, and one more iteration gives you the $pmod 10000$ remainder of $x$, which is also the smallest solution.



          (Solution: $9073$)






          share|cite|improve this answer














          $x^3equiv 7 pmod 10$. So $xequiv 3 pmod 10$.



          Put $x=10y+3$, and compute $pmod 100$.
          This yields $1000y^3+900y^2+270y+27 equiv 17 pmod 100$. Thus $70y equiv -10 pmod 100$, or equivalently, $7y equiv -1 pmod 10$. Divide by $7$: $y equiv 7 pmod 10$.



          Put $y=10z+7$, hence $x=100z+73$. I think you see the pattern now: calculate modulo $1000$, it gives you the $pmod10$ remainder of $z$, and one more iteration gives you the $pmod 10000$ remainder of $x$, which is also the smallest solution.



          (Solution: $9073$)







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Aug 12 at 12:12

























          answered Aug 12 at 12:07









          A. Pongrácz

          4,137725




          4,137725




















              up vote
              8
              down vote













              $a^3 + 9a^2 + 27a = 1990mod 10^4Longleftrightarrowcasesa^3 + 9a^2 + 27a = 1990mod 2^4\a^3 + 9a^2 + 27a = 1990mod 5^4\$



              Now $2^4=16$, so the first equation is easy and happens to have only one solution, $14bmod 16$.



              As for the second, the only solution is $320bmod 625$.



              By the CRT, the only solution modulo $10000$ is $9070$, resulting in the least solution $$9073^3=746883272017$$






              share|cite|improve this answer
























                up vote
                8
                down vote













                $a^3 + 9a^2 + 27a = 1990mod 10^4Longleftrightarrowcasesa^3 + 9a^2 + 27a = 1990mod 2^4\a^3 + 9a^2 + 27a = 1990mod 5^4\$



                Now $2^4=16$, so the first equation is easy and happens to have only one solution, $14bmod 16$.



                As for the second, the only solution is $320bmod 625$.



                By the CRT, the only solution modulo $10000$ is $9070$, resulting in the least solution $$9073^3=746883272017$$






                share|cite|improve this answer






















                  up vote
                  8
                  down vote










                  up vote
                  8
                  down vote









                  $a^3 + 9a^2 + 27a = 1990mod 10^4Longleftrightarrowcasesa^3 + 9a^2 + 27a = 1990mod 2^4\a^3 + 9a^2 + 27a = 1990mod 5^4\$



                  Now $2^4=16$, so the first equation is easy and happens to have only one solution, $14bmod 16$.



                  As for the second, the only solution is $320bmod 625$.



                  By the CRT, the only solution modulo $10000$ is $9070$, resulting in the least solution $$9073^3=746883272017$$






                  share|cite|improve this answer












                  $a^3 + 9a^2 + 27a = 1990mod 10^4Longleftrightarrowcasesa^3 + 9a^2 + 27a = 1990mod 2^4\a^3 + 9a^2 + 27a = 1990mod 5^4\$



                  Now $2^4=16$, so the first equation is easy and happens to have only one solution, $14bmod 16$.



                  As for the second, the only solution is $320bmod 625$.



                  By the CRT, the only solution modulo $10000$ is $9070$, resulting in the least solution $$9073^3=746883272017$$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Aug 12 at 12:20









                  Arnaud Mortier

                  19.6k22159




                  19.6k22159



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2880243%2fsmallest-cube-ending-in-2017%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      What does second last employer means? [closed]

                      List of Gilmore Girls characters

                      Confectionery