When $q$ is prime and a Wieferich prime $p$ divides $ M=2^q-1 $ . Why can we conclude $ p^2mid M $?

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











up vote
3
down vote

favorite












Here : https://en.wikipedia.org/wiki/Wieferich_prime



I came across the following claim :




A prime divisor $p$ of $M_q$, where $q$ is prime, is a Wieferich prime if and only if $p^2mid M_q$.




The part, I cannot prove : If $M=2^q-1$ , $q$ prime and $pmid M$ is a prime factor of $M$ satisfying $2^p-1equiv 1mod p^2$ (in other words, $p$ is a Wieferich-prime) , then we also have $p^2mid M$ or alternatively formulated : $2^qequiv 1mod p^2$



I only could conclude that $ord_2(p^2)mid p-1$ , but not $ord_2(p^2)=q$ as claimed. What do I miss ? How can I prove this part ?







share|cite|improve this question
























    up vote
    3
    down vote

    favorite












    Here : https://en.wikipedia.org/wiki/Wieferich_prime



    I came across the following claim :




    A prime divisor $p$ of $M_q$, where $q$ is prime, is a Wieferich prime if and only if $p^2mid M_q$.




    The part, I cannot prove : If $M=2^q-1$ , $q$ prime and $pmid M$ is a prime factor of $M$ satisfying $2^p-1equiv 1mod p^2$ (in other words, $p$ is a Wieferich-prime) , then we also have $p^2mid M$ or alternatively formulated : $2^qequiv 1mod p^2$



    I only could conclude that $ord_2(p^2)mid p-1$ , but not $ord_2(p^2)=q$ as claimed. What do I miss ? How can I prove this part ?







    share|cite|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      Here : https://en.wikipedia.org/wiki/Wieferich_prime



      I came across the following claim :




      A prime divisor $p$ of $M_q$, where $q$ is prime, is a Wieferich prime if and only if $p^2mid M_q$.




      The part, I cannot prove : If $M=2^q-1$ , $q$ prime and $pmid M$ is a prime factor of $M$ satisfying $2^p-1equiv 1mod p^2$ (in other words, $p$ is a Wieferich-prime) , then we also have $p^2mid M$ or alternatively formulated : $2^qequiv 1mod p^2$



      I only could conclude that $ord_2(p^2)mid p-1$ , but not $ord_2(p^2)=q$ as claimed. What do I miss ? How can I prove this part ?







      share|cite|improve this question












      Here : https://en.wikipedia.org/wiki/Wieferich_prime



      I came across the following claim :




      A prime divisor $p$ of $M_q$, where $q$ is prime, is a Wieferich prime if and only if $p^2mid M_q$.




      The part, I cannot prove : If $M=2^q-1$ , $q$ prime and $pmid M$ is a prime factor of $M$ satisfying $2^p-1equiv 1mod p^2$ (in other words, $p$ is a Wieferich-prime) , then we also have $p^2mid M$ or alternatively formulated : $2^qequiv 1mod p^2$



      I only could conclude that $ord_2(p^2)mid p-1$ , but not $ord_2(p^2)=q$ as claimed. What do I miss ? How can I prove this part ?









      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Aug 22 at 7:27









      Peter

      45.4k1039119




      45.4k1039119




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Obviously, $q mid p-1$. Write $p-1=qcdot a$.

          Then $p^2 mid 2^qcdot a-1=(2^q-1)(2^q(a-1)+2^q(a-2)+ldots +1)$.

          Observe now that the second parentheses is $equiv apmodp$ since each summand is $equiv 1pmodp$.

          Observe also that $a<p$.

          This shows that $p nmid(2^q(a-1)+2^q(a-2)+ldots +1)$ which means that the whole $p^2$ divides the first parentheses and so $p^2 mid 2^q-1$.

          EDIT: $p-1=qcdot age a$. This means that $ale p-1<p$ and hence $a<p$.






          share|cite|improve this answer


















          • 1




            Superb answer (+1 and accept) !
            – Peter
            Aug 22 at 8:47






          • 1




            Yes, $a<p$ is obvious which I realized shortly after my comment.
            – Peter
            Aug 22 at 8:50

















          up vote
          1
          down vote













          We start with the observation that $a^m-b^m$ is divisible $a^n-b^n$ if $nmid m$.



          From this, one deduces there is an algebraic factor $A_n$ that divides $a^m-b^m$ exactly when $nmid m$.



          If prime $p$ divides some $a^q-b^q$, but for no value less than $q$, then $p mid A_q$, since this likewise does not divide any earlier $a^n-b^n$.



          We now suppose that $q$ is a proper divisor of $p-1 = qr$ (say). Then $(a^p-1-b^p-1)$ is the product of all $A_d, dmid p-1$, and the same holds true for $q$. The result of the division of $(a^p-1-b^p-1)/(a^q-b^q)$ is the sum of $r$ terms, all having a value $1pmodp$. This is the 'casting-out nines rule', eg $1111 = 4 pmod9$.



          So if $p mid A_qr$, then $p mid r$, and specifically, $r$ is $p^x$.



          Since we can exclude that $p$ can not divide $p-1$, then if $p^2$ divides some $a^q-b^q$ and $p^2$ divides some $a^p-1-b^p-1$, and thus $p^2 mid A_q$.



          QED






          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%2f2890726%2fwhen-q-is-prime-and-a-wieferich-prime-p-divides-m-2q-1-why-can-we-c%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote



            accepted










            Obviously, $q mid p-1$. Write $p-1=qcdot a$.

            Then $p^2 mid 2^qcdot a-1=(2^q-1)(2^q(a-1)+2^q(a-2)+ldots +1)$.

            Observe now that the second parentheses is $equiv apmodp$ since each summand is $equiv 1pmodp$.

            Observe also that $a<p$.

            This shows that $p nmid(2^q(a-1)+2^q(a-2)+ldots +1)$ which means that the whole $p^2$ divides the first parentheses and so $p^2 mid 2^q-1$.

            EDIT: $p-1=qcdot age a$. This means that $ale p-1<p$ and hence $a<p$.






            share|cite|improve this answer


















            • 1




              Superb answer (+1 and accept) !
              – Peter
              Aug 22 at 8:47






            • 1




              Yes, $a<p$ is obvious which I realized shortly after my comment.
              – Peter
              Aug 22 at 8:50














            up vote
            4
            down vote



            accepted










            Obviously, $q mid p-1$. Write $p-1=qcdot a$.

            Then $p^2 mid 2^qcdot a-1=(2^q-1)(2^q(a-1)+2^q(a-2)+ldots +1)$.

            Observe now that the second parentheses is $equiv apmodp$ since each summand is $equiv 1pmodp$.

            Observe also that $a<p$.

            This shows that $p nmid(2^q(a-1)+2^q(a-2)+ldots +1)$ which means that the whole $p^2$ divides the first parentheses and so $p^2 mid 2^q-1$.

            EDIT: $p-1=qcdot age a$. This means that $ale p-1<p$ and hence $a<p$.






            share|cite|improve this answer


















            • 1




              Superb answer (+1 and accept) !
              – Peter
              Aug 22 at 8:47






            • 1




              Yes, $a<p$ is obvious which I realized shortly after my comment.
              – Peter
              Aug 22 at 8:50












            up vote
            4
            down vote



            accepted







            up vote
            4
            down vote



            accepted






            Obviously, $q mid p-1$. Write $p-1=qcdot a$.

            Then $p^2 mid 2^qcdot a-1=(2^q-1)(2^q(a-1)+2^q(a-2)+ldots +1)$.

            Observe now that the second parentheses is $equiv apmodp$ since each summand is $equiv 1pmodp$.

            Observe also that $a<p$.

            This shows that $p nmid(2^q(a-1)+2^q(a-2)+ldots +1)$ which means that the whole $p^2$ divides the first parentheses and so $p^2 mid 2^q-1$.

            EDIT: $p-1=qcdot age a$. This means that $ale p-1<p$ and hence $a<p$.






            share|cite|improve this answer














            Obviously, $q mid p-1$. Write $p-1=qcdot a$.

            Then $p^2 mid 2^qcdot a-1=(2^q-1)(2^q(a-1)+2^q(a-2)+ldots +1)$.

            Observe now that the second parentheses is $equiv apmodp$ since each summand is $equiv 1pmodp$.

            Observe also that $a<p$.

            This shows that $p nmid(2^q(a-1)+2^q(a-2)+ldots +1)$ which means that the whole $p^2$ divides the first parentheses and so $p^2 mid 2^q-1$.

            EDIT: $p-1=qcdot age a$. This means that $ale p-1<p$ and hence $a<p$.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 22 at 8:48

























            answered Aug 22 at 8:31









            Konstantinos Gaitanas

            6,66931838




            6,66931838







            • 1




              Superb answer (+1 and accept) !
              – Peter
              Aug 22 at 8:47






            • 1




              Yes, $a<p$ is obvious which I realized shortly after my comment.
              – Peter
              Aug 22 at 8:50












            • 1




              Superb answer (+1 and accept) !
              – Peter
              Aug 22 at 8:47






            • 1




              Yes, $a<p$ is obvious which I realized shortly after my comment.
              – Peter
              Aug 22 at 8:50







            1




            1




            Superb answer (+1 and accept) !
            – Peter
            Aug 22 at 8:47




            Superb answer (+1 and accept) !
            – Peter
            Aug 22 at 8:47




            1




            1




            Yes, $a<p$ is obvious which I realized shortly after my comment.
            – Peter
            Aug 22 at 8:50




            Yes, $a<p$ is obvious which I realized shortly after my comment.
            – Peter
            Aug 22 at 8:50










            up vote
            1
            down vote













            We start with the observation that $a^m-b^m$ is divisible $a^n-b^n$ if $nmid m$.



            From this, one deduces there is an algebraic factor $A_n$ that divides $a^m-b^m$ exactly when $nmid m$.



            If prime $p$ divides some $a^q-b^q$, but for no value less than $q$, then $p mid A_q$, since this likewise does not divide any earlier $a^n-b^n$.



            We now suppose that $q$ is a proper divisor of $p-1 = qr$ (say). Then $(a^p-1-b^p-1)$ is the product of all $A_d, dmid p-1$, and the same holds true for $q$. The result of the division of $(a^p-1-b^p-1)/(a^q-b^q)$ is the sum of $r$ terms, all having a value $1pmodp$. This is the 'casting-out nines rule', eg $1111 = 4 pmod9$.



            So if $p mid A_qr$, then $p mid r$, and specifically, $r$ is $p^x$.



            Since we can exclude that $p$ can not divide $p-1$, then if $p^2$ divides some $a^q-b^q$ and $p^2$ divides some $a^p-1-b^p-1$, and thus $p^2 mid A_q$.



            QED






            share|cite|improve this answer


























              up vote
              1
              down vote













              We start with the observation that $a^m-b^m$ is divisible $a^n-b^n$ if $nmid m$.



              From this, one deduces there is an algebraic factor $A_n$ that divides $a^m-b^m$ exactly when $nmid m$.



              If prime $p$ divides some $a^q-b^q$, but for no value less than $q$, then $p mid A_q$, since this likewise does not divide any earlier $a^n-b^n$.



              We now suppose that $q$ is a proper divisor of $p-1 = qr$ (say). Then $(a^p-1-b^p-1)$ is the product of all $A_d, dmid p-1$, and the same holds true for $q$. The result of the division of $(a^p-1-b^p-1)/(a^q-b^q)$ is the sum of $r$ terms, all having a value $1pmodp$. This is the 'casting-out nines rule', eg $1111 = 4 pmod9$.



              So if $p mid A_qr$, then $p mid r$, and specifically, $r$ is $p^x$.



              Since we can exclude that $p$ can not divide $p-1$, then if $p^2$ divides some $a^q-b^q$ and $p^2$ divides some $a^p-1-b^p-1$, and thus $p^2 mid A_q$.



              QED






              share|cite|improve this answer
























                up vote
                1
                down vote










                up vote
                1
                down vote









                We start with the observation that $a^m-b^m$ is divisible $a^n-b^n$ if $nmid m$.



                From this, one deduces there is an algebraic factor $A_n$ that divides $a^m-b^m$ exactly when $nmid m$.



                If prime $p$ divides some $a^q-b^q$, but for no value less than $q$, then $p mid A_q$, since this likewise does not divide any earlier $a^n-b^n$.



                We now suppose that $q$ is a proper divisor of $p-1 = qr$ (say). Then $(a^p-1-b^p-1)$ is the product of all $A_d, dmid p-1$, and the same holds true for $q$. The result of the division of $(a^p-1-b^p-1)/(a^q-b^q)$ is the sum of $r$ terms, all having a value $1pmodp$. This is the 'casting-out nines rule', eg $1111 = 4 pmod9$.



                So if $p mid A_qr$, then $p mid r$, and specifically, $r$ is $p^x$.



                Since we can exclude that $p$ can not divide $p-1$, then if $p^2$ divides some $a^q-b^q$ and $p^2$ divides some $a^p-1-b^p-1$, and thus $p^2 mid A_q$.



                QED






                share|cite|improve this answer














                We start with the observation that $a^m-b^m$ is divisible $a^n-b^n$ if $nmid m$.



                From this, one deduces there is an algebraic factor $A_n$ that divides $a^m-b^m$ exactly when $nmid m$.



                If prime $p$ divides some $a^q-b^q$, but for no value less than $q$, then $p mid A_q$, since this likewise does not divide any earlier $a^n-b^n$.



                We now suppose that $q$ is a proper divisor of $p-1 = qr$ (say). Then $(a^p-1-b^p-1)$ is the product of all $A_d, dmid p-1$, and the same holds true for $q$. The result of the division of $(a^p-1-b^p-1)/(a^q-b^q)$ is the sum of $r$ terms, all having a value $1pmodp$. This is the 'casting-out nines rule', eg $1111 = 4 pmod9$.



                So if $p mid A_qr$, then $p mid r$, and specifically, $r$ is $p^x$.



                Since we can exclude that $p$ can not divide $p-1$, then if $p^2$ divides some $a^q-b^q$ and $p^2$ divides some $a^p-1-b^p-1$, and thus $p^2 mid A_q$.



                QED







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Aug 23 at 2:04

























                answered Aug 22 at 8:11









                wendy.krieger

                5,42711426




                5,42711426






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2890726%2fwhen-q-is-prime-and-a-wieferich-prime-p-divides-m-2q-1-why-can-we-c%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    How to combine Bézier curves to a surface?

                    Mutual Information Always Non-negative

                    Why am i infinitely getting the same tweet with the Twitter Search API?