Bijection from modular multiplication?












2












$begingroup$


Say we have two integers $n$ and $k$, such that $0 < k < n$ and $gcd(n, k) = 1$.



Why is it that if we take every integer $xin{0,dots, n-1}$ and compute $kcdot x (mod n)$, we get as remainders all numbers from $0$ to $n-1$, with no repeats?



In other words, why is $ f:{0,dots,n-1}rightarrow{0,dots,n-1}$, $ f(x)=kcdot x (mod n)$ a bijection for $k,ninmathbb{N}, gcd(k,n)=1$?










share|cite|improve this question









$endgroup$

















    2












    $begingroup$


    Say we have two integers $n$ and $k$, such that $0 < k < n$ and $gcd(n, k) = 1$.



    Why is it that if we take every integer $xin{0,dots, n-1}$ and compute $kcdot x (mod n)$, we get as remainders all numbers from $0$ to $n-1$, with no repeats?



    In other words, why is $ f:{0,dots,n-1}rightarrow{0,dots,n-1}$, $ f(x)=kcdot x (mod n)$ a bijection for $k,ninmathbb{N}, gcd(k,n)=1$?










    share|cite|improve this question









    $endgroup$















      2












      2








      2





      $begingroup$


      Say we have two integers $n$ and $k$, such that $0 < k < n$ and $gcd(n, k) = 1$.



      Why is it that if we take every integer $xin{0,dots, n-1}$ and compute $kcdot x (mod n)$, we get as remainders all numbers from $0$ to $n-1$, with no repeats?



      In other words, why is $ f:{0,dots,n-1}rightarrow{0,dots,n-1}$, $ f(x)=kcdot x (mod n)$ a bijection for $k,ninmathbb{N}, gcd(k,n)=1$?










      share|cite|improve this question









      $endgroup$




      Say we have two integers $n$ and $k$, such that $0 < k < n$ and $gcd(n, k) = 1$.



      Why is it that if we take every integer $xin{0,dots, n-1}$ and compute $kcdot x (mod n)$, we get as remainders all numbers from $0$ to $n-1$, with no repeats?



      In other words, why is $ f:{0,dots,n-1}rightarrow{0,dots,n-1}$, $ f(x)=kcdot x (mod n)$ a bijection for $k,ninmathbb{N}, gcd(k,n)=1$?







      modular-arithmetic






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 2 '18 at 18:09









      SeriousCraneSeriousCrane

      111




      111






















          2 Answers
          2






          active

          oldest

          votes


















          1












          $begingroup$

          The assumptions imply that $k$ is invertible $pmod n$. More precisely, Bezout tells us that $gcd(n,k)=1$ implies the existence of integers $a,b$ such that $ak+bn=1$. We note that $akequiv 1 pmod n$ so $a$ is a multiplicative inverse of $kpmod n$.



          Your claim follows at once from this. To see that a residue class $r$ is in the image of multiplication by $k$, we note that $ktimes atimes r equiv r pmod n$. Thus the map is surjective (and as it is a map between finite sets of the same size, surjective implies bijective).



          As another argument, note that the map is injective since $$ktimes r_1equiv ktimes r_2pmod nimplies n,|,k(r_1-r_2)$$



          But, since $gcd(n,k)=1$ this implies $n,|,r_1-r_2$. Again, since this is a map between finite sets of the same size, injective implies bijective.






          share|cite|improve this answer









          $endgroup$





















            1












            $begingroup$

            See below for a few ways to prove it. $ $ OP is $rm, c,d = k,0,$ below.



            Theorem $ $ The following are equivalent for integers $rm:c,d, n.$



            $(1)rm gcd(c,n) = 1$
            $(2)rm c:$ is invertible $rm,(mod n)$
            $(3)rm xto cx+d:$ is $:1$-$1:$ $rm,(mod n)$
            $(4)rm xto cx+d:$ is onto $rm,(mod n)$



            Proof $ (1Rightarrow 2) $ By Bezout $rm, gcd(c,n)! =! 1Rightarrow cd!+!kn =! 1,$ for $rm,d,kinBbb Z,$ $rmRightarrow cdequiv 1!pmod{! n}$
            $(2Rightarrow 3) rm cx!+!d equiv cy!+!d,Rightarrow,c(x!-!y)equiv 0,Rightarrow,x!-!yequiv 0,$ by multiplying by $rm,c^{-1}$
            $(3Rightarrow 4) $ Every $1$-$1$ function on a finite set is onto (pigeonhole).
            $(4Rightarrow 1) rm xto cx,$ is onto, so $rm,cdequiv 1,,$ some $rm,d,,$ i.e. $rm, cd+kn = 1,,$ some $rm,k,,$ so $rmgcd(c,n)=1$



            See here for a conceptual proof of said Bezout identity for the gcd.






            share|cite|improve this answer









            $endgroup$













              Your Answer





              StackExchange.ifUsing("editor", function () {
              return StackExchange.using("mathjaxEditing", function () {
              StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
              StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
              });
              });
              }, "mathjax-editing");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "69"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3022985%2fbijection-from-modular-multiplication%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












              $begingroup$

              The assumptions imply that $k$ is invertible $pmod n$. More precisely, Bezout tells us that $gcd(n,k)=1$ implies the existence of integers $a,b$ such that $ak+bn=1$. We note that $akequiv 1 pmod n$ so $a$ is a multiplicative inverse of $kpmod n$.



              Your claim follows at once from this. To see that a residue class $r$ is in the image of multiplication by $k$, we note that $ktimes atimes r equiv r pmod n$. Thus the map is surjective (and as it is a map between finite sets of the same size, surjective implies bijective).



              As another argument, note that the map is injective since $$ktimes r_1equiv ktimes r_2pmod nimplies n,|,k(r_1-r_2)$$



              But, since $gcd(n,k)=1$ this implies $n,|,r_1-r_2$. Again, since this is a map between finite sets of the same size, injective implies bijective.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                The assumptions imply that $k$ is invertible $pmod n$. More precisely, Bezout tells us that $gcd(n,k)=1$ implies the existence of integers $a,b$ such that $ak+bn=1$. We note that $akequiv 1 pmod n$ so $a$ is a multiplicative inverse of $kpmod n$.



                Your claim follows at once from this. To see that a residue class $r$ is in the image of multiplication by $k$, we note that $ktimes atimes r equiv r pmod n$. Thus the map is surjective (and as it is a map between finite sets of the same size, surjective implies bijective).



                As another argument, note that the map is injective since $$ktimes r_1equiv ktimes r_2pmod nimplies n,|,k(r_1-r_2)$$



                But, since $gcd(n,k)=1$ this implies $n,|,r_1-r_2$. Again, since this is a map between finite sets of the same size, injective implies bijective.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  The assumptions imply that $k$ is invertible $pmod n$. More precisely, Bezout tells us that $gcd(n,k)=1$ implies the existence of integers $a,b$ such that $ak+bn=1$. We note that $akequiv 1 pmod n$ so $a$ is a multiplicative inverse of $kpmod n$.



                  Your claim follows at once from this. To see that a residue class $r$ is in the image of multiplication by $k$, we note that $ktimes atimes r equiv r pmod n$. Thus the map is surjective (and as it is a map between finite sets of the same size, surjective implies bijective).



                  As another argument, note that the map is injective since $$ktimes r_1equiv ktimes r_2pmod nimplies n,|,k(r_1-r_2)$$



                  But, since $gcd(n,k)=1$ this implies $n,|,r_1-r_2$. Again, since this is a map between finite sets of the same size, injective implies bijective.






                  share|cite|improve this answer









                  $endgroup$



                  The assumptions imply that $k$ is invertible $pmod n$. More precisely, Bezout tells us that $gcd(n,k)=1$ implies the existence of integers $a,b$ such that $ak+bn=1$. We note that $akequiv 1 pmod n$ so $a$ is a multiplicative inverse of $kpmod n$.



                  Your claim follows at once from this. To see that a residue class $r$ is in the image of multiplication by $k$, we note that $ktimes atimes r equiv r pmod n$. Thus the map is surjective (and as it is a map between finite sets of the same size, surjective implies bijective).



                  As another argument, note that the map is injective since $$ktimes r_1equiv ktimes r_2pmod nimplies n,|,k(r_1-r_2)$$



                  But, since $gcd(n,k)=1$ this implies $n,|,r_1-r_2$. Again, since this is a map between finite sets of the same size, injective implies bijective.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 2 '18 at 18:24









                  lulululu

                  39.8k24778




                  39.8k24778























                      1












                      $begingroup$

                      See below for a few ways to prove it. $ $ OP is $rm, c,d = k,0,$ below.



                      Theorem $ $ The following are equivalent for integers $rm:c,d, n.$



                      $(1)rm gcd(c,n) = 1$
                      $(2)rm c:$ is invertible $rm,(mod n)$
                      $(3)rm xto cx+d:$ is $:1$-$1:$ $rm,(mod n)$
                      $(4)rm xto cx+d:$ is onto $rm,(mod n)$



                      Proof $ (1Rightarrow 2) $ By Bezout $rm, gcd(c,n)! =! 1Rightarrow cd!+!kn =! 1,$ for $rm,d,kinBbb Z,$ $rmRightarrow cdequiv 1!pmod{! n}$
                      $(2Rightarrow 3) rm cx!+!d equiv cy!+!d,Rightarrow,c(x!-!y)equiv 0,Rightarrow,x!-!yequiv 0,$ by multiplying by $rm,c^{-1}$
                      $(3Rightarrow 4) $ Every $1$-$1$ function on a finite set is onto (pigeonhole).
                      $(4Rightarrow 1) rm xto cx,$ is onto, so $rm,cdequiv 1,,$ some $rm,d,,$ i.e. $rm, cd+kn = 1,,$ some $rm,k,,$ so $rmgcd(c,n)=1$



                      See here for a conceptual proof of said Bezout identity for the gcd.






                      share|cite|improve this answer









                      $endgroup$


















                        1












                        $begingroup$

                        See below for a few ways to prove it. $ $ OP is $rm, c,d = k,0,$ below.



                        Theorem $ $ The following are equivalent for integers $rm:c,d, n.$



                        $(1)rm gcd(c,n) = 1$
                        $(2)rm c:$ is invertible $rm,(mod n)$
                        $(3)rm xto cx+d:$ is $:1$-$1:$ $rm,(mod n)$
                        $(4)rm xto cx+d:$ is onto $rm,(mod n)$



                        Proof $ (1Rightarrow 2) $ By Bezout $rm, gcd(c,n)! =! 1Rightarrow cd!+!kn =! 1,$ for $rm,d,kinBbb Z,$ $rmRightarrow cdequiv 1!pmod{! n}$
                        $(2Rightarrow 3) rm cx!+!d equiv cy!+!d,Rightarrow,c(x!-!y)equiv 0,Rightarrow,x!-!yequiv 0,$ by multiplying by $rm,c^{-1}$
                        $(3Rightarrow 4) $ Every $1$-$1$ function on a finite set is onto (pigeonhole).
                        $(4Rightarrow 1) rm xto cx,$ is onto, so $rm,cdequiv 1,,$ some $rm,d,,$ i.e. $rm, cd+kn = 1,,$ some $rm,k,,$ so $rmgcd(c,n)=1$



                        See here for a conceptual proof of said Bezout identity for the gcd.






                        share|cite|improve this answer









                        $endgroup$
















                          1












                          1








                          1





                          $begingroup$

                          See below for a few ways to prove it. $ $ OP is $rm, c,d = k,0,$ below.



                          Theorem $ $ The following are equivalent for integers $rm:c,d, n.$



                          $(1)rm gcd(c,n) = 1$
                          $(2)rm c:$ is invertible $rm,(mod n)$
                          $(3)rm xto cx+d:$ is $:1$-$1:$ $rm,(mod n)$
                          $(4)rm xto cx+d:$ is onto $rm,(mod n)$



                          Proof $ (1Rightarrow 2) $ By Bezout $rm, gcd(c,n)! =! 1Rightarrow cd!+!kn =! 1,$ for $rm,d,kinBbb Z,$ $rmRightarrow cdequiv 1!pmod{! n}$
                          $(2Rightarrow 3) rm cx!+!d equiv cy!+!d,Rightarrow,c(x!-!y)equiv 0,Rightarrow,x!-!yequiv 0,$ by multiplying by $rm,c^{-1}$
                          $(3Rightarrow 4) $ Every $1$-$1$ function on a finite set is onto (pigeonhole).
                          $(4Rightarrow 1) rm xto cx,$ is onto, so $rm,cdequiv 1,,$ some $rm,d,,$ i.e. $rm, cd+kn = 1,,$ some $rm,k,,$ so $rmgcd(c,n)=1$



                          See here for a conceptual proof of said Bezout identity for the gcd.






                          share|cite|improve this answer









                          $endgroup$



                          See below for a few ways to prove it. $ $ OP is $rm, c,d = k,0,$ below.



                          Theorem $ $ The following are equivalent for integers $rm:c,d, n.$



                          $(1)rm gcd(c,n) = 1$
                          $(2)rm c:$ is invertible $rm,(mod n)$
                          $(3)rm xto cx+d:$ is $:1$-$1:$ $rm,(mod n)$
                          $(4)rm xto cx+d:$ is onto $rm,(mod n)$



                          Proof $ (1Rightarrow 2) $ By Bezout $rm, gcd(c,n)! =! 1Rightarrow cd!+!kn =! 1,$ for $rm,d,kinBbb Z,$ $rmRightarrow cdequiv 1!pmod{! n}$
                          $(2Rightarrow 3) rm cx!+!d equiv cy!+!d,Rightarrow,c(x!-!y)equiv 0,Rightarrow,x!-!yequiv 0,$ by multiplying by $rm,c^{-1}$
                          $(3Rightarrow 4) $ Every $1$-$1$ function on a finite set is onto (pigeonhole).
                          $(4Rightarrow 1) rm xto cx,$ is onto, so $rm,cdequiv 1,,$ some $rm,d,,$ i.e. $rm, cd+kn = 1,,$ some $rm,k,,$ so $rmgcd(c,n)=1$



                          See here for a conceptual proof of said Bezout identity for the gcd.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Dec 2 '18 at 18:43









                          Bill DubuqueBill Dubuque

                          209k29191634




                          209k29191634






























                              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%2f3022985%2fbijection-from-modular-multiplication%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

                              Willebadessen

                              Ida-Boy-Ed-Garten

                              Residenzschloss Arolsen