Exhibit a reduced residue system mod 7 composed entirely of powers of 3

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












By trial, I configured that $3,3^2,3^3,3^4,3^5,3^6$ is a reduced residue system composed entirely of powers of $3$. However, why this is happening? Is it true for all relatively prime numbers, though?










share|cite|improve this question























  • $3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
    – Dietrich Burde
    4 hours ago










  • @DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
    – Ethan Bolker
    4 hours ago














up vote
2
down vote

favorite












By trial, I configured that $3,3^2,3^3,3^4,3^5,3^6$ is a reduced residue system composed entirely of powers of $3$. However, why this is happening? Is it true for all relatively prime numbers, though?










share|cite|improve this question























  • $3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
    – Dietrich Burde
    4 hours ago










  • @DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
    – Ethan Bolker
    4 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











By trial, I configured that $3,3^2,3^3,3^4,3^5,3^6$ is a reduced residue system composed entirely of powers of $3$. However, why this is happening? Is it true for all relatively prime numbers, though?










share|cite|improve this question















By trial, I configured that $3,3^2,3^3,3^4,3^5,3^6$ is a reduced residue system composed entirely of powers of $3$. However, why this is happening? Is it true for all relatively prime numbers, though?







elementary-number-theory modular-arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 3 hours ago









Ethan Bolker

37.7k543100




37.7k543100










asked 4 hours ago









Maged Saeed

297212




297212











  • $3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
    – Dietrich Burde
    4 hours ago










  • @DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
    – Ethan Bolker
    4 hours ago
















  • $3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
    – Dietrich Burde
    4 hours ago










  • @DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
    – Ethan Bolker
    4 hours ago















$3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
– Dietrich Burde
4 hours ago




$3$ is a generator of the cyclic group $U(7)$, the group of units of the ring $BbbZ/7BbbZ$. Have a look at this site for this, it has been answered here, for $U(p)$ and more generally. For a duplicate with $p=31$, see here.
– Dietrich Burde
4 hours ago












@DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
– Ethan Bolker
4 hours ago




@DietrichBurde My comment was in response to an earlier one of yours. I'm now deleting it.
– Ethan Bolker
4 hours ago










4 Answers
4






active

oldest

votes

















up vote
3
down vote



accepted










No, it is not true for all relatively prime numbers. For example try powers of $2$ and you will find out it is not a reduced residue system. Now why is that happening? If $gcd(a,n)=1$ then by Euler's theorem $a^phi(n)equiv 1$(mod $n$). Now, if $phi(n)$ is also the smallest natural number $m$ for which $a^mequiv 1$(mod $n$) then $a$ is called a primitive root mod $n$. In that case all invertible elements mod $n$ are powers of $a$. It follows from the fact that if you look at the set $1,a,a^2,...,a^phi(n)-1$ then it contains $phi(n)$ different elements. Let's prove that. Suppose $a^iequiv a^j$(mod $n$) for $0leq i<jleqphi(n)-1$. Then by multiplying both sides by $a^-i$ we get $a^j-iequiv 1$(mod $n$) when $1leq j-i<phi(n)$ which contradicts the fact that $a$ is a primitive root. So that is what happening in your case-$3$ is a primitive root mod $7$. By the way, not every natural number $n$ has primitive roots, but every prime number does. And if $n$ has a primitive root then there are actually $phi(phi(n))$ of them.






share|cite|improve this answer





























    up vote
    2
    down vote













    Trial was the right way to go.



    This is happening because $3$ is a primitive root for $7$: a number whose powers fill out the reduced residue system.



    Every prime modulus has primitive roots. There is no easy way to find them. $2$ is not one for $7$ as you can tell by looking at the sequence of its powers, modulo $7$. They repeat with period $3$, not $6$.






    share|cite|improve this answer



























      up vote
      2
      down vote













      Yes, that works with the number $3$. However, it doesn't work if you use $2$ instead of $3$, because any power of $2$ is congruent to $1$, $2$, or $4$ modulo $7$. And if you were working with $13$ instead of $7$, $3$ wouldn't work either, because every power of $3$ is congruent to $1$, $3$, or $9$ modulo $13$. You must check it case by case.






      share|cite|improve this answer



























        up vote
        0
        down vote













        Hint $bmod 7!:, overbrace3^large 6equiv 1^large murm Fermat, 3^large 2,3^large 3notequiv 1,Rightarrow, 3,$ has order $,6,,$ by below




        Order Test $, ,a,$ has order $,niff a^ n = 1,$ but $,a^n/p not= 1,$ for every prime $,pmid n.,$



        Proof $ (Leftarrow) $ If $,a,$ has $,rmcolor#c00order k,$ then $,kmid n.,$ If $,k < n,$ then $,k,$ is proper divisor of $,n,$ therefore $,k,$ must omit at least one prime $,p,$ from the unique prime factorization of $,n,,$ hence
        $,kmid n/p,,$ say $, kj = n/p,,$ so $,a^n/p = (color#c00a^k)^j= color#c001^j= 1,,$ contra hypothesis. $ (Rightarrow) $ By definition of order.



        Remark $ $ It is a classical result that the group of units (invertibles) of $,Bbb Z/n,$ is cyclic $iff n = 1,2,4, p^k,$ or $,2p^k,,$ for $p$ an odd prime.






        share|cite|improve this answer






















        • @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
          – Bill Dubuque
          3 hours ago










        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',
        convertImagesToLinks: true,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        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%2f2959592%2fexhibit-a-reduced-residue-system-mod-7-composed-entirely-of-powers-of-3%23new-answer', 'question_page');

        );

        Post as a guest






























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        3
        down vote



        accepted










        No, it is not true for all relatively prime numbers. For example try powers of $2$ and you will find out it is not a reduced residue system. Now why is that happening? If $gcd(a,n)=1$ then by Euler's theorem $a^phi(n)equiv 1$(mod $n$). Now, if $phi(n)$ is also the smallest natural number $m$ for which $a^mequiv 1$(mod $n$) then $a$ is called a primitive root mod $n$. In that case all invertible elements mod $n$ are powers of $a$. It follows from the fact that if you look at the set $1,a,a^2,...,a^phi(n)-1$ then it contains $phi(n)$ different elements. Let's prove that. Suppose $a^iequiv a^j$(mod $n$) for $0leq i<jleqphi(n)-1$. Then by multiplying both sides by $a^-i$ we get $a^j-iequiv 1$(mod $n$) when $1leq j-i<phi(n)$ which contradicts the fact that $a$ is a primitive root. So that is what happening in your case-$3$ is a primitive root mod $7$. By the way, not every natural number $n$ has primitive roots, but every prime number does. And if $n$ has a primitive root then there are actually $phi(phi(n))$ of them.






        share|cite|improve this answer


























          up vote
          3
          down vote



          accepted










          No, it is not true for all relatively prime numbers. For example try powers of $2$ and you will find out it is not a reduced residue system. Now why is that happening? If $gcd(a,n)=1$ then by Euler's theorem $a^phi(n)equiv 1$(mod $n$). Now, if $phi(n)$ is also the smallest natural number $m$ for which $a^mequiv 1$(mod $n$) then $a$ is called a primitive root mod $n$. In that case all invertible elements mod $n$ are powers of $a$. It follows from the fact that if you look at the set $1,a,a^2,...,a^phi(n)-1$ then it contains $phi(n)$ different elements. Let's prove that. Suppose $a^iequiv a^j$(mod $n$) for $0leq i<jleqphi(n)-1$. Then by multiplying both sides by $a^-i$ we get $a^j-iequiv 1$(mod $n$) when $1leq j-i<phi(n)$ which contradicts the fact that $a$ is a primitive root. So that is what happening in your case-$3$ is a primitive root mod $7$. By the way, not every natural number $n$ has primitive roots, but every prime number does. And if $n$ has a primitive root then there are actually $phi(phi(n))$ of them.






          share|cite|improve this answer
























            up vote
            3
            down vote



            accepted







            up vote
            3
            down vote



            accepted






            No, it is not true for all relatively prime numbers. For example try powers of $2$ and you will find out it is not a reduced residue system. Now why is that happening? If $gcd(a,n)=1$ then by Euler's theorem $a^phi(n)equiv 1$(mod $n$). Now, if $phi(n)$ is also the smallest natural number $m$ for which $a^mequiv 1$(mod $n$) then $a$ is called a primitive root mod $n$. In that case all invertible elements mod $n$ are powers of $a$. It follows from the fact that if you look at the set $1,a,a^2,...,a^phi(n)-1$ then it contains $phi(n)$ different elements. Let's prove that. Suppose $a^iequiv a^j$(mod $n$) for $0leq i<jleqphi(n)-1$. Then by multiplying both sides by $a^-i$ we get $a^j-iequiv 1$(mod $n$) when $1leq j-i<phi(n)$ which contradicts the fact that $a$ is a primitive root. So that is what happening in your case-$3$ is a primitive root mod $7$. By the way, not every natural number $n$ has primitive roots, but every prime number does. And if $n$ has a primitive root then there are actually $phi(phi(n))$ of them.






            share|cite|improve this answer














            No, it is not true for all relatively prime numbers. For example try powers of $2$ and you will find out it is not a reduced residue system. Now why is that happening? If $gcd(a,n)=1$ then by Euler's theorem $a^phi(n)equiv 1$(mod $n$). Now, if $phi(n)$ is also the smallest natural number $m$ for which $a^mequiv 1$(mod $n$) then $a$ is called a primitive root mod $n$. In that case all invertible elements mod $n$ are powers of $a$. It follows from the fact that if you look at the set $1,a,a^2,...,a^phi(n)-1$ then it contains $phi(n)$ different elements. Let's prove that. Suppose $a^iequiv a^j$(mod $n$) for $0leq i<jleqphi(n)-1$. Then by multiplying both sides by $a^-i$ we get $a^j-iequiv 1$(mod $n$) when $1leq j-i<phi(n)$ which contradicts the fact that $a$ is a primitive root. So that is what happening in your case-$3$ is a primitive root mod $7$. By the way, not every natural number $n$ has primitive roots, but every prime number does. And if $n$ has a primitive root then there are actually $phi(phi(n))$ of them.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited 4 hours ago

























            answered 4 hours ago









            Mark

            5,019315




            5,019315




















                up vote
                2
                down vote













                Trial was the right way to go.



                This is happening because $3$ is a primitive root for $7$: a number whose powers fill out the reduced residue system.



                Every prime modulus has primitive roots. There is no easy way to find them. $2$ is not one for $7$ as you can tell by looking at the sequence of its powers, modulo $7$. They repeat with period $3$, not $6$.






                share|cite|improve this answer
























                  up vote
                  2
                  down vote













                  Trial was the right way to go.



                  This is happening because $3$ is a primitive root for $7$: a number whose powers fill out the reduced residue system.



                  Every prime modulus has primitive roots. There is no easy way to find them. $2$ is not one for $7$ as you can tell by looking at the sequence of its powers, modulo $7$. They repeat with period $3$, not $6$.






                  share|cite|improve this answer






















                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









                    Trial was the right way to go.



                    This is happening because $3$ is a primitive root for $7$: a number whose powers fill out the reduced residue system.



                    Every prime modulus has primitive roots. There is no easy way to find them. $2$ is not one for $7$ as you can tell by looking at the sequence of its powers, modulo $7$. They repeat with period $3$, not $6$.






                    share|cite|improve this answer












                    Trial was the right way to go.



                    This is happening because $3$ is a primitive root for $7$: a number whose powers fill out the reduced residue system.



                    Every prime modulus has primitive roots. There is no easy way to find them. $2$ is not one for $7$ as you can tell by looking at the sequence of its powers, modulo $7$. They repeat with period $3$, not $6$.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered 4 hours ago









                    Ethan Bolker

                    37.7k543100




                    37.7k543100




















                        up vote
                        2
                        down vote













                        Yes, that works with the number $3$. However, it doesn't work if you use $2$ instead of $3$, because any power of $2$ is congruent to $1$, $2$, or $4$ modulo $7$. And if you were working with $13$ instead of $7$, $3$ wouldn't work either, because every power of $3$ is congruent to $1$, $3$, or $9$ modulo $13$. You must check it case by case.






                        share|cite|improve this answer
























                          up vote
                          2
                          down vote













                          Yes, that works with the number $3$. However, it doesn't work if you use $2$ instead of $3$, because any power of $2$ is congruent to $1$, $2$, or $4$ modulo $7$. And if you were working with $13$ instead of $7$, $3$ wouldn't work either, because every power of $3$ is congruent to $1$, $3$, or $9$ modulo $13$. You must check it case by case.






                          share|cite|improve this answer






















                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            Yes, that works with the number $3$. However, it doesn't work if you use $2$ instead of $3$, because any power of $2$ is congruent to $1$, $2$, or $4$ modulo $7$. And if you were working with $13$ instead of $7$, $3$ wouldn't work either, because every power of $3$ is congruent to $1$, $3$, or $9$ modulo $13$. You must check it case by case.






                            share|cite|improve this answer












                            Yes, that works with the number $3$. However, it doesn't work if you use $2$ instead of $3$, because any power of $2$ is congruent to $1$, $2$, or $4$ modulo $7$. And if you were working with $13$ instead of $7$, $3$ wouldn't work either, because every power of $3$ is congruent to $1$, $3$, or $9$ modulo $13$. You must check it case by case.







                            share|cite|improve this answer












                            share|cite|improve this answer



                            share|cite|improve this answer










                            answered 4 hours ago









                            José Carlos Santos

                            130k17105191




                            130k17105191




















                                up vote
                                0
                                down vote













                                Hint $bmod 7!:, overbrace3^large 6equiv 1^large murm Fermat, 3^large 2,3^large 3notequiv 1,Rightarrow, 3,$ has order $,6,,$ by below




                                Order Test $, ,a,$ has order $,niff a^ n = 1,$ but $,a^n/p not= 1,$ for every prime $,pmid n.,$



                                Proof $ (Leftarrow) $ If $,a,$ has $,rmcolor#c00order k,$ then $,kmid n.,$ If $,k < n,$ then $,k,$ is proper divisor of $,n,$ therefore $,k,$ must omit at least one prime $,p,$ from the unique prime factorization of $,n,,$ hence
                                $,kmid n/p,,$ say $, kj = n/p,,$ so $,a^n/p = (color#c00a^k)^j= color#c001^j= 1,,$ contra hypothesis. $ (Rightarrow) $ By definition of order.



                                Remark $ $ It is a classical result that the group of units (invertibles) of $,Bbb Z/n,$ is cyclic $iff n = 1,2,4, p^k,$ or $,2p^k,,$ for $p$ an odd prime.






                                share|cite|improve this answer






















                                • @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                  – Bill Dubuque
                                  3 hours ago














                                up vote
                                0
                                down vote













                                Hint $bmod 7!:, overbrace3^large 6equiv 1^large murm Fermat, 3^large 2,3^large 3notequiv 1,Rightarrow, 3,$ has order $,6,,$ by below




                                Order Test $, ,a,$ has order $,niff a^ n = 1,$ but $,a^n/p not= 1,$ for every prime $,pmid n.,$



                                Proof $ (Leftarrow) $ If $,a,$ has $,rmcolor#c00order k,$ then $,kmid n.,$ If $,k < n,$ then $,k,$ is proper divisor of $,n,$ therefore $,k,$ must omit at least one prime $,p,$ from the unique prime factorization of $,n,,$ hence
                                $,kmid n/p,,$ say $, kj = n/p,,$ so $,a^n/p = (color#c00a^k)^j= color#c001^j= 1,,$ contra hypothesis. $ (Rightarrow) $ By definition of order.



                                Remark $ $ It is a classical result that the group of units (invertibles) of $,Bbb Z/n,$ is cyclic $iff n = 1,2,4, p^k,$ or $,2p^k,,$ for $p$ an odd prime.






                                share|cite|improve this answer






















                                • @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                  – Bill Dubuque
                                  3 hours ago












                                up vote
                                0
                                down vote










                                up vote
                                0
                                down vote









                                Hint $bmod 7!:, overbrace3^large 6equiv 1^large murm Fermat, 3^large 2,3^large 3notequiv 1,Rightarrow, 3,$ has order $,6,,$ by below




                                Order Test $, ,a,$ has order $,niff a^ n = 1,$ but $,a^n/p not= 1,$ for every prime $,pmid n.,$



                                Proof $ (Leftarrow) $ If $,a,$ has $,rmcolor#c00order k,$ then $,kmid n.,$ If $,k < n,$ then $,k,$ is proper divisor of $,n,$ therefore $,k,$ must omit at least one prime $,p,$ from the unique prime factorization of $,n,,$ hence
                                $,kmid n/p,,$ say $, kj = n/p,,$ so $,a^n/p = (color#c00a^k)^j= color#c001^j= 1,,$ contra hypothesis. $ (Rightarrow) $ By definition of order.



                                Remark $ $ It is a classical result that the group of units (invertibles) of $,Bbb Z/n,$ is cyclic $iff n = 1,2,4, p^k,$ or $,2p^k,,$ for $p$ an odd prime.






                                share|cite|improve this answer














                                Hint $bmod 7!:, overbrace3^large 6equiv 1^large murm Fermat, 3^large 2,3^large 3notequiv 1,Rightarrow, 3,$ has order $,6,,$ by below




                                Order Test $, ,a,$ has order $,niff a^ n = 1,$ but $,a^n/p not= 1,$ for every prime $,pmid n.,$



                                Proof $ (Leftarrow) $ If $,a,$ has $,rmcolor#c00order k,$ then $,kmid n.,$ If $,k < n,$ then $,k,$ is proper divisor of $,n,$ therefore $,k,$ must omit at least one prime $,p,$ from the unique prime factorization of $,n,,$ hence
                                $,kmid n/p,,$ say $, kj = n/p,,$ so $,a^n/p = (color#c00a^k)^j= color#c001^j= 1,,$ contra hypothesis. $ (Rightarrow) $ By definition of order.



                                Remark $ $ It is a classical result that the group of units (invertibles) of $,Bbb Z/n,$ is cyclic $iff n = 1,2,4, p^k,$ or $,2p^k,,$ for $p$ an odd prime.







                                share|cite|improve this answer














                                share|cite|improve this answer



                                share|cite|improve this answer








                                edited 3 hours ago

























                                answered 4 hours ago









                                Bill Dubuque

                                204k29189613




                                204k29189613











                                • @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                  – Bill Dubuque
                                  3 hours ago
















                                • @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                  – Bill Dubuque
                                  3 hours ago















                                @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                – Bill Dubuque
                                3 hours ago




                                @Downvoter If something is not clear then please feel welcome to ask questions and I will happily elaborate.
                                – Bill Dubuque
                                3 hours ago

















                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2959592%2fexhibit-a-reduced-residue-system-mod-7-composed-entirely-of-powers-of-3%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Popular posts from this blog

                                How to check contact read email or not when send email to Individual?

                                Displaying single band from multi-band raster using QGIS

                                How many registers does an x86_64 CPU actually have?