Substitutions in Modular Arithmetic












2














I've just learned modular arithmetic today, and am really struggling to understand a certain theorem.



The theorem given to us states the following:



Let m $in mathbb{N}$. For any integers a, b, c, and d, if $a equiv b pmod m$ and $c equiv d pmod m$ then,




  1. $a+c equiv b+d pmod m$

  2. $a-c equiv b-d pmod m$

  3. $ac equiv bd pmod m$


In the next section, the notes state the following: "We can use properties of congruence to prove the (familiar) rule that an
integer is divisible by 3 if and only if the sum of its decimal digits is divisible
by 3. The key is to observe that $10 equiv 1 pmod 3$ and so by Theorem 5.10.3 [theorem stated above]
you can change 10 to 1 wherever it occurs. Remember that $3|n$ if and only
if $n equiv 0 pmod 3$."



Next, it goes through the proof it was talking about at the beginning of the first quote:



Suppose $n=d_k cdot b_k + d_{k-1}cdot b_{k-1} + dots + d_1cdot b + d_0$ where $d_k, d_{k-1},dots, d_0$ are the digits of $n$. Also assume that $3|n$. We now have the following:



begin{align}
n equiv 0 pmod 3 &iff d_kcdot 10^k + d_{k-1}cdot 10^{k-1} + dots + d_1cdot 10 + d_0 equiv 0 pmod 3\
&iff d_k cdot 1^k + d_{k-1}cdot 1^{k-1} + dots + d_1 cdot 1 + d_0 equiv 0 pmod 3
end{align}

since $10 equiv 1 pmod 3$.



I don't quite understand how any parts of the theorem stated above allows for substitution.



Thanks for any help.










share|cite|improve this question
























  • Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    – José Carlos Santos
    Nov 25 '18 at 8:26










  • Use the theorem, parts 1 and 2 many many times.
    – William Elliot
    Nov 25 '18 at 8:41










  • @WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
    – Dastur
    Nov 25 '18 at 8:50






  • 1




    See the Polynomial Congruence Rule e.g. as used here.
    – Bill Dubuque
    Nov 27 '18 at 4:03
















2














I've just learned modular arithmetic today, and am really struggling to understand a certain theorem.



The theorem given to us states the following:



Let m $in mathbb{N}$. For any integers a, b, c, and d, if $a equiv b pmod m$ and $c equiv d pmod m$ then,




  1. $a+c equiv b+d pmod m$

  2. $a-c equiv b-d pmod m$

  3. $ac equiv bd pmod m$


In the next section, the notes state the following: "We can use properties of congruence to prove the (familiar) rule that an
integer is divisible by 3 if and only if the sum of its decimal digits is divisible
by 3. The key is to observe that $10 equiv 1 pmod 3$ and so by Theorem 5.10.3 [theorem stated above]
you can change 10 to 1 wherever it occurs. Remember that $3|n$ if and only
if $n equiv 0 pmod 3$."



Next, it goes through the proof it was talking about at the beginning of the first quote:



Suppose $n=d_k cdot b_k + d_{k-1}cdot b_{k-1} + dots + d_1cdot b + d_0$ where $d_k, d_{k-1},dots, d_0$ are the digits of $n$. Also assume that $3|n$. We now have the following:



begin{align}
n equiv 0 pmod 3 &iff d_kcdot 10^k + d_{k-1}cdot 10^{k-1} + dots + d_1cdot 10 + d_0 equiv 0 pmod 3\
&iff d_k cdot 1^k + d_{k-1}cdot 1^{k-1} + dots + d_1 cdot 1 + d_0 equiv 0 pmod 3
end{align}

since $10 equiv 1 pmod 3$.



I don't quite understand how any parts of the theorem stated above allows for substitution.



Thanks for any help.










share|cite|improve this question
























  • Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    – José Carlos Santos
    Nov 25 '18 at 8:26










  • Use the theorem, parts 1 and 2 many many times.
    – William Elliot
    Nov 25 '18 at 8:41










  • @WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
    – Dastur
    Nov 25 '18 at 8:50






  • 1




    See the Polynomial Congruence Rule e.g. as used here.
    – Bill Dubuque
    Nov 27 '18 at 4:03














2












2








2







I've just learned modular arithmetic today, and am really struggling to understand a certain theorem.



The theorem given to us states the following:



Let m $in mathbb{N}$. For any integers a, b, c, and d, if $a equiv b pmod m$ and $c equiv d pmod m$ then,




  1. $a+c equiv b+d pmod m$

  2. $a-c equiv b-d pmod m$

  3. $ac equiv bd pmod m$


In the next section, the notes state the following: "We can use properties of congruence to prove the (familiar) rule that an
integer is divisible by 3 if and only if the sum of its decimal digits is divisible
by 3. The key is to observe that $10 equiv 1 pmod 3$ and so by Theorem 5.10.3 [theorem stated above]
you can change 10 to 1 wherever it occurs. Remember that $3|n$ if and only
if $n equiv 0 pmod 3$."



Next, it goes through the proof it was talking about at the beginning of the first quote:



Suppose $n=d_k cdot b_k + d_{k-1}cdot b_{k-1} + dots + d_1cdot b + d_0$ where $d_k, d_{k-1},dots, d_0$ are the digits of $n$. Also assume that $3|n$. We now have the following:



begin{align}
n equiv 0 pmod 3 &iff d_kcdot 10^k + d_{k-1}cdot 10^{k-1} + dots + d_1cdot 10 + d_0 equiv 0 pmod 3\
&iff d_k cdot 1^k + d_{k-1}cdot 1^{k-1} + dots + d_1 cdot 1 + d_0 equiv 0 pmod 3
end{align}

since $10 equiv 1 pmod 3$.



I don't quite understand how any parts of the theorem stated above allows for substitution.



Thanks for any help.










share|cite|improve this question















I've just learned modular arithmetic today, and am really struggling to understand a certain theorem.



The theorem given to us states the following:



Let m $in mathbb{N}$. For any integers a, b, c, and d, if $a equiv b pmod m$ and $c equiv d pmod m$ then,




  1. $a+c equiv b+d pmod m$

  2. $a-c equiv b-d pmod m$

  3. $ac equiv bd pmod m$


In the next section, the notes state the following: "We can use properties of congruence to prove the (familiar) rule that an
integer is divisible by 3 if and only if the sum of its decimal digits is divisible
by 3. The key is to observe that $10 equiv 1 pmod 3$ and so by Theorem 5.10.3 [theorem stated above]
you can change 10 to 1 wherever it occurs. Remember that $3|n$ if and only
if $n equiv 0 pmod 3$."



Next, it goes through the proof it was talking about at the beginning of the first quote:



Suppose $n=d_k cdot b_k + d_{k-1}cdot b_{k-1} + dots + d_1cdot b + d_0$ where $d_k, d_{k-1},dots, d_0$ are the digits of $n$. Also assume that $3|n$. We now have the following:



begin{align}
n equiv 0 pmod 3 &iff d_kcdot 10^k + d_{k-1}cdot 10^{k-1} + dots + d_1cdot 10 + d_0 equiv 0 pmod 3\
&iff d_k cdot 1^k + d_{k-1}cdot 1^{k-1} + dots + d_1 cdot 1 + d_0 equiv 0 pmod 3
end{align}

since $10 equiv 1 pmod 3$.



I don't quite understand how any parts of the theorem stated above allows for substitution.



Thanks for any help.







number-theory discrete-mathematics modular-arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 25 '18 at 15:12









David Diaz

944420




944420










asked Nov 25 '18 at 8:17









Dastur

1134




1134












  • Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    – José Carlos Santos
    Nov 25 '18 at 8:26










  • Use the theorem, parts 1 and 2 many many times.
    – William Elliot
    Nov 25 '18 at 8:41










  • @WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
    – Dastur
    Nov 25 '18 at 8:50






  • 1




    See the Polynomial Congruence Rule e.g. as used here.
    – Bill Dubuque
    Nov 27 '18 at 4:03


















  • Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
    – José Carlos Santos
    Nov 25 '18 at 8:26










  • Use the theorem, parts 1 and 2 many many times.
    – William Elliot
    Nov 25 '18 at 8:41










  • @WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
    – Dastur
    Nov 25 '18 at 8:50






  • 1




    See the Polynomial Congruence Rule e.g. as used here.
    – Bill Dubuque
    Nov 27 '18 at 4:03
















Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
– José Carlos Santos
Nov 25 '18 at 8:26




Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
– José Carlos Santos
Nov 25 '18 at 8:26












Use the theorem, parts 1 and 2 many many times.
– William Elliot
Nov 25 '18 at 8:41




Use the theorem, parts 1 and 2 many many times.
– William Elliot
Nov 25 '18 at 8:41












@WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
– Dastur
Nov 25 '18 at 8:50




@WilliamElliot I'm confused as to how that would help. If i were to use 1 or 2, the RHS of the equation would become significantly more postive or negative, Instead of staying at 0. To stay at 0, you would have to alternate between using 1 and 2, which in turn would effect no change on the LHS.
– Dastur
Nov 25 '18 at 8:50




1




1




See the Polynomial Congruence Rule e.g. as used here.
– Bill Dubuque
Nov 27 '18 at 4:03




See the Polynomial Congruence Rule e.g. as used here.
– Bill Dubuque
Nov 27 '18 at 4:03










2 Answers
2






active

oldest

votes


















1














We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since $10equiv 1$ modulo $3$, we have
$$ d_k10^k+d_{k-1}10^{k-1}+cdots+d_010^0= d_k1^k+cdots+d_01^0=d_k+cdots+d_0 pmod 3.$$
Note that the only difference that occurred is that we changed all the $10$s which occurred in the expression to $1$s [to emphasize the thinking that $10$ and $1$ are really the same element, I've used $=$ in place of $equiv$]. The reason we do this is because they are congruent mod $3$.



If you want a more formal explanation, note that regardless of $x$ and $n$, if $x=a$, then $ x^2=xcdot x=acdot a=a^2$ modulo $n$ (this is part 3 of your theorem). By induction it is also true that $x^k=a^k$. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of $(1,x,x^2,ldots,x^k)$ and get that the result is congruent to the same linear combination of $a$s. In other words, if $p$ is a polynomial and $xequiv a$ modulo $n$, then $p(x)equiv p(a)$ modulo $n$ as well. Now, apply this to your problem with $x=10$, $a=1$ and $n=3$. Do you see how everything works out?






share|cite|improve this answer





























    1














    When writing a number in base ten, we understand each digit to be some multiple of a power of ten. This is what the "suppose..." section is trying to generalize. Lets look at a specific example:



    $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0$$



    Now that the number is expressed as a sum of products, we can apply the theorems. For example, take the fifty part of four hundred and fifty six:



    Let
    begin{align}
    a&=5\
    b&=5\
    c&=10^1\
    d&=1
    end{align}



    By the third theorem, since $5equiv5pmod 3$ and $10^1equiv 1pmod 3$, it follows that $5cdot10^1 equiv 5cdot1 pmod 3$. Note that all powers of ten are equivalent to one modulo three. You can make the same argument for $400equiv 4pmod 3$. Therefore:



    $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0 equiv 4 + 5 + 6 pmod 3$$



    The real trick is being able to make this argument for an arbitrary number with an unknown number of digits. Can you show $10^n equiv 1^n equiv 1$?






    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',
      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%2f3012569%2fsubstitutions-in-modular-arithmetic%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since $10equiv 1$ modulo $3$, we have
      $$ d_k10^k+d_{k-1}10^{k-1}+cdots+d_010^0= d_k1^k+cdots+d_01^0=d_k+cdots+d_0 pmod 3.$$
      Note that the only difference that occurred is that we changed all the $10$s which occurred in the expression to $1$s [to emphasize the thinking that $10$ and $1$ are really the same element, I've used $=$ in place of $equiv$]. The reason we do this is because they are congruent mod $3$.



      If you want a more formal explanation, note that regardless of $x$ and $n$, if $x=a$, then $ x^2=xcdot x=acdot a=a^2$ modulo $n$ (this is part 3 of your theorem). By induction it is also true that $x^k=a^k$. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of $(1,x,x^2,ldots,x^k)$ and get that the result is congruent to the same linear combination of $a$s. In other words, if $p$ is a polynomial and $xequiv a$ modulo $n$, then $p(x)equiv p(a)$ modulo $n$ as well. Now, apply this to your problem with $x=10$, $a=1$ and $n=3$. Do you see how everything works out?






      share|cite|improve this answer


























        1














        We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since $10equiv 1$ modulo $3$, we have
        $$ d_k10^k+d_{k-1}10^{k-1}+cdots+d_010^0= d_k1^k+cdots+d_01^0=d_k+cdots+d_0 pmod 3.$$
        Note that the only difference that occurred is that we changed all the $10$s which occurred in the expression to $1$s [to emphasize the thinking that $10$ and $1$ are really the same element, I've used $=$ in place of $equiv$]. The reason we do this is because they are congruent mod $3$.



        If you want a more formal explanation, note that regardless of $x$ and $n$, if $x=a$, then $ x^2=xcdot x=acdot a=a^2$ modulo $n$ (this is part 3 of your theorem). By induction it is also true that $x^k=a^k$. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of $(1,x,x^2,ldots,x^k)$ and get that the result is congruent to the same linear combination of $a$s. In other words, if $p$ is a polynomial and $xequiv a$ modulo $n$, then $p(x)equiv p(a)$ modulo $n$ as well. Now, apply this to your problem with $x=10$, $a=1$ and $n=3$. Do you see how everything works out?






        share|cite|improve this answer
























          1












          1








          1






          We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since $10equiv 1$ modulo $3$, we have
          $$ d_k10^k+d_{k-1}10^{k-1}+cdots+d_010^0= d_k1^k+cdots+d_01^0=d_k+cdots+d_0 pmod 3.$$
          Note that the only difference that occurred is that we changed all the $10$s which occurred in the expression to $1$s [to emphasize the thinking that $10$ and $1$ are really the same element, I've used $=$ in place of $equiv$]. The reason we do this is because they are congruent mod $3$.



          If you want a more formal explanation, note that regardless of $x$ and $n$, if $x=a$, then $ x^2=xcdot x=acdot a=a^2$ modulo $n$ (this is part 3 of your theorem). By induction it is also true that $x^k=a^k$. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of $(1,x,x^2,ldots,x^k)$ and get that the result is congruent to the same linear combination of $a$s. In other words, if $p$ is a polynomial and $xequiv a$ modulo $n$, then $p(x)equiv p(a)$ modulo $n$ as well. Now, apply this to your problem with $x=10$, $a=1$ and $n=3$. Do you see how everything works out?






          share|cite|improve this answer












          We are not substituting anything. In an intuitive manner (though not completely rigorous), you can think of numbers congruent in a certain modulo as being equal. Hence since $10equiv 1$ modulo $3$, we have
          $$ d_k10^k+d_{k-1}10^{k-1}+cdots+d_010^0= d_k1^k+cdots+d_01^0=d_k+cdots+d_0 pmod 3.$$
          Note that the only difference that occurred is that we changed all the $10$s which occurred in the expression to $1$s [to emphasize the thinking that $10$ and $1$ are really the same element, I've used $=$ in place of $equiv$]. The reason we do this is because they are congruent mod $3$.



          If you want a more formal explanation, note that regardless of $x$ and $n$, if $x=a$, then $ x^2=xcdot x=acdot a=a^2$ modulo $n$ (this is part 3 of your theorem). By induction it is also true that $x^k=a^k$. Hence we can take linear combinations (this is parts 1 and 2 of your theorem) of $(1,x,x^2,ldots,x^k)$ and get that the result is congruent to the same linear combination of $a$s. In other words, if $p$ is a polynomial and $xequiv a$ modulo $n$, then $p(x)equiv p(a)$ modulo $n$ as well. Now, apply this to your problem with $x=10$, $a=1$ and $n=3$. Do you see how everything works out?







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Nov 25 '18 at 9:26









          YiFan

          2,5191421




          2,5191421























              1














              When writing a number in base ten, we understand each digit to be some multiple of a power of ten. This is what the "suppose..." section is trying to generalize. Lets look at a specific example:



              $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0$$



              Now that the number is expressed as a sum of products, we can apply the theorems. For example, take the fifty part of four hundred and fifty six:



              Let
              begin{align}
              a&=5\
              b&=5\
              c&=10^1\
              d&=1
              end{align}



              By the third theorem, since $5equiv5pmod 3$ and $10^1equiv 1pmod 3$, it follows that $5cdot10^1 equiv 5cdot1 pmod 3$. Note that all powers of ten are equivalent to one modulo three. You can make the same argument for $400equiv 4pmod 3$. Therefore:



              $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0 equiv 4 + 5 + 6 pmod 3$$



              The real trick is being able to make this argument for an arbitrary number with an unknown number of digits. Can you show $10^n equiv 1^n equiv 1$?






              share|cite|improve this answer




























                1














                When writing a number in base ten, we understand each digit to be some multiple of a power of ten. This is what the "suppose..." section is trying to generalize. Lets look at a specific example:



                $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0$$



                Now that the number is expressed as a sum of products, we can apply the theorems. For example, take the fifty part of four hundred and fifty six:



                Let
                begin{align}
                a&=5\
                b&=5\
                c&=10^1\
                d&=1
                end{align}



                By the third theorem, since $5equiv5pmod 3$ and $10^1equiv 1pmod 3$, it follows that $5cdot10^1 equiv 5cdot1 pmod 3$. Note that all powers of ten are equivalent to one modulo three. You can make the same argument for $400equiv 4pmod 3$. Therefore:



                $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0 equiv 4 + 5 + 6 pmod 3$$



                The real trick is being able to make this argument for an arbitrary number with an unknown number of digits. Can you show $10^n equiv 1^n equiv 1$?






                share|cite|improve this answer


























                  1












                  1








                  1






                  When writing a number in base ten, we understand each digit to be some multiple of a power of ten. This is what the "suppose..." section is trying to generalize. Lets look at a specific example:



                  $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0$$



                  Now that the number is expressed as a sum of products, we can apply the theorems. For example, take the fifty part of four hundred and fifty six:



                  Let
                  begin{align}
                  a&=5\
                  b&=5\
                  c&=10^1\
                  d&=1
                  end{align}



                  By the third theorem, since $5equiv5pmod 3$ and $10^1equiv 1pmod 3$, it follows that $5cdot10^1 equiv 5cdot1 pmod 3$. Note that all powers of ten are equivalent to one modulo three. You can make the same argument for $400equiv 4pmod 3$. Therefore:



                  $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0 equiv 4 + 5 + 6 pmod 3$$



                  The real trick is being able to make this argument for an arbitrary number with an unknown number of digits. Can you show $10^n equiv 1^n equiv 1$?






                  share|cite|improve this answer














                  When writing a number in base ten, we understand each digit to be some multiple of a power of ten. This is what the "suppose..." section is trying to generalize. Lets look at a specific example:



                  $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0$$



                  Now that the number is expressed as a sum of products, we can apply the theorems. For example, take the fifty part of four hundred and fifty six:



                  Let
                  begin{align}
                  a&=5\
                  b&=5\
                  c&=10^1\
                  d&=1
                  end{align}



                  By the third theorem, since $5equiv5pmod 3$ and $10^1equiv 1pmod 3$, it follows that $5cdot10^1 equiv 5cdot1 pmod 3$. Note that all powers of ten are equivalent to one modulo three. You can make the same argument for $400equiv 4pmod 3$. Therefore:



                  $$456 = 4cdot10^2 + 5cdot10^1 + 6cdot10^0 equiv 4 + 5 + 6 pmod 3$$



                  The real trick is being able to make this argument for an arbitrary number with an unknown number of digits. Can you show $10^n equiv 1^n equiv 1$?







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Nov 25 '18 at 14:47

























                  answered Nov 25 '18 at 8:54









                  David Diaz

                  944420




                  944420






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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.


                      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%2f3012569%2fsubstitutions-in-modular-arithmetic%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

                      Plaza Victoria

                      Puebla de Zaragoza

                      Musa