number of square roots of unity modulo a prime power

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











up vote
2
down vote

favorite












Let $pgeq 3$ be a prime number and let $kgeq 1$ be some integer.



Is it always true that if $x^2equiv 1pmodp^k$ then $xequivpm1pmodp^k$ ?



For $k=1$ it is true since $x^2-1inmathbbF_p[x]$ is a degree $2$ polynomial with two distinct roots $-1,1$ and so any other root in $mathbbF_p$ must be one of them.



I know that there exists a primitive root modulo $p^k$.







share|cite|improve this question















  • 1




    Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
    – Daniel Fischer♦
    Jul 14 at 20:12











  • when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
    – user554578
    Jul 14 at 20:19











  • You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
    – Daniel Fischer♦
    Jul 14 at 20:24














up vote
2
down vote

favorite












Let $pgeq 3$ be a prime number and let $kgeq 1$ be some integer.



Is it always true that if $x^2equiv 1pmodp^k$ then $xequivpm1pmodp^k$ ?



For $k=1$ it is true since $x^2-1inmathbbF_p[x]$ is a degree $2$ polynomial with two distinct roots $-1,1$ and so any other root in $mathbbF_p$ must be one of them.



I know that there exists a primitive root modulo $p^k$.







share|cite|improve this question















  • 1




    Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
    – Daniel Fischer♦
    Jul 14 at 20:12











  • when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
    – user554578
    Jul 14 at 20:19











  • You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
    – Daniel Fischer♦
    Jul 14 at 20:24












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Let $pgeq 3$ be a prime number and let $kgeq 1$ be some integer.



Is it always true that if $x^2equiv 1pmodp^k$ then $xequivpm1pmodp^k$ ?



For $k=1$ it is true since $x^2-1inmathbbF_p[x]$ is a degree $2$ polynomial with two distinct roots $-1,1$ and so any other root in $mathbbF_p$ must be one of them.



I know that there exists a primitive root modulo $p^k$.







share|cite|improve this question











Let $pgeq 3$ be a prime number and let $kgeq 1$ be some integer.



Is it always true that if $x^2equiv 1pmodp^k$ then $xequivpm1pmodp^k$ ?



For $k=1$ it is true since $x^2-1inmathbbF_p[x]$ is a degree $2$ polynomial with two distinct roots $-1,1$ and so any other root in $mathbbF_p$ must be one of them.



I know that there exists a primitive root modulo $p^k$.









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 14 at 20:04









user554578

1707




1707







  • 1




    Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
    – Daniel Fischer♦
    Jul 14 at 20:12











  • when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
    – user554578
    Jul 14 at 20:19











  • You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
    – Daniel Fischer♦
    Jul 14 at 20:24












  • 1




    Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
    – Daniel Fischer♦
    Jul 14 at 20:12











  • when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
    – user554578
    Jul 14 at 20:19











  • You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
    – Daniel Fischer♦
    Jul 14 at 20:24







1




1




Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
– Daniel Fischer♦
Jul 14 at 20:12





Then you know that you can write each $xneq 0$ as $g^m$. When is $g^2m = 1$?
– Daniel Fischer♦
Jul 14 at 20:12













when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
– user554578
Jul 14 at 20:19





when $varphi(p^k)|2m$, so $2m=ellvarphi(p^k)$ and if $ell$ is even then $varphi(p^k)|m$ so $g^mequiv 1pmodp^k$ but what about odd $ell$? @DanielFischer
– user554578
Jul 14 at 20:19













You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
– Daniel Fischer♦
Jul 14 at 20:24




You can restrict your attention to $0 leqslant m < varphi(p^k)$, then $2m < 2varphi(p^k)$ and $varphi(p^k) mid 2m$ if and only if $2m = 0$ or $2m = varphi(p^k)$.
– Daniel Fischer♦
Jul 14 at 20:24










4 Answers
4






active

oldest

votes

















up vote
1
down vote



accepted










We know that $$p^k mid a^2-1=(a-1)(a+1)$$we prove that it is impossible that $$p mid a-1\p mid a+1$$but this is obvious since$$p mid (a+1)-(a-1)=2$$which is a contradiction for $p>2$ therefore either $pnotmid a-1$ or $pnotmid a+1$ which means that either $p mid a-1$ or $p mid a+1$






share|cite|improve this answer























  • But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
    – user554578
    Jul 14 at 20:23











  • No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
    – Mostafa Ayaz
    Jul 14 at 20:25










  • Thank you very much!
    – user554578
    Jul 14 at 20:27










  • You're welcome!
    – Mostafa Ayaz
    Jul 14 at 20:28

















up vote
0
down vote













Another way to say that there exists a primitive root modulo $p^k$ is to say that $U(p^k)$ is cyclic. Since it has even order, it has exactly one subgroup of order $2$: the set of all elements such that $x^2=1$.






share|cite|improve this answer




























    up vote
    0
    down vote













    Another approach using induction (inspired by Hensel’s lemma). Assume $p neq 2$. For $k=1$ the statement holds. Now if $k > 1$ and $a^2equiv 1 pmodp^k$ then also $a^2equiv 1 pmod p^k-1$. So by induction $a equiv pm 1 pmodp^k-1$, that is, $a = pm 1 + m p^k-1$ for some integer $m$. Then $$1 equiv a^2 = 1 pm 2 m p^k-1 + m^2 p^2k-2equiv 1 pm 2 m p^k-1 pmodp^k.$$ This means (since $p neq 2$) that $p mid m$. Then $a = pm 1 + m p^k-1equiv pm 1 pmodp^k$.






    share|cite|improve this answer




























      up vote
      0
      down vote













      We know that $1$ and $-1$ are roots of $1bmod p^k$.



      Let $g$ be a primitive root $bmod p^k$ and $m:=phi(p^k)$ be its order. Then considering $(g^i)^2$ with $iin [1..m]$ we note that only $i=m/2$ and $i=m$ give $(g^i)^2equiv 1 bmod p^k$. Thus there are only two roots of $1 bmod p^k$.






      share|cite|improve this answer





















        Your Answer




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

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

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

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        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%2f2851910%2fnumber-of-square-roots-of-unity-modulo-a-prime-power%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
        1
        down vote



        accepted










        We know that $$p^k mid a^2-1=(a-1)(a+1)$$we prove that it is impossible that $$p mid a-1\p mid a+1$$but this is obvious since$$p mid (a+1)-(a-1)=2$$which is a contradiction for $p>2$ therefore either $pnotmid a-1$ or $pnotmid a+1$ which means that either $p mid a-1$ or $p mid a+1$






        share|cite|improve this answer























        • But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
          – user554578
          Jul 14 at 20:23











        • No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
          – Mostafa Ayaz
          Jul 14 at 20:25










        • Thank you very much!
          – user554578
          Jul 14 at 20:27










        • You're welcome!
          – Mostafa Ayaz
          Jul 14 at 20:28














        up vote
        1
        down vote



        accepted










        We know that $$p^k mid a^2-1=(a-1)(a+1)$$we prove that it is impossible that $$p mid a-1\p mid a+1$$but this is obvious since$$p mid (a+1)-(a-1)=2$$which is a contradiction for $p>2$ therefore either $pnotmid a-1$ or $pnotmid a+1$ which means that either $p mid a-1$ or $p mid a+1$






        share|cite|improve this answer























        • But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
          – user554578
          Jul 14 at 20:23











        • No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
          – Mostafa Ayaz
          Jul 14 at 20:25










        • Thank you very much!
          – user554578
          Jul 14 at 20:27










        • You're welcome!
          – Mostafa Ayaz
          Jul 14 at 20:28












        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        We know that $$p^k mid a^2-1=(a-1)(a+1)$$we prove that it is impossible that $$p mid a-1\p mid a+1$$but this is obvious since$$p mid (a+1)-(a-1)=2$$which is a contradiction for $p>2$ therefore either $pnotmid a-1$ or $pnotmid a+1$ which means that either $p mid a-1$ or $p mid a+1$






        share|cite|improve this answer















        We know that $$p^k mid a^2-1=(a-1)(a+1)$$we prove that it is impossible that $$p mid a-1\p mid a+1$$but this is obvious since$$p mid (a+1)-(a-1)=2$$which is a contradiction for $p>2$ therefore either $pnotmid a-1$ or $pnotmid a+1$ which means that either $p mid a-1$ or $p mid a+1$







        share|cite|improve this answer















        share|cite|improve this answer



        share|cite|improve this answer








        edited Jul 14 at 20:22









        WimC

        23.7k22860




        23.7k22860











        answered Jul 14 at 20:13









        Mostafa Ayaz

        8,6573630




        8,6573630











        • But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
          – user554578
          Jul 14 at 20:23











        • No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
          – Mostafa Ayaz
          Jul 14 at 20:25










        • Thank you very much!
          – user554578
          Jul 14 at 20:27










        • You're welcome!
          – Mostafa Ayaz
          Jul 14 at 20:28
















        • But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
          – user554578
          Jul 14 at 20:23











        • No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
          – Mostafa Ayaz
          Jul 14 at 20:25










        • Thank you very much!
          – user554578
          Jul 14 at 20:27










        • You're welcome!
          – Mostafa Ayaz
          Jul 14 at 20:28















        But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
        – user554578
        Jul 14 at 20:23





        But this gives us that $aequiv 1pmodp$ or $aequiv -1pmodp$ and not necessarily modulo $p^k$. Ah, you say that it must be that $p|a-1$ xor $p|a+1$ and so $p^k|a-1$ xor $p^k|a+1$ ?
        – user554578
        Jul 14 at 20:23













        No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
        – Mostafa Ayaz
        Jul 14 at 20:25




        No. Since $p^k|(a-1)(a+1)$ and $a-1$ and $a+1$ cannot have both common factor $p$ at least one should be coprime with $p$ and the other one must absorb all the power of $p$ say, $p^k$
        – Mostafa Ayaz
        Jul 14 at 20:25












        Thank you very much!
        – user554578
        Jul 14 at 20:27




        Thank you very much!
        – user554578
        Jul 14 at 20:27












        You're welcome!
        – Mostafa Ayaz
        Jul 14 at 20:28




        You're welcome!
        – Mostafa Ayaz
        Jul 14 at 20:28










        up vote
        0
        down vote













        Another way to say that there exists a primitive root modulo $p^k$ is to say that $U(p^k)$ is cyclic. Since it has even order, it has exactly one subgroup of order $2$: the set of all elements such that $x^2=1$.






        share|cite|improve this answer

























          up vote
          0
          down vote













          Another way to say that there exists a primitive root modulo $p^k$ is to say that $U(p^k)$ is cyclic. Since it has even order, it has exactly one subgroup of order $2$: the set of all elements such that $x^2=1$.






          share|cite|improve this answer























            up vote
            0
            down vote










            up vote
            0
            down vote









            Another way to say that there exists a primitive root modulo $p^k$ is to say that $U(p^k)$ is cyclic. Since it has even order, it has exactly one subgroup of order $2$: the set of all elements such that $x^2=1$.






            share|cite|improve this answer













            Another way to say that there exists a primitive root modulo $p^k$ is to say that $U(p^k)$ is cyclic. Since it has even order, it has exactly one subgroup of order $2$: the set of all elements such that $x^2=1$.







            share|cite|improve this answer













            share|cite|improve this answer



            share|cite|improve this answer











            answered Jul 14 at 20:31









            lhf

            156k9160367




            156k9160367




















                up vote
                0
                down vote













                Another approach using induction (inspired by Hensel’s lemma). Assume $p neq 2$. For $k=1$ the statement holds. Now if $k > 1$ and $a^2equiv 1 pmodp^k$ then also $a^2equiv 1 pmod p^k-1$. So by induction $a equiv pm 1 pmodp^k-1$, that is, $a = pm 1 + m p^k-1$ for some integer $m$. Then $$1 equiv a^2 = 1 pm 2 m p^k-1 + m^2 p^2k-2equiv 1 pm 2 m p^k-1 pmodp^k.$$ This means (since $p neq 2$) that $p mid m$. Then $a = pm 1 + m p^k-1equiv pm 1 pmodp^k$.






                share|cite|improve this answer

























                  up vote
                  0
                  down vote













                  Another approach using induction (inspired by Hensel’s lemma). Assume $p neq 2$. For $k=1$ the statement holds. Now if $k > 1$ and $a^2equiv 1 pmodp^k$ then also $a^2equiv 1 pmod p^k-1$. So by induction $a equiv pm 1 pmodp^k-1$, that is, $a = pm 1 + m p^k-1$ for some integer $m$. Then $$1 equiv a^2 = 1 pm 2 m p^k-1 + m^2 p^2k-2equiv 1 pm 2 m p^k-1 pmodp^k.$$ This means (since $p neq 2$) that $p mid m$. Then $a = pm 1 + m p^k-1equiv pm 1 pmodp^k$.






                  share|cite|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    Another approach using induction (inspired by Hensel’s lemma). Assume $p neq 2$. For $k=1$ the statement holds. Now if $k > 1$ and $a^2equiv 1 pmodp^k$ then also $a^2equiv 1 pmod p^k-1$. So by induction $a equiv pm 1 pmodp^k-1$, that is, $a = pm 1 + m p^k-1$ for some integer $m$. Then $$1 equiv a^2 = 1 pm 2 m p^k-1 + m^2 p^2k-2equiv 1 pm 2 m p^k-1 pmodp^k.$$ This means (since $p neq 2$) that $p mid m$. Then $a = pm 1 + m p^k-1equiv pm 1 pmodp^k$.






                    share|cite|improve this answer













                    Another approach using induction (inspired by Hensel’s lemma). Assume $p neq 2$. For $k=1$ the statement holds. Now if $k > 1$ and $a^2equiv 1 pmodp^k$ then also $a^2equiv 1 pmod p^k-1$. So by induction $a equiv pm 1 pmodp^k-1$, that is, $a = pm 1 + m p^k-1$ for some integer $m$. Then $$1 equiv a^2 = 1 pm 2 m p^k-1 + m^2 p^2k-2equiv 1 pm 2 m p^k-1 pmodp^k.$$ This means (since $p neq 2$) that $p mid m$. Then $a = pm 1 + m p^k-1equiv pm 1 pmodp^k$.







                    share|cite|improve this answer













                    share|cite|improve this answer



                    share|cite|improve this answer











                    answered Jul 14 at 20:56









                    WimC

                    23.7k22860




                    23.7k22860




















                        up vote
                        0
                        down vote













                        We know that $1$ and $-1$ are roots of $1bmod p^k$.



                        Let $g$ be a primitive root $bmod p^k$ and $m:=phi(p^k)$ be its order. Then considering $(g^i)^2$ with $iin [1..m]$ we note that only $i=m/2$ and $i=m$ give $(g^i)^2equiv 1 bmod p^k$. Thus there are only two roots of $1 bmod p^k$.






                        share|cite|improve this answer

























                          up vote
                          0
                          down vote













                          We know that $1$ and $-1$ are roots of $1bmod p^k$.



                          Let $g$ be a primitive root $bmod p^k$ and $m:=phi(p^k)$ be its order. Then considering $(g^i)^2$ with $iin [1..m]$ we note that only $i=m/2$ and $i=m$ give $(g^i)^2equiv 1 bmod p^k$. Thus there are only two roots of $1 bmod p^k$.






                          share|cite|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            We know that $1$ and $-1$ are roots of $1bmod p^k$.



                            Let $g$ be a primitive root $bmod p^k$ and $m:=phi(p^k)$ be its order. Then considering $(g^i)^2$ with $iin [1..m]$ we note that only $i=m/2$ and $i=m$ give $(g^i)^2equiv 1 bmod p^k$. Thus there are only two roots of $1 bmod p^k$.






                            share|cite|improve this answer













                            We know that $1$ and $-1$ are roots of $1bmod p^k$.



                            Let $g$ be a primitive root $bmod p^k$ and $m:=phi(p^k)$ be its order. Then considering $(g^i)^2$ with $iin [1..m]$ we note that only $i=m/2$ and $i=m$ give $(g^i)^2equiv 1 bmod p^k$. Thus there are only two roots of $1 bmod p^k$.







                            share|cite|improve this answer













                            share|cite|improve this answer



                            share|cite|improve this answer











                            answered Jul 14 at 21:59









                            Joffan

                            31.9k43169




                            31.9k43169






















                                 

                                draft saved


                                draft discarded


























                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2851910%2fnumber-of-square-roots-of-unity-modulo-a-prime-power%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                What is the equation of a 3D cone with generalised tilt?

                                Color the edges and diagonals of a regular polygon

                                Relationship between determinant of matrix and determinant of adjoint?