Finding Remainder Using Binomial Theorem












2












$begingroup$


Find the remainder when $7^{98} $ is divided by $5$.



What I am doing here is expanding ${(5+2)}^{98} $ using binomial theorem and writing it as $5k + 2$, where $k$ is a positive integer but the answer is $4$ and I'm getting $2.$



They are expanding ${(50 - 1)}^{49} $ using binomial theorem and then writing $50k - 1$ and getting $4$ as a reminder.



How those two methods are different?










share|cite|improve this question











$endgroup$












  • $begingroup$
    $4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:35








  • 1




    $begingroup$
    But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:47


















2












$begingroup$


Find the remainder when $7^{98} $ is divided by $5$.



What I am doing here is expanding ${(5+2)}^{98} $ using binomial theorem and writing it as $5k + 2$, where $k$ is a positive integer but the answer is $4$ and I'm getting $2.$



They are expanding ${(50 - 1)}^{49} $ using binomial theorem and then writing $50k - 1$ and getting $4$ as a reminder.



How those two methods are different?










share|cite|improve this question











$endgroup$












  • $begingroup$
    $4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:35








  • 1




    $begingroup$
    But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:47
















2












2








2





$begingroup$


Find the remainder when $7^{98} $ is divided by $5$.



What I am doing here is expanding ${(5+2)}^{98} $ using binomial theorem and writing it as $5k + 2$, where $k$ is a positive integer but the answer is $4$ and I'm getting $2.$



They are expanding ${(50 - 1)}^{49} $ using binomial theorem and then writing $50k - 1$ and getting $4$ as a reminder.



How those two methods are different?










share|cite|improve this question











$endgroup$




Find the remainder when $7^{98} $ is divided by $5$.



What I am doing here is expanding ${(5+2)}^{98} $ using binomial theorem and writing it as $5k + 2$, where $k$ is a positive integer but the answer is $4$ and I'm getting $2.$



They are expanding ${(50 - 1)}^{49} $ using binomial theorem and then writing $50k - 1$ and getting $4$ as a reminder.



How those two methods are different?







combinatorics number-theory binomial-theorem






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 26 at 16:33









Thomas Shelby

4,3042726




4,3042726










asked Jan 26 at 16:21









user638507user638507

142




142












  • $begingroup$
    $4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:35








  • 1




    $begingroup$
    But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:47




















  • $begingroup$
    $4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:35








  • 1




    $begingroup$
    But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
    $endgroup$
    – Bill Dubuque
    Jan 26 at 16:47


















$begingroup$
$4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
$endgroup$
– Bill Dubuque
Jan 26 at 16:35






$begingroup$
$4$ is correct, so you made an error somewhere. If you seek help debugging your calculation then you need to show your work. The point of using BT is that it reduces it to computing $(-1)^{49},,$ which is simpler than computing $,2^{98}pmod 5 $
$endgroup$
– Bill Dubuque
Jan 26 at 16:35






1




1




$begingroup$
But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
$endgroup$
– Bill Dubuque
Jan 26 at 16:47






$begingroup$
But BT isn't needed: $largebmod 5!:, 7^{large 98}!equiv (7^{large 2})^{large 49}!equiv (-1)^{large 49}!equiv -1equiv 4, $ [or $large, 7equiv 2,$ and $large,2^{large 2}equiv -1$], by using standard congruence arithmetic rules.
$endgroup$
– Bill Dubuque
Jan 26 at 16:47












3 Answers
3






active

oldest

votes


















1












$begingroup$

The binomial theorem tells you
$$(5+2)^{98} = binom{98}{0}cdot 5^{98}+binom{98}{1}cdot 5^{91}2^1+ binom{98}{2}cdot 5^{90}2^2+cdots + binom{98}{97}cdot 5cdot 2^{97}+ binom{98}{98}cdot 2^{98} = 5k+2^{98}.$$
So you need to find the remainder when $2^{98}$ is divided by $5$, not the remainder when $2$ is divided by $5$.



The method using $(50-1)^{49}$ is a little easier because $(-1)^{49}=-1$.






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
    $endgroup$
    – Mohammad Zuhair Khan
    Jan 26 at 16:30



















0












$begingroup$

With your method, you have to check the divison by 5 of $2^{98} = 4cdot (2^4)^{24} = 4cdot (3cdot 5 +1)^{24}$ and, using the Binomial theorem again, you end up with a rest after division of $4 cdot 1^{24} = 4$ which is also the "other" result.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    When you expand ${(5+2)}^{98}$, you will get $5k+2^{98}$, for some $kinBbb N $.



    If you know Fermat's little theorem, you have $2^4equiv 1pmod 5$. Hence $2^{98}equiv 2^{2}equiv 4pmod 5$. So the remainder is $4$.






    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%2f3088442%2ffinding-remainder-using-binomial-theorem%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









      1












      $begingroup$

      The binomial theorem tells you
      $$(5+2)^{98} = binom{98}{0}cdot 5^{98}+binom{98}{1}cdot 5^{91}2^1+ binom{98}{2}cdot 5^{90}2^2+cdots + binom{98}{97}cdot 5cdot 2^{97}+ binom{98}{98}cdot 2^{98} = 5k+2^{98}.$$
      So you need to find the remainder when $2^{98}$ is divided by $5$, not the remainder when $2$ is divided by $5$.



      The method using $(50-1)^{49}$ is a little easier because $(-1)^{49}=-1$.






      share|cite|improve this answer









      $endgroup$









      • 1




        $begingroup$
        Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
        $endgroup$
        – Mohammad Zuhair Khan
        Jan 26 at 16:30
















      1












      $begingroup$

      The binomial theorem tells you
      $$(5+2)^{98} = binom{98}{0}cdot 5^{98}+binom{98}{1}cdot 5^{91}2^1+ binom{98}{2}cdot 5^{90}2^2+cdots + binom{98}{97}cdot 5cdot 2^{97}+ binom{98}{98}cdot 2^{98} = 5k+2^{98}.$$
      So you need to find the remainder when $2^{98}$ is divided by $5$, not the remainder when $2$ is divided by $5$.



      The method using $(50-1)^{49}$ is a little easier because $(-1)^{49}=-1$.






      share|cite|improve this answer









      $endgroup$









      • 1




        $begingroup$
        Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
        $endgroup$
        – Mohammad Zuhair Khan
        Jan 26 at 16:30














      1












      1








      1





      $begingroup$

      The binomial theorem tells you
      $$(5+2)^{98} = binom{98}{0}cdot 5^{98}+binom{98}{1}cdot 5^{91}2^1+ binom{98}{2}cdot 5^{90}2^2+cdots + binom{98}{97}cdot 5cdot 2^{97}+ binom{98}{98}cdot 2^{98} = 5k+2^{98}.$$
      So you need to find the remainder when $2^{98}$ is divided by $5$, not the remainder when $2$ is divided by $5$.



      The method using $(50-1)^{49}$ is a little easier because $(-1)^{49}=-1$.






      share|cite|improve this answer









      $endgroup$



      The binomial theorem tells you
      $$(5+2)^{98} = binom{98}{0}cdot 5^{98}+binom{98}{1}cdot 5^{91}2^1+ binom{98}{2}cdot 5^{90}2^2+cdots + binom{98}{97}cdot 5cdot 2^{97}+ binom{98}{98}cdot 2^{98} = 5k+2^{98}.$$
      So you need to find the remainder when $2^{98}$ is divided by $5$, not the remainder when $2$ is divided by $5$.



      The method using $(50-1)^{49}$ is a little easier because $(-1)^{49}=-1$.







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Jan 26 at 16:27









      kccukccu

      10.6k11229




      10.6k11229








      • 1




        $begingroup$
        Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
        $endgroup$
        – Mohammad Zuhair Khan
        Jan 26 at 16:30














      • 1




        $begingroup$
        Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
        $endgroup$
        – Mohammad Zuhair Khan
        Jan 26 at 16:30








      1




      1




      $begingroup$
      Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
      $endgroup$
      – Mohammad Zuhair Khan
      Jan 26 at 16:30




      $begingroup$
      Also $2^4 equiv 1 pmod 5$ and $2^{98}=2^{4 cdot 24+2}$.
      $endgroup$
      – Mohammad Zuhair Khan
      Jan 26 at 16:30











      0












      $begingroup$

      With your method, you have to check the divison by 5 of $2^{98} = 4cdot (2^4)^{24} = 4cdot (3cdot 5 +1)^{24}$ and, using the Binomial theorem again, you end up with a rest after division of $4 cdot 1^{24} = 4$ which is also the "other" result.






      share|cite|improve this answer









      $endgroup$


















        0












        $begingroup$

        With your method, you have to check the divison by 5 of $2^{98} = 4cdot (2^4)^{24} = 4cdot (3cdot 5 +1)^{24}$ and, using the Binomial theorem again, you end up with a rest after division of $4 cdot 1^{24} = 4$ which is also the "other" result.






        share|cite|improve this answer









        $endgroup$
















          0












          0








          0





          $begingroup$

          With your method, you have to check the divison by 5 of $2^{98} = 4cdot (2^4)^{24} = 4cdot (3cdot 5 +1)^{24}$ and, using the Binomial theorem again, you end up with a rest after division of $4 cdot 1^{24} = 4$ which is also the "other" result.






          share|cite|improve this answer









          $endgroup$



          With your method, you have to check the divison by 5 of $2^{98} = 4cdot (2^4)^{24} = 4cdot (3cdot 5 +1)^{24}$ and, using the Binomial theorem again, you end up with a rest after division of $4 cdot 1^{24} = 4$ which is also the "other" result.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Jan 26 at 16:29









          AndreasAndreas

          8,3511137




          8,3511137























              0












              $begingroup$

              When you expand ${(5+2)}^{98}$, you will get $5k+2^{98}$, for some $kinBbb N $.



              If you know Fermat's little theorem, you have $2^4equiv 1pmod 5$. Hence $2^{98}equiv 2^{2}equiv 4pmod 5$. So the remainder is $4$.






              share|cite|improve this answer











              $endgroup$


















                0












                $begingroup$

                When you expand ${(5+2)}^{98}$, you will get $5k+2^{98}$, for some $kinBbb N $.



                If you know Fermat's little theorem, you have $2^4equiv 1pmod 5$. Hence $2^{98}equiv 2^{2}equiv 4pmod 5$. So the remainder is $4$.






                share|cite|improve this answer











                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  When you expand ${(5+2)}^{98}$, you will get $5k+2^{98}$, for some $kinBbb N $.



                  If you know Fermat's little theorem, you have $2^4equiv 1pmod 5$. Hence $2^{98}equiv 2^{2}equiv 4pmod 5$. So the remainder is $4$.






                  share|cite|improve this answer











                  $endgroup$



                  When you expand ${(5+2)}^{98}$, you will get $5k+2^{98}$, for some $kinBbb N $.



                  If you know Fermat's little theorem, you have $2^4equiv 1pmod 5$. Hence $2^{98}equiv 2^{2}equiv 4pmod 5$. So the remainder is $4$.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Jan 26 at 16:35

























                  answered Jan 26 at 16:28









                  Thomas ShelbyThomas Shelby

                  4,3042726




                  4,3042726






























                      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%2f3088442%2ffinding-remainder-using-binomial-theorem%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

                      'app-layout' is not a known element: how to share Component with different Modules

                      android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                      WPF add header to Image with URL pettitions [duplicate]