Using the Euclidean Algorithm how to find the inverse of 41 in Z(131)How to use the Extended Euclidean Algorithm manually?Solving linear congruences by hand: modular inverses, fractionsModulus of FractionEuclidean Algorithm for Modular Inverse, with negative numbersUsing Extended Euclidean Algorithm to find multiplicative inverseeuclidean algorithm iteration problemDoes the Euclidean Algorithm always find the minimum a,b?Euclidean Algorithm help!How do the Euclidean and extended Euclidean algorithms work?Using Euclidean Algorithm to solve the congruenceEuclidean Algorithm for polynomialsComputing linear congruence - Euclidean algorithmExtended Euclidean Algorithm yielding incorrect modular inverse

Was there ever a treaty between 2 entities with significantly different translations to the detriment of one party?

Using `With[...]` with a list specification as a variable

Cultural before-and-afters

How would one country purchase another?

Custom division symbol

Why can't an Airbus A330 dump fuel in an emergency?

Avoiding racist tropes in fantasy

Why in most German places is the church the tallest building?

Does norwegian.no airline overbook flights?

What is the difference between true neutral and unaligned?

Is “I am getting married with my sister” ambiguous?

I got kicked out from graduate school in the past. How do I include this on my CV?

Why different interest rates for checking and savings?

Checking a beta regression model via glmmTMB with DHARMa package

How do I request a longer than normal leave of absence period for my wedding?

Is it possible to account for motor dead-band in a Laplace model of a feedback DC motor system?

Singleton Design Pattern implementation in a not traditional way

What is the best option for High availability on a data warehouse?

How should I face my manager if I make a mistake because a senior coworker explained something incorrectly to me?

Which note goes on which side of the stem?

LeetCode: Pascal's Triangle C#

Did it use to be possible to target a zone?

Start from ones

Sun setting in East!



Using the Euclidean Algorithm how to find the inverse of 41 in Z(131)


How to use the Extended Euclidean Algorithm manually?Solving linear congruences by hand: modular inverses, fractionsModulus of FractionEuclidean Algorithm for Modular Inverse, with negative numbersUsing Extended Euclidean Algorithm to find multiplicative inverseeuclidean algorithm iteration problemDoes the Euclidean Algorithm always find the minimum a,b?Euclidean Algorithm help!How do the Euclidean and extended Euclidean algorithms work?Using Euclidean Algorithm to solve the congruenceEuclidean Algorithm for polynomialsComputing linear congruence - Euclidean algorithmExtended Euclidean Algorithm yielding incorrect modular inverse






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2












$begingroup$


I need to find the inverse of 41 in the integers of Z131 and am confused as to how to go about it.



Do I use the Euclidean Algorithm as 41 mod 131?










share|cite|improve this question









$endgroup$













  • $begingroup$
    Your textbook doesn't show you how?
    $endgroup$
    – fleablood
    8 hours ago










  • $begingroup$
    Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
    $endgroup$
    – İbrahim İpek
    7 hours ago

















2












$begingroup$


I need to find the inverse of 41 in the integers of Z131 and am confused as to how to go about it.



Do I use the Euclidean Algorithm as 41 mod 131?










share|cite|improve this question









$endgroup$













  • $begingroup$
    Your textbook doesn't show you how?
    $endgroup$
    – fleablood
    8 hours ago










  • $begingroup$
    Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
    $endgroup$
    – İbrahim İpek
    7 hours ago













2












2








2


1



$begingroup$


I need to find the inverse of 41 in the integers of Z131 and am confused as to how to go about it.



Do I use the Euclidean Algorithm as 41 mod 131?










share|cite|improve this question









$endgroup$




I need to find the inverse of 41 in the integers of Z131 and am confused as to how to go about it.



Do I use the Euclidean Algorithm as 41 mod 131?







modular-arithmetic euclidean-algorithm






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked 8 hours ago









C.CamC.Cam

242 bronze badges




242 bronze badges














  • $begingroup$
    Your textbook doesn't show you how?
    $endgroup$
    – fleablood
    8 hours ago










  • $begingroup$
    Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
    $endgroup$
    – İbrahim İpek
    7 hours ago
















  • $begingroup$
    Your textbook doesn't show you how?
    $endgroup$
    – fleablood
    8 hours ago










  • $begingroup$
    Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
    $endgroup$
    – İbrahim İpek
    7 hours ago















$begingroup$
Your textbook doesn't show you how?
$endgroup$
– fleablood
8 hours ago




$begingroup$
Your textbook doesn't show you how?
$endgroup$
– fleablood
8 hours ago












$begingroup$
Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
$endgroup$
– İbrahim İpek
7 hours ago




$begingroup$
Türk müsün? Türksen Chat'e gel. Oradan direkt yardımcı olayım
$endgroup$
– İbrahim İpek
7 hours ago










5 Answers
5






active

oldest

votes


















3













$begingroup$

To find an inverse we need to find a solution to the following equation (since if you take $pmod131$ this equation will give you $41X equiv 1$ for modulo $131$):



$$41X + 131Y = 1$$



We will find some pair $(X, Y)$ that satisfies this linear Diophantine equation by extended euclidean algorithm. First, we calculate the GCD of the pair $(131, 41)$.



$$(131, 41) = (41, 8) = (8, 1) = 1$$



This means we have a solution since GCD divides the result of Diophantine equation. Now we go the other way around. We have:



$$131 = 3 cdot 41 + 8,$$
$$41 = 5 cdot 8 + 1,$$
$$8 = 3 cdot 1 + 0.$$



We will rewrite them in the following form:



$$131 - 3 cdot 41 = 8,$$
$$41 - 5 cdot 8 = 1.$$



We are going to substitute $131 - 3 cdot 41$ for $8$:



$$41 - 5 cdot (131 - 3 cdot 41) = 1$$
$$16 cdot 41 - 5 cdot 131 = 1$$



Hence our pair of solution is $(16, -5) = (x, y)$. Yet don't forget there are infinitely many other solutions in this case which you can derive by one initial solution. But because they are all in the congruence class $[16]_131$ (AKA the set of numbers which leave the remainder $16$ when divided by $131$), they aren't different at all for the modular arithmetic.



$X equiv 16 pmod131$ will be our inverse.






share|cite|improve this answer











$endgroup$






















    2













    $begingroup$

    $131 = 3*41 +8$ so $8 = 131 - 3*41$.



    $41 = 5*8 + 1$ so $1 = 41- 5*8 = 41 - 5(131 - 3*41)= 16*41 - 5*131$



    So $16*41 - 5*131 =1$.



    Or $16*41 = 1 + 5*131$



    Or $16*41 equiv 1 pmod 131$.



    So $16$ is the multiplicative inverse $mod 131$ of $41$.






    share|cite|improve this answer









    $endgroup$






















      1













      $begingroup$

      In this case, the extended Euclidean algorithm is particularly fast:



      beginarrayrrrr
      r_i&u_i&v_i&q_i\
      hline
      131 & 0 & 1\
      41 & 1 & 0 & 3\
      hline
      8 & -3 & 1 & 5\
      1 & 16 & -5\
      hline
      endarray



      so a Bézout's relation is $$16cdot 41-5cdot131 = 1$$
      and $;41^-1equiv 16bmod 131$.






      share|cite|improve this answer









      $endgroup$






















        0













        $begingroup$

        Below is a calculateion of $ color#0a0x equiv 41^-1pmod!131,$
        by the forward extended Euclidean Algorithm.



        $ beginarrayrr
        [![1]!] &131, xequiv, 0 \
        [![2]!] & color#0a041,x equiv, 1\
        [![1]!]-3,[![2]!] rightarrow [![3]!] & 8,x equiv -3!!! \
        [![2]!]-5,[![4]!] rightarrow [![4]!] & bbox[5px,border:1px solid #c00]x equiv 16!!!
        endarray$




        Or $bmod 131!:, dfrac141equiv dfrac3123equiv dfrac3-8equiv dfrac-128-8equiv, bbox[5px,border:1px solid #c00]16 $ by Gauss's algorithm



        Beware $ $ Modular fraction arithmetic is valid only for fractions with denominator coprime to the modulus. See here for further discussion.






        share|cite|improve this answer











        $endgroup$






















          -1













          $begingroup$

          Hint: You use the extended Euclidean algorithm to find $x,y in mathbb Z$ such that $41x+131y=1$.






          share|cite|improve this answer











          $endgroup$

















            Your Answer








            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%2f3331449%2fusing-the-euclidean-algorithm-how-to-find-the-inverse-of-41-in-z131%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3













            $begingroup$

            To find an inverse we need to find a solution to the following equation (since if you take $pmod131$ this equation will give you $41X equiv 1$ for modulo $131$):



            $$41X + 131Y = 1$$



            We will find some pair $(X, Y)$ that satisfies this linear Diophantine equation by extended euclidean algorithm. First, we calculate the GCD of the pair $(131, 41)$.



            $$(131, 41) = (41, 8) = (8, 1) = 1$$



            This means we have a solution since GCD divides the result of Diophantine equation. Now we go the other way around. We have:



            $$131 = 3 cdot 41 + 8,$$
            $$41 = 5 cdot 8 + 1,$$
            $$8 = 3 cdot 1 + 0.$$



            We will rewrite them in the following form:



            $$131 - 3 cdot 41 = 8,$$
            $$41 - 5 cdot 8 = 1.$$



            We are going to substitute $131 - 3 cdot 41$ for $8$:



            $$41 - 5 cdot (131 - 3 cdot 41) = 1$$
            $$16 cdot 41 - 5 cdot 131 = 1$$



            Hence our pair of solution is $(16, -5) = (x, y)$. Yet don't forget there are infinitely many other solutions in this case which you can derive by one initial solution. But because they are all in the congruence class $[16]_131$ (AKA the set of numbers which leave the remainder $16$ when divided by $131$), they aren't different at all for the modular arithmetic.



            $X equiv 16 pmod131$ will be our inverse.






            share|cite|improve this answer











            $endgroup$



















              3













              $begingroup$

              To find an inverse we need to find a solution to the following equation (since if you take $pmod131$ this equation will give you $41X equiv 1$ for modulo $131$):



              $$41X + 131Y = 1$$



              We will find some pair $(X, Y)$ that satisfies this linear Diophantine equation by extended euclidean algorithm. First, we calculate the GCD of the pair $(131, 41)$.



              $$(131, 41) = (41, 8) = (8, 1) = 1$$



              This means we have a solution since GCD divides the result of Diophantine equation. Now we go the other way around. We have:



              $$131 = 3 cdot 41 + 8,$$
              $$41 = 5 cdot 8 + 1,$$
              $$8 = 3 cdot 1 + 0.$$



              We will rewrite them in the following form:



              $$131 - 3 cdot 41 = 8,$$
              $$41 - 5 cdot 8 = 1.$$



              We are going to substitute $131 - 3 cdot 41$ for $8$:



              $$41 - 5 cdot (131 - 3 cdot 41) = 1$$
              $$16 cdot 41 - 5 cdot 131 = 1$$



              Hence our pair of solution is $(16, -5) = (x, y)$. Yet don't forget there are infinitely many other solutions in this case which you can derive by one initial solution. But because they are all in the congruence class $[16]_131$ (AKA the set of numbers which leave the remainder $16$ when divided by $131$), they aren't different at all for the modular arithmetic.



              $X equiv 16 pmod131$ will be our inverse.






              share|cite|improve this answer











              $endgroup$

















                3














                3










                3







                $begingroup$

                To find an inverse we need to find a solution to the following equation (since if you take $pmod131$ this equation will give you $41X equiv 1$ for modulo $131$):



                $$41X + 131Y = 1$$



                We will find some pair $(X, Y)$ that satisfies this linear Diophantine equation by extended euclidean algorithm. First, we calculate the GCD of the pair $(131, 41)$.



                $$(131, 41) = (41, 8) = (8, 1) = 1$$



                This means we have a solution since GCD divides the result of Diophantine equation. Now we go the other way around. We have:



                $$131 = 3 cdot 41 + 8,$$
                $$41 = 5 cdot 8 + 1,$$
                $$8 = 3 cdot 1 + 0.$$



                We will rewrite them in the following form:



                $$131 - 3 cdot 41 = 8,$$
                $$41 - 5 cdot 8 = 1.$$



                We are going to substitute $131 - 3 cdot 41$ for $8$:



                $$41 - 5 cdot (131 - 3 cdot 41) = 1$$
                $$16 cdot 41 - 5 cdot 131 = 1$$



                Hence our pair of solution is $(16, -5) = (x, y)$. Yet don't forget there are infinitely many other solutions in this case which you can derive by one initial solution. But because they are all in the congruence class $[16]_131$ (AKA the set of numbers which leave the remainder $16$ when divided by $131$), they aren't different at all for the modular arithmetic.



                $X equiv 16 pmod131$ will be our inverse.






                share|cite|improve this answer











                $endgroup$



                To find an inverse we need to find a solution to the following equation (since if you take $pmod131$ this equation will give you $41X equiv 1$ for modulo $131$):



                $$41X + 131Y = 1$$



                We will find some pair $(X, Y)$ that satisfies this linear Diophantine equation by extended euclidean algorithm. First, we calculate the GCD of the pair $(131, 41)$.



                $$(131, 41) = (41, 8) = (8, 1) = 1$$



                This means we have a solution since GCD divides the result of Diophantine equation. Now we go the other way around. We have:



                $$131 = 3 cdot 41 + 8,$$
                $$41 = 5 cdot 8 + 1,$$
                $$8 = 3 cdot 1 + 0.$$



                We will rewrite them in the following form:



                $$131 - 3 cdot 41 = 8,$$
                $$41 - 5 cdot 8 = 1.$$



                We are going to substitute $131 - 3 cdot 41$ for $8$:



                $$41 - 5 cdot (131 - 3 cdot 41) = 1$$
                $$16 cdot 41 - 5 cdot 131 = 1$$



                Hence our pair of solution is $(16, -5) = (x, y)$. Yet don't forget there are infinitely many other solutions in this case which you can derive by one initial solution. But because they are all in the congruence class $[16]_131$ (AKA the set of numbers which leave the remainder $16$ when divided by $131$), they aren't different at all for the modular arithmetic.



                $X equiv 16 pmod131$ will be our inverse.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited 7 hours ago

























                answered 7 hours ago









                İbrahim İpekİbrahim İpek

                3982 silver badges13 bronze badges




                3982 silver badges13 bronze badges


























                    2













                    $begingroup$

                    $131 = 3*41 +8$ so $8 = 131 - 3*41$.



                    $41 = 5*8 + 1$ so $1 = 41- 5*8 = 41 - 5(131 - 3*41)= 16*41 - 5*131$



                    So $16*41 - 5*131 =1$.



                    Or $16*41 = 1 + 5*131$



                    Or $16*41 equiv 1 pmod 131$.



                    So $16$ is the multiplicative inverse $mod 131$ of $41$.






                    share|cite|improve this answer









                    $endgroup$



















                      2













                      $begingroup$

                      $131 = 3*41 +8$ so $8 = 131 - 3*41$.



                      $41 = 5*8 + 1$ so $1 = 41- 5*8 = 41 - 5(131 - 3*41)= 16*41 - 5*131$



                      So $16*41 - 5*131 =1$.



                      Or $16*41 = 1 + 5*131$



                      Or $16*41 equiv 1 pmod 131$.



                      So $16$ is the multiplicative inverse $mod 131$ of $41$.






                      share|cite|improve this answer









                      $endgroup$

















                        2














                        2










                        2







                        $begingroup$

                        $131 = 3*41 +8$ so $8 = 131 - 3*41$.



                        $41 = 5*8 + 1$ so $1 = 41- 5*8 = 41 - 5(131 - 3*41)= 16*41 - 5*131$



                        So $16*41 - 5*131 =1$.



                        Or $16*41 = 1 + 5*131$



                        Or $16*41 equiv 1 pmod 131$.



                        So $16$ is the multiplicative inverse $mod 131$ of $41$.






                        share|cite|improve this answer









                        $endgroup$



                        $131 = 3*41 +8$ so $8 = 131 - 3*41$.



                        $41 = 5*8 + 1$ so $1 = 41- 5*8 = 41 - 5(131 - 3*41)= 16*41 - 5*131$



                        So $16*41 - 5*131 =1$.



                        Or $16*41 = 1 + 5*131$



                        Or $16*41 equiv 1 pmod 131$.



                        So $16$ is the multiplicative inverse $mod 131$ of $41$.







                        share|cite|improve this answer












                        share|cite|improve this answer



                        share|cite|improve this answer










                        answered 8 hours ago









                        fleabloodfleablood

                        79.3k2 gold badges31 silver badges98 bronze badges




                        79.3k2 gold badges31 silver badges98 bronze badges
























                            1













                            $begingroup$

                            In this case, the extended Euclidean algorithm is particularly fast:



                            beginarrayrrrr
                            r_i&u_i&v_i&q_i\
                            hline
                            131 & 0 & 1\
                            41 & 1 & 0 & 3\
                            hline
                            8 & -3 & 1 & 5\
                            1 & 16 & -5\
                            hline
                            endarray



                            so a Bézout's relation is $$16cdot 41-5cdot131 = 1$$
                            and $;41^-1equiv 16bmod 131$.






                            share|cite|improve this answer









                            $endgroup$



















                              1













                              $begingroup$

                              In this case, the extended Euclidean algorithm is particularly fast:



                              beginarrayrrrr
                              r_i&u_i&v_i&q_i\
                              hline
                              131 & 0 & 1\
                              41 & 1 & 0 & 3\
                              hline
                              8 & -3 & 1 & 5\
                              1 & 16 & -5\
                              hline
                              endarray



                              so a Bézout's relation is $$16cdot 41-5cdot131 = 1$$
                              and $;41^-1equiv 16bmod 131$.






                              share|cite|improve this answer









                              $endgroup$

















                                1














                                1










                                1







                                $begingroup$

                                In this case, the extended Euclidean algorithm is particularly fast:



                                beginarrayrrrr
                                r_i&u_i&v_i&q_i\
                                hline
                                131 & 0 & 1\
                                41 & 1 & 0 & 3\
                                hline
                                8 & -3 & 1 & 5\
                                1 & 16 & -5\
                                hline
                                endarray



                                so a Bézout's relation is $$16cdot 41-5cdot131 = 1$$
                                and $;41^-1equiv 16bmod 131$.






                                share|cite|improve this answer









                                $endgroup$



                                In this case, the extended Euclidean algorithm is particularly fast:



                                beginarrayrrrr
                                r_i&u_i&v_i&q_i\
                                hline
                                131 & 0 & 1\
                                41 & 1 & 0 & 3\
                                hline
                                8 & -3 & 1 & 5\
                                1 & 16 & -5\
                                hline
                                endarray



                                so a Bézout's relation is $$16cdot 41-5cdot131 = 1$$
                                and $;41^-1equiv 16bmod 131$.







                                share|cite|improve this answer












                                share|cite|improve this answer



                                share|cite|improve this answer










                                answered 8 hours ago









                                BernardBernard

                                131k7 gold badges43 silver badges123 bronze badges




                                131k7 gold badges43 silver badges123 bronze badges
























                                    0













                                    $begingroup$

                                    Below is a calculateion of $ color#0a0x equiv 41^-1pmod!131,$
                                    by the forward extended Euclidean Algorithm.



                                    $ beginarrayrr
                                    [![1]!] &131, xequiv, 0 \
                                    [![2]!] & color#0a041,x equiv, 1\
                                    [![1]!]-3,[![2]!] rightarrow [![3]!] & 8,x equiv -3!!! \
                                    [![2]!]-5,[![4]!] rightarrow [![4]!] & bbox[5px,border:1px solid #c00]x equiv 16!!!
                                    endarray$




                                    Or $bmod 131!:, dfrac141equiv dfrac3123equiv dfrac3-8equiv dfrac-128-8equiv, bbox[5px,border:1px solid #c00]16 $ by Gauss's algorithm



                                    Beware $ $ Modular fraction arithmetic is valid only for fractions with denominator coprime to the modulus. See here for further discussion.






                                    share|cite|improve this answer











                                    $endgroup$



















                                      0













                                      $begingroup$

                                      Below is a calculateion of $ color#0a0x equiv 41^-1pmod!131,$
                                      by the forward extended Euclidean Algorithm.



                                      $ beginarrayrr
                                      [![1]!] &131, xequiv, 0 \
                                      [![2]!] & color#0a041,x equiv, 1\
                                      [![1]!]-3,[![2]!] rightarrow [![3]!] & 8,x equiv -3!!! \
                                      [![2]!]-5,[![4]!] rightarrow [![4]!] & bbox[5px,border:1px solid #c00]x equiv 16!!!
                                      endarray$




                                      Or $bmod 131!:, dfrac141equiv dfrac3123equiv dfrac3-8equiv dfrac-128-8equiv, bbox[5px,border:1px solid #c00]16 $ by Gauss's algorithm



                                      Beware $ $ Modular fraction arithmetic is valid only for fractions with denominator coprime to the modulus. See here for further discussion.






                                      share|cite|improve this answer











                                      $endgroup$

















                                        0














                                        0










                                        0







                                        $begingroup$

                                        Below is a calculateion of $ color#0a0x equiv 41^-1pmod!131,$
                                        by the forward extended Euclidean Algorithm.



                                        $ beginarrayrr
                                        [![1]!] &131, xequiv, 0 \
                                        [![2]!] & color#0a041,x equiv, 1\
                                        [![1]!]-3,[![2]!] rightarrow [![3]!] & 8,x equiv -3!!! \
                                        [![2]!]-5,[![4]!] rightarrow [![4]!] & bbox[5px,border:1px solid #c00]x equiv 16!!!
                                        endarray$




                                        Or $bmod 131!:, dfrac141equiv dfrac3123equiv dfrac3-8equiv dfrac-128-8equiv, bbox[5px,border:1px solid #c00]16 $ by Gauss's algorithm



                                        Beware $ $ Modular fraction arithmetic is valid only for fractions with denominator coprime to the modulus. See here for further discussion.






                                        share|cite|improve this answer











                                        $endgroup$



                                        Below is a calculateion of $ color#0a0x equiv 41^-1pmod!131,$
                                        by the forward extended Euclidean Algorithm.



                                        $ beginarrayrr
                                        [![1]!] &131, xequiv, 0 \
                                        [![2]!] & color#0a041,x equiv, 1\
                                        [![1]!]-3,[![2]!] rightarrow [![3]!] & 8,x equiv -3!!! \
                                        [![2]!]-5,[![4]!] rightarrow [![4]!] & bbox[5px,border:1px solid #c00]x equiv 16!!!
                                        endarray$




                                        Or $bmod 131!:, dfrac141equiv dfrac3123equiv dfrac3-8equiv dfrac-128-8equiv, bbox[5px,border:1px solid #c00]16 $ by Gauss's algorithm



                                        Beware $ $ Modular fraction arithmetic is valid only for fractions with denominator coprime to the modulus. See here for further discussion.







                                        share|cite|improve this answer














                                        share|cite|improve this answer



                                        share|cite|improve this answer








                                        edited 5 hours ago

























                                        answered 5 hours ago









                                        Bill DubuqueBill Dubuque

                                        222k30 gold badges210 silver badges682 bronze badges




                                        222k30 gold badges210 silver badges682 bronze badges
























                                            -1













                                            $begingroup$

                                            Hint: You use the extended Euclidean algorithm to find $x,y in mathbb Z$ such that $41x+131y=1$.






                                            share|cite|improve this answer











                                            $endgroup$



















                                              -1













                                              $begingroup$

                                              Hint: You use the extended Euclidean algorithm to find $x,y in mathbb Z$ such that $41x+131y=1$.






                                              share|cite|improve this answer











                                              $endgroup$

















                                                -1














                                                -1










                                                -1







                                                $begingroup$

                                                Hint: You use the extended Euclidean algorithm to find $x,y in mathbb Z$ such that $41x+131y=1$.






                                                share|cite|improve this answer











                                                $endgroup$



                                                Hint: You use the extended Euclidean algorithm to find $x,y in mathbb Z$ such that $41x+131y=1$.







                                                share|cite|improve this answer














                                                share|cite|improve this answer



                                                share|cite|improve this answer








                                                edited 4 hours ago

























                                                answered 8 hours ago









                                                lhflhf

                                                173k11 gold badges179 silver badges418 bronze badges




                                                173k11 gold badges179 silver badges418 bronze badges






























                                                    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%2f3331449%2fusing-the-euclidean-algorithm-how-to-find-the-inverse-of-41-in-z131%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

                                                    ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

                                                    Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

                                                    19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу