Result of mod division












1














I am trying to understand the result of modulo division aka multiplication with the multiplicative inverse.
When I try (using a computer program) the following example the result makes sense:
$$
6 times 3^{-1} equiv 2pmod{13}
$$



But I cannot understand the result for the following examples:
$$
1 times 3^{-1} equiv 9 pmod{13}
$$

$$
2 times 3^{-1} equiv 5 pmod{13}
$$

$$
5 times 3^{-1} equiv 6 pmod{13}
$$



Can someone explain the result when the equivalent non-mod division would yield a decimal instead of a whole number?










share|cite|improve this question




















  • 2




    try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
    – ALG
    Nov 26 at 20:53
















1














I am trying to understand the result of modulo division aka multiplication with the multiplicative inverse.
When I try (using a computer program) the following example the result makes sense:
$$
6 times 3^{-1} equiv 2pmod{13}
$$



But I cannot understand the result for the following examples:
$$
1 times 3^{-1} equiv 9 pmod{13}
$$

$$
2 times 3^{-1} equiv 5 pmod{13}
$$

$$
5 times 3^{-1} equiv 6 pmod{13}
$$



Can someone explain the result when the equivalent non-mod division would yield a decimal instead of a whole number?










share|cite|improve this question




















  • 2




    try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
    – ALG
    Nov 26 at 20:53














1












1








1







I am trying to understand the result of modulo division aka multiplication with the multiplicative inverse.
When I try (using a computer program) the following example the result makes sense:
$$
6 times 3^{-1} equiv 2pmod{13}
$$



But I cannot understand the result for the following examples:
$$
1 times 3^{-1} equiv 9 pmod{13}
$$

$$
2 times 3^{-1} equiv 5 pmod{13}
$$

$$
5 times 3^{-1} equiv 6 pmod{13}
$$



Can someone explain the result when the equivalent non-mod division would yield a decimal instead of a whole number?










share|cite|improve this question















I am trying to understand the result of modulo division aka multiplication with the multiplicative inverse.
When I try (using a computer program) the following example the result makes sense:
$$
6 times 3^{-1} equiv 2pmod{13}
$$



But I cannot understand the result for the following examples:
$$
1 times 3^{-1} equiv 9 pmod{13}
$$

$$
2 times 3^{-1} equiv 5 pmod{13}
$$

$$
5 times 3^{-1} equiv 6 pmod{13}
$$



Can someone explain the result when the equivalent non-mod division would yield a decimal instead of a whole number?







modular-arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 26 at 21:32









Bill Dubuque

208k29190628




208k29190628










asked Nov 26 at 20:49









Savvas Savvides

110114




110114








  • 2




    try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
    – ALG
    Nov 26 at 20:53














  • 2




    try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
    – ALG
    Nov 26 at 20:53








2




2




try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
– ALG
Nov 26 at 20:53




try to see $3^{-1}$ as the number which multiplied by 3 gives 1, so mod $13$, since $3*9=27 = 1 $ mod $13$ hence $3^{-1}=9 $ mod 13
– ALG
Nov 26 at 20:53










4 Answers
4






active

oldest

votes


















1














With the modular multiplicative inverse of an integer $x$ you want to compute the smallest $y$ such that




$$xyequiv1;mod(n)iff yequiv x^{-1}; mod(n)$$




In order to compute these values, you can either use the extended Euclidean algorithm or Euler's theorem (since I find the EEA more useful, I'll use this algorithm instead of Euler's theorem.)





With the extended Euclidean algorithm:



The first part of the EEA for $a,bmid(a>b)$ is just like the standard Euclidean algorithm, which proceeds by a succession of Euclidean divisions whose quotients are not used, only the remainders are kept. More precisely, it consists in computing the following sequence
$$a=q_1*b+r_1$$
$$b=q_2*r_1+r_2$$
$$r_1=q_3*r_2+r_3$$
$$.$$
$$.$$
$$r_n=q_{n+2}*r_{n+1}+0$$



Where $q_k$ are the quotients (note that $q_k=lfloor frac{r_{k-2}}{r_{k-1}}rfloor$) and $r_k$ the reminders after performing the Euclidean division. The algorithm stops when $r_{n+2}=0$ and results in $gcd(a,b)=r_{n+1}$

For instance for $a=97, ;b=21$
$$97=4*21+13$$
$$21=1*13+8$$
$$13=1*8+5$$
$$8=1*5+3$$
$$5=1*3+2$$
$$3=2*1+1$$
$$2=2*1+0$$
$$Rightarrow gcd(97,21)=1$$



Now in the EEA, you have to perform the standard EA solving for the remainders as a linear combination of $a$ and $b$
$$97=4*21+13 Rightarrow 13=97-4*21$$
$$21=1*13+8Rightarrow 8=21-1*13=21-1*(97-4*21)=5*21-97$$
$$13=1*8+5 Rightarrow 5=13-8=97-4*21-(5*21-97)=2*97-9*21$$
$$8=1*5+3 Rightarrow 3=8-5=5*21-97-(2*97-9*21)=14*21-3*97$$
$$5=1*3+2 Rightarrow 2=5-3=2*97-9*21-(14*21-3*97)=5*97-23*21$$
$$3=2*1+1 Rightarrow 1=3-2=14*21-3*97-(5*97-23*21)=37*21-8*97$$



This last expression is known as Bèzouts identity or Bèzouts Lemma, which states that for any integers $a$ and $b$ with lcd$(a,b)=d$, $exists$ coefficients $j$ and $i$ such that $$aj+bi=d$$ The greatest common divisor of two integers $a,b$ is, by the way, the smallest linear combination of these numbers you can make, which you can compute with the EEA. Having that said, note that $$aj+bi equiv ajequiv d ; mod(b)$$ So, if gcd$(a,b)=1$, (and only under this condition $exists$ a multiplicative inverse) the modular multiplicative inverse of $a; mod(b)$ is the coefficient $j$ of $a$ in Bèzout's identity.



For the exercises you have:




$$13=4*3+1$$ $$3=3*1+0$$ $$Rightarrow 1*13-4*3=1$$ $$Rightarrow 3^{-1}equiv -4equiv9; mod(13)$$ $$$$ $$2*3^{-1}equiv 2*9 equiv 18 equiv 5; mod(13)$$ $$5*3^{-1}equiv 5*9 equiv 45 equiv 6; mod(13)$$







share|cite|improve this answer





























    3














    Hint:



    Look at
    $$
    9 times 3equiv, ? pmod{13}
    $$

    $$
    5 times 3equiv, ? pmod{13}$$

    $$
    6 times 3equiv, ? pmod{13}
    $$






    share|cite|improve this answer































      1














      It is not a real division, it is a multiplication by the inverse of $3$ modulo $13$.



      Now $;9times 3equiv 1mod 13$ since $9times 3=2times 13+1$, so $3^{-1}equiv 9$.



      Thus you have



      $$6times 3^{-1}equiv 6times 9=54equiv 2mod 13,$$
      and similarly for all other multiplications.






      share|cite|improve this answer































        0














        Notice that this works because:
        $$
        6 times 3^{-1} mod 13 = 2 times 3 times 3^{-1} mod 13= 2 times 1
        mod 13$$

        And actually we also know that:
        $$1 equiv 27 mod 13 equiv 3 times 9 mod 13 $$
        $$2 equiv 15 mod 13 equiv 3 times 5 mod 13 $$
        $$5 equiv 18 mod 13 equiv 3 times 6 mod 13 $$
        If we multiply by $3^{-1}$ this means we cancel out the factor of $3$.






        share|cite|improve this answer























        • But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
          – Bill Dubuque
          Nov 26 at 21:37












        • Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
          – Wesley Strik
          Nov 26 at 21:43










        • I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
          – Wesley Strik
          Nov 26 at 21:44











        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%2f3014898%2fresult-of-mod-division%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














        With the modular multiplicative inverse of an integer $x$ you want to compute the smallest $y$ such that




        $$xyequiv1;mod(n)iff yequiv x^{-1}; mod(n)$$




        In order to compute these values, you can either use the extended Euclidean algorithm or Euler's theorem (since I find the EEA more useful, I'll use this algorithm instead of Euler's theorem.)





        With the extended Euclidean algorithm:



        The first part of the EEA for $a,bmid(a>b)$ is just like the standard Euclidean algorithm, which proceeds by a succession of Euclidean divisions whose quotients are not used, only the remainders are kept. More precisely, it consists in computing the following sequence
        $$a=q_1*b+r_1$$
        $$b=q_2*r_1+r_2$$
        $$r_1=q_3*r_2+r_3$$
        $$.$$
        $$.$$
        $$r_n=q_{n+2}*r_{n+1}+0$$



        Where $q_k$ are the quotients (note that $q_k=lfloor frac{r_{k-2}}{r_{k-1}}rfloor$) and $r_k$ the reminders after performing the Euclidean division. The algorithm stops when $r_{n+2}=0$ and results in $gcd(a,b)=r_{n+1}$

        For instance for $a=97, ;b=21$
        $$97=4*21+13$$
        $$21=1*13+8$$
        $$13=1*8+5$$
        $$8=1*5+3$$
        $$5=1*3+2$$
        $$3=2*1+1$$
        $$2=2*1+0$$
        $$Rightarrow gcd(97,21)=1$$



        Now in the EEA, you have to perform the standard EA solving for the remainders as a linear combination of $a$ and $b$
        $$97=4*21+13 Rightarrow 13=97-4*21$$
        $$21=1*13+8Rightarrow 8=21-1*13=21-1*(97-4*21)=5*21-97$$
        $$13=1*8+5 Rightarrow 5=13-8=97-4*21-(5*21-97)=2*97-9*21$$
        $$8=1*5+3 Rightarrow 3=8-5=5*21-97-(2*97-9*21)=14*21-3*97$$
        $$5=1*3+2 Rightarrow 2=5-3=2*97-9*21-(14*21-3*97)=5*97-23*21$$
        $$3=2*1+1 Rightarrow 1=3-2=14*21-3*97-(5*97-23*21)=37*21-8*97$$



        This last expression is known as Bèzouts identity or Bèzouts Lemma, which states that for any integers $a$ and $b$ with lcd$(a,b)=d$, $exists$ coefficients $j$ and $i$ such that $$aj+bi=d$$ The greatest common divisor of two integers $a,b$ is, by the way, the smallest linear combination of these numbers you can make, which you can compute with the EEA. Having that said, note that $$aj+bi equiv ajequiv d ; mod(b)$$ So, if gcd$(a,b)=1$, (and only under this condition $exists$ a multiplicative inverse) the modular multiplicative inverse of $a; mod(b)$ is the coefficient $j$ of $a$ in Bèzout's identity.



        For the exercises you have:




        $$13=4*3+1$$ $$3=3*1+0$$ $$Rightarrow 1*13-4*3=1$$ $$Rightarrow 3^{-1}equiv -4equiv9; mod(13)$$ $$$$ $$2*3^{-1}equiv 2*9 equiv 18 equiv 5; mod(13)$$ $$5*3^{-1}equiv 5*9 equiv 45 equiv 6; mod(13)$$







        share|cite|improve this answer


























          1














          With the modular multiplicative inverse of an integer $x$ you want to compute the smallest $y$ such that




          $$xyequiv1;mod(n)iff yequiv x^{-1}; mod(n)$$




          In order to compute these values, you can either use the extended Euclidean algorithm or Euler's theorem (since I find the EEA more useful, I'll use this algorithm instead of Euler's theorem.)





          With the extended Euclidean algorithm:



          The first part of the EEA for $a,bmid(a>b)$ is just like the standard Euclidean algorithm, which proceeds by a succession of Euclidean divisions whose quotients are not used, only the remainders are kept. More precisely, it consists in computing the following sequence
          $$a=q_1*b+r_1$$
          $$b=q_2*r_1+r_2$$
          $$r_1=q_3*r_2+r_3$$
          $$.$$
          $$.$$
          $$r_n=q_{n+2}*r_{n+1}+0$$



          Where $q_k$ are the quotients (note that $q_k=lfloor frac{r_{k-2}}{r_{k-1}}rfloor$) and $r_k$ the reminders after performing the Euclidean division. The algorithm stops when $r_{n+2}=0$ and results in $gcd(a,b)=r_{n+1}$

          For instance for $a=97, ;b=21$
          $$97=4*21+13$$
          $$21=1*13+8$$
          $$13=1*8+5$$
          $$8=1*5+3$$
          $$5=1*3+2$$
          $$3=2*1+1$$
          $$2=2*1+0$$
          $$Rightarrow gcd(97,21)=1$$



          Now in the EEA, you have to perform the standard EA solving for the remainders as a linear combination of $a$ and $b$
          $$97=4*21+13 Rightarrow 13=97-4*21$$
          $$21=1*13+8Rightarrow 8=21-1*13=21-1*(97-4*21)=5*21-97$$
          $$13=1*8+5 Rightarrow 5=13-8=97-4*21-(5*21-97)=2*97-9*21$$
          $$8=1*5+3 Rightarrow 3=8-5=5*21-97-(2*97-9*21)=14*21-3*97$$
          $$5=1*3+2 Rightarrow 2=5-3=2*97-9*21-(14*21-3*97)=5*97-23*21$$
          $$3=2*1+1 Rightarrow 1=3-2=14*21-3*97-(5*97-23*21)=37*21-8*97$$



          This last expression is known as Bèzouts identity or Bèzouts Lemma, which states that for any integers $a$ and $b$ with lcd$(a,b)=d$, $exists$ coefficients $j$ and $i$ such that $$aj+bi=d$$ The greatest common divisor of two integers $a,b$ is, by the way, the smallest linear combination of these numbers you can make, which you can compute with the EEA. Having that said, note that $$aj+bi equiv ajequiv d ; mod(b)$$ So, if gcd$(a,b)=1$, (and only under this condition $exists$ a multiplicative inverse) the modular multiplicative inverse of $a; mod(b)$ is the coefficient $j$ of $a$ in Bèzout's identity.



          For the exercises you have:




          $$13=4*3+1$$ $$3=3*1+0$$ $$Rightarrow 1*13-4*3=1$$ $$Rightarrow 3^{-1}equiv -4equiv9; mod(13)$$ $$$$ $$2*3^{-1}equiv 2*9 equiv 18 equiv 5; mod(13)$$ $$5*3^{-1}equiv 5*9 equiv 45 equiv 6; mod(13)$$







          share|cite|improve this answer
























            1












            1








            1






            With the modular multiplicative inverse of an integer $x$ you want to compute the smallest $y$ such that




            $$xyequiv1;mod(n)iff yequiv x^{-1}; mod(n)$$




            In order to compute these values, you can either use the extended Euclidean algorithm or Euler's theorem (since I find the EEA more useful, I'll use this algorithm instead of Euler's theorem.)





            With the extended Euclidean algorithm:



            The first part of the EEA for $a,bmid(a>b)$ is just like the standard Euclidean algorithm, which proceeds by a succession of Euclidean divisions whose quotients are not used, only the remainders are kept. More precisely, it consists in computing the following sequence
            $$a=q_1*b+r_1$$
            $$b=q_2*r_1+r_2$$
            $$r_1=q_3*r_2+r_3$$
            $$.$$
            $$.$$
            $$r_n=q_{n+2}*r_{n+1}+0$$



            Where $q_k$ are the quotients (note that $q_k=lfloor frac{r_{k-2}}{r_{k-1}}rfloor$) and $r_k$ the reminders after performing the Euclidean division. The algorithm stops when $r_{n+2}=0$ and results in $gcd(a,b)=r_{n+1}$

            For instance for $a=97, ;b=21$
            $$97=4*21+13$$
            $$21=1*13+8$$
            $$13=1*8+5$$
            $$8=1*5+3$$
            $$5=1*3+2$$
            $$3=2*1+1$$
            $$2=2*1+0$$
            $$Rightarrow gcd(97,21)=1$$



            Now in the EEA, you have to perform the standard EA solving for the remainders as a linear combination of $a$ and $b$
            $$97=4*21+13 Rightarrow 13=97-4*21$$
            $$21=1*13+8Rightarrow 8=21-1*13=21-1*(97-4*21)=5*21-97$$
            $$13=1*8+5 Rightarrow 5=13-8=97-4*21-(5*21-97)=2*97-9*21$$
            $$8=1*5+3 Rightarrow 3=8-5=5*21-97-(2*97-9*21)=14*21-3*97$$
            $$5=1*3+2 Rightarrow 2=5-3=2*97-9*21-(14*21-3*97)=5*97-23*21$$
            $$3=2*1+1 Rightarrow 1=3-2=14*21-3*97-(5*97-23*21)=37*21-8*97$$



            This last expression is known as Bèzouts identity or Bèzouts Lemma, which states that for any integers $a$ and $b$ with lcd$(a,b)=d$, $exists$ coefficients $j$ and $i$ such that $$aj+bi=d$$ The greatest common divisor of two integers $a,b$ is, by the way, the smallest linear combination of these numbers you can make, which you can compute with the EEA. Having that said, note that $$aj+bi equiv ajequiv d ; mod(b)$$ So, if gcd$(a,b)=1$, (and only under this condition $exists$ a multiplicative inverse) the modular multiplicative inverse of $a; mod(b)$ is the coefficient $j$ of $a$ in Bèzout's identity.



            For the exercises you have:




            $$13=4*3+1$$ $$3=3*1+0$$ $$Rightarrow 1*13-4*3=1$$ $$Rightarrow 3^{-1}equiv -4equiv9; mod(13)$$ $$$$ $$2*3^{-1}equiv 2*9 equiv 18 equiv 5; mod(13)$$ $$5*3^{-1}equiv 5*9 equiv 45 equiv 6; mod(13)$$







            share|cite|improve this answer












            With the modular multiplicative inverse of an integer $x$ you want to compute the smallest $y$ such that




            $$xyequiv1;mod(n)iff yequiv x^{-1}; mod(n)$$




            In order to compute these values, you can either use the extended Euclidean algorithm or Euler's theorem (since I find the EEA more useful, I'll use this algorithm instead of Euler's theorem.)





            With the extended Euclidean algorithm:



            The first part of the EEA for $a,bmid(a>b)$ is just like the standard Euclidean algorithm, which proceeds by a succession of Euclidean divisions whose quotients are not used, only the remainders are kept. More precisely, it consists in computing the following sequence
            $$a=q_1*b+r_1$$
            $$b=q_2*r_1+r_2$$
            $$r_1=q_3*r_2+r_3$$
            $$.$$
            $$.$$
            $$r_n=q_{n+2}*r_{n+1}+0$$



            Where $q_k$ are the quotients (note that $q_k=lfloor frac{r_{k-2}}{r_{k-1}}rfloor$) and $r_k$ the reminders after performing the Euclidean division. The algorithm stops when $r_{n+2}=0$ and results in $gcd(a,b)=r_{n+1}$

            For instance for $a=97, ;b=21$
            $$97=4*21+13$$
            $$21=1*13+8$$
            $$13=1*8+5$$
            $$8=1*5+3$$
            $$5=1*3+2$$
            $$3=2*1+1$$
            $$2=2*1+0$$
            $$Rightarrow gcd(97,21)=1$$



            Now in the EEA, you have to perform the standard EA solving for the remainders as a linear combination of $a$ and $b$
            $$97=4*21+13 Rightarrow 13=97-4*21$$
            $$21=1*13+8Rightarrow 8=21-1*13=21-1*(97-4*21)=5*21-97$$
            $$13=1*8+5 Rightarrow 5=13-8=97-4*21-(5*21-97)=2*97-9*21$$
            $$8=1*5+3 Rightarrow 3=8-5=5*21-97-(2*97-9*21)=14*21-3*97$$
            $$5=1*3+2 Rightarrow 2=5-3=2*97-9*21-(14*21-3*97)=5*97-23*21$$
            $$3=2*1+1 Rightarrow 1=3-2=14*21-3*97-(5*97-23*21)=37*21-8*97$$



            This last expression is known as Bèzouts identity or Bèzouts Lemma, which states that for any integers $a$ and $b$ with lcd$(a,b)=d$, $exists$ coefficients $j$ and $i$ such that $$aj+bi=d$$ The greatest common divisor of two integers $a,b$ is, by the way, the smallest linear combination of these numbers you can make, which you can compute with the EEA. Having that said, note that $$aj+bi equiv ajequiv d ; mod(b)$$ So, if gcd$(a,b)=1$, (and only under this condition $exists$ a multiplicative inverse) the modular multiplicative inverse of $a; mod(b)$ is the coefficient $j$ of $a$ in Bèzout's identity.



            For the exercises you have:




            $$13=4*3+1$$ $$3=3*1+0$$ $$Rightarrow 1*13-4*3=1$$ $$Rightarrow 3^{-1}equiv -4equiv9; mod(13)$$ $$$$ $$2*3^{-1}equiv 2*9 equiv 18 equiv 5; mod(13)$$ $$5*3^{-1}equiv 5*9 equiv 45 equiv 6; mod(13)$$








            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Nov 26 at 22:10









            Dr. Mathva

            919316




            919316























                3














                Hint:



                Look at
                $$
                9 times 3equiv, ? pmod{13}
                $$

                $$
                5 times 3equiv, ? pmod{13}$$

                $$
                6 times 3equiv, ? pmod{13}
                $$






                share|cite|improve this answer




























                  3














                  Hint:



                  Look at
                  $$
                  9 times 3equiv, ? pmod{13}
                  $$

                  $$
                  5 times 3equiv, ? pmod{13}$$

                  $$
                  6 times 3equiv, ? pmod{13}
                  $$






                  share|cite|improve this answer


























                    3












                    3








                    3






                    Hint:



                    Look at
                    $$
                    9 times 3equiv, ? pmod{13}
                    $$

                    $$
                    5 times 3equiv, ? pmod{13}$$

                    $$
                    6 times 3equiv, ? pmod{13}
                    $$






                    share|cite|improve this answer














                    Hint:



                    Look at
                    $$
                    9 times 3equiv, ? pmod{13}
                    $$

                    $$
                    5 times 3equiv, ? pmod{13}$$

                    $$
                    6 times 3equiv, ? pmod{13}
                    $$







                    share|cite|improve this answer














                    share|cite|improve this answer



                    share|cite|improve this answer








                    edited Nov 26 at 21:34









                    Bill Dubuque

                    208k29190628




                    208k29190628










                    answered Nov 26 at 21:04









                    Emilio Novati

                    51.5k43472




                    51.5k43472























                        1














                        It is not a real division, it is a multiplication by the inverse of $3$ modulo $13$.



                        Now $;9times 3equiv 1mod 13$ since $9times 3=2times 13+1$, so $3^{-1}equiv 9$.



                        Thus you have



                        $$6times 3^{-1}equiv 6times 9=54equiv 2mod 13,$$
                        and similarly for all other multiplications.






                        share|cite|improve this answer




























                          1














                          It is not a real division, it is a multiplication by the inverse of $3$ modulo $13$.



                          Now $;9times 3equiv 1mod 13$ since $9times 3=2times 13+1$, so $3^{-1}equiv 9$.



                          Thus you have



                          $$6times 3^{-1}equiv 6times 9=54equiv 2mod 13,$$
                          and similarly for all other multiplications.






                          share|cite|improve this answer


























                            1












                            1








                            1






                            It is not a real division, it is a multiplication by the inverse of $3$ modulo $13$.



                            Now $;9times 3equiv 1mod 13$ since $9times 3=2times 13+1$, so $3^{-1}equiv 9$.



                            Thus you have



                            $$6times 3^{-1}equiv 6times 9=54equiv 2mod 13,$$
                            and similarly for all other multiplications.






                            share|cite|improve this answer














                            It is not a real division, it is a multiplication by the inverse of $3$ modulo $13$.



                            Now $;9times 3equiv 1mod 13$ since $9times 3=2times 13+1$, so $3^{-1}equiv 9$.



                            Thus you have



                            $$6times 3^{-1}equiv 6times 9=54equiv 2mod 13,$$
                            and similarly for all other multiplications.







                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Nov 26 at 21:36









                            Bill Dubuque

                            208k29190628




                            208k29190628










                            answered Nov 26 at 21:33









                            Bernard

                            118k639112




                            118k639112























                                0














                                Notice that this works because:
                                $$
                                6 times 3^{-1} mod 13 = 2 times 3 times 3^{-1} mod 13= 2 times 1
                                mod 13$$

                                And actually we also know that:
                                $$1 equiv 27 mod 13 equiv 3 times 9 mod 13 $$
                                $$2 equiv 15 mod 13 equiv 3 times 5 mod 13 $$
                                $$5 equiv 18 mod 13 equiv 3 times 6 mod 13 $$
                                If we multiply by $3^{-1}$ this means we cancel out the factor of $3$.






                                share|cite|improve this answer























                                • But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                  – Bill Dubuque
                                  Nov 26 at 21:37












                                • Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                  – Wesley Strik
                                  Nov 26 at 21:43










                                • I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                  – Wesley Strik
                                  Nov 26 at 21:44
















                                0














                                Notice that this works because:
                                $$
                                6 times 3^{-1} mod 13 = 2 times 3 times 3^{-1} mod 13= 2 times 1
                                mod 13$$

                                And actually we also know that:
                                $$1 equiv 27 mod 13 equiv 3 times 9 mod 13 $$
                                $$2 equiv 15 mod 13 equiv 3 times 5 mod 13 $$
                                $$5 equiv 18 mod 13 equiv 3 times 6 mod 13 $$
                                If we multiply by $3^{-1}$ this means we cancel out the factor of $3$.






                                share|cite|improve this answer























                                • But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                  – Bill Dubuque
                                  Nov 26 at 21:37












                                • Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                  – Wesley Strik
                                  Nov 26 at 21:43










                                • I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                  – Wesley Strik
                                  Nov 26 at 21:44














                                0












                                0








                                0






                                Notice that this works because:
                                $$
                                6 times 3^{-1} mod 13 = 2 times 3 times 3^{-1} mod 13= 2 times 1
                                mod 13$$

                                And actually we also know that:
                                $$1 equiv 27 mod 13 equiv 3 times 9 mod 13 $$
                                $$2 equiv 15 mod 13 equiv 3 times 5 mod 13 $$
                                $$5 equiv 18 mod 13 equiv 3 times 6 mod 13 $$
                                If we multiply by $3^{-1}$ this means we cancel out the factor of $3$.






                                share|cite|improve this answer














                                Notice that this works because:
                                $$
                                6 times 3^{-1} mod 13 = 2 times 3 times 3^{-1} mod 13= 2 times 1
                                mod 13$$

                                And actually we also know that:
                                $$1 equiv 27 mod 13 equiv 3 times 9 mod 13 $$
                                $$2 equiv 15 mod 13 equiv 3 times 5 mod 13 $$
                                $$5 equiv 18 mod 13 equiv 3 times 6 mod 13 $$
                                If we multiply by $3^{-1}$ this means we cancel out the factor of $3$.







                                share|cite|improve this answer














                                share|cite|improve this answer



                                share|cite|improve this answer








                                edited Nov 26 at 21:47

























                                answered Nov 26 at 21:34









                                Wesley Strik

                                1,494422




                                1,494422












                                • But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                  – Bill Dubuque
                                  Nov 26 at 21:37












                                • Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                  – Wesley Strik
                                  Nov 26 at 21:43










                                • I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                  – Wesley Strik
                                  Nov 26 at 21:44


















                                • But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                  – Bill Dubuque
                                  Nov 26 at 21:37












                                • Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                  – Wesley Strik
                                  Nov 26 at 21:43










                                • I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                  – Wesley Strik
                                  Nov 26 at 21:44
















                                But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                – Bill Dubuque
                                Nov 26 at 21:37






                                But that doesn't work for $ 1times 3^{-1} $ or $ 5times 3^{-1} $
                                – Bill Dubuque
                                Nov 26 at 21:37














                                Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                – Wesley Strik
                                Nov 26 at 21:43




                                Actually we know that $1 equiv 27 mod 13 equiv 3 times 9 mod 13 $
                                – Wesley Strik
                                Nov 26 at 21:43












                                I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                – Wesley Strik
                                Nov 26 at 21:44




                                I would prefer using the Euclidean algorithm to actually find all such elements by solving the linear diphantine equation: $$ 3k + 13l =1$$ All such $k$ are inverses of 3.
                                – Wesley Strik
                                Nov 26 at 21:44


















                                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%2f3014898%2fresult-of-mod-division%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

                                Le Mesnil-Réaume

                                Ida-Boy-Ed-Garten

                                web3.py web3.isConnected() returns false always