Classify the odd primes $q$ such that a NEGATIVE number is a quadratic residue $mod{q}$












1














Suppose we are given $y < -1$. I wish to classify all primes $q$ such that $y$ is a quadratic residue $pmod{q}$, i.e. such that there exists a number $x$ satisfying $$y equiv x^2 pmod{q}.$$



How would I go about doing this? I'm aware that if instead $y>1$ then I can write $y$ as a product of primes and use the law of quadratic reciprocity. However, this doesn't seem to be applicable if $y<-1$, as the Legendre/Jacobi symbol requires a positive number in the denominator, and since we do not know $q$, it seems (although I may be wrong) we cannot find a meaningful positive representative modulo $q$.










share|cite|improve this question


















  • 2




    You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
    – Calvin Lin
    May 13 '13 at 1:14










  • $left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
    – N. S.
    May 13 '13 at 1:15
















1














Suppose we are given $y < -1$. I wish to classify all primes $q$ such that $y$ is a quadratic residue $pmod{q}$, i.e. such that there exists a number $x$ satisfying $$y equiv x^2 pmod{q}.$$



How would I go about doing this? I'm aware that if instead $y>1$ then I can write $y$ as a product of primes and use the law of quadratic reciprocity. However, this doesn't seem to be applicable if $y<-1$, as the Legendre/Jacobi symbol requires a positive number in the denominator, and since we do not know $q$, it seems (although I may be wrong) we cannot find a meaningful positive representative modulo $q$.










share|cite|improve this question


















  • 2




    You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
    – Calvin Lin
    May 13 '13 at 1:14










  • $left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
    – N. S.
    May 13 '13 at 1:15














1












1








1







Suppose we are given $y < -1$. I wish to classify all primes $q$ such that $y$ is a quadratic residue $pmod{q}$, i.e. such that there exists a number $x$ satisfying $$y equiv x^2 pmod{q}.$$



How would I go about doing this? I'm aware that if instead $y>1$ then I can write $y$ as a product of primes and use the law of quadratic reciprocity. However, this doesn't seem to be applicable if $y<-1$, as the Legendre/Jacobi symbol requires a positive number in the denominator, and since we do not know $q$, it seems (although I may be wrong) we cannot find a meaningful positive representative modulo $q$.










share|cite|improve this question













Suppose we are given $y < -1$. I wish to classify all primes $q$ such that $y$ is a quadratic residue $pmod{q}$, i.e. such that there exists a number $x$ satisfying $$y equiv x^2 pmod{q}.$$



How would I go about doing this? I'm aware that if instead $y>1$ then I can write $y$ as a product of primes and use the law of quadratic reciprocity. However, this doesn't seem to be applicable if $y<-1$, as the Legendre/Jacobi symbol requires a positive number in the denominator, and since we do not know $q$, it seems (although I may be wrong) we cannot find a meaningful positive representative modulo $q$.







elementary-number-theory prime-numbers






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked May 13 '13 at 1:10









Damien

153




153








  • 2




    You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
    – Calvin Lin
    May 13 '13 at 1:14










  • $left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
    – N. S.
    May 13 '13 at 1:15














  • 2




    You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
    – Calvin Lin
    May 13 '13 at 1:14










  • $left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
    – N. S.
    May 13 '13 at 1:15








2




2




You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
– Calvin Lin
May 13 '13 at 1:14




You can add $q$ to $y$ as many times as needed to make it positive. Also, you can calculate the Legendre symbol value of $frac{-1}{q}$.
– Calvin Lin
May 13 '13 at 1:14












$left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
– N. S.
May 13 '13 at 1:15




$left( frac{-1}{q} right)=(-1)^frac{q-1}{2}$ for odd $q$... You would need to study separately what happens when $q$ is even and prime ;)
– N. S.
May 13 '13 at 1:15










3 Answers
3






active

oldest

votes


















1














You can take out the $-1$ using the multiplicativity of the Legendre symbol, and use the first supplementary law:
$$left(frac{-a}{q}right)=left(frac{-1}{q}right)left(frac{a}{q}right)=(-1)^{(q-1)/2}left(frac{a}{q}right)$$






share|cite|improve this answer





















  • Gosh, I feel silly! Thank you!
    – Damien
    May 13 '13 at 1:33



















0














There are $frac{p-1}{2}$ quadratic residues between $1$ and $p-1$. Let $x$ be any of these, and let $y=x-17p$. Since $x$ is a quadratic residue of $p$, so is $y$.






share|cite|improve this answer





























    0














    Yet another easy problem: For some integer $p$, pick any integer $x$ and compute $a=x^2pmod p$. $-p+a$ is a negative number that is a quadratic residue $pmod p$. In fact, $pk+a$ is a quadratic residue that is a negative number as long as $k$ is negative.






    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',
      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%2f389978%2fclassify-the-odd-primes-q-such-that-a-negative-number-is-a-quadratic-residue%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      You can take out the $-1$ using the multiplicativity of the Legendre symbol, and use the first supplementary law:
      $$left(frac{-a}{q}right)=left(frac{-1}{q}right)left(frac{a}{q}right)=(-1)^{(q-1)/2}left(frac{a}{q}right)$$






      share|cite|improve this answer





















      • Gosh, I feel silly! Thank you!
        – Damien
        May 13 '13 at 1:33
















      1














      You can take out the $-1$ using the multiplicativity of the Legendre symbol, and use the first supplementary law:
      $$left(frac{-a}{q}right)=left(frac{-1}{q}right)left(frac{a}{q}right)=(-1)^{(q-1)/2}left(frac{a}{q}right)$$






      share|cite|improve this answer





















      • Gosh, I feel silly! Thank you!
        – Damien
        May 13 '13 at 1:33














      1












      1








      1






      You can take out the $-1$ using the multiplicativity of the Legendre symbol, and use the first supplementary law:
      $$left(frac{-a}{q}right)=left(frac{-1}{q}right)left(frac{a}{q}right)=(-1)^{(q-1)/2}left(frac{a}{q}right)$$






      share|cite|improve this answer












      You can take out the $-1$ using the multiplicativity of the Legendre symbol, and use the first supplementary law:
      $$left(frac{-a}{q}right)=left(frac{-1}{q}right)left(frac{a}{q}right)=(-1)^{(q-1)/2}left(frac{a}{q}right)$$







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered May 13 '13 at 1:14









      Zev Chonoles

      109k16225422




      109k16225422












      • Gosh, I feel silly! Thank you!
        – Damien
        May 13 '13 at 1:33


















      • Gosh, I feel silly! Thank you!
        – Damien
        May 13 '13 at 1:33
















      Gosh, I feel silly! Thank you!
      – Damien
      May 13 '13 at 1:33




      Gosh, I feel silly! Thank you!
      – Damien
      May 13 '13 at 1:33











      0














      There are $frac{p-1}{2}$ quadratic residues between $1$ and $p-1$. Let $x$ be any of these, and let $y=x-17p$. Since $x$ is a quadratic residue of $p$, so is $y$.






      share|cite|improve this answer


























        0














        There are $frac{p-1}{2}$ quadratic residues between $1$ and $p-1$. Let $x$ be any of these, and let $y=x-17p$. Since $x$ is a quadratic residue of $p$, so is $y$.






        share|cite|improve this answer
























          0












          0








          0






          There are $frac{p-1}{2}$ quadratic residues between $1$ and $p-1$. Let $x$ be any of these, and let $y=x-17p$. Since $x$ is a quadratic residue of $p$, so is $y$.






          share|cite|improve this answer












          There are $frac{p-1}{2}$ quadratic residues between $1$ and $p-1$. Let $x$ be any of these, and let $y=x-17p$. Since $x$ is a quadratic residue of $p$, so is $y$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered May 13 '13 at 4:16









          André Nicolas

          451k36421805




          451k36421805























              0














              Yet another easy problem: For some integer $p$, pick any integer $x$ and compute $a=x^2pmod p$. $-p+a$ is a negative number that is a quadratic residue $pmod p$. In fact, $pk+a$ is a quadratic residue that is a negative number as long as $k$ is negative.






              share|cite|improve this answer


























                0














                Yet another easy problem: For some integer $p$, pick any integer $x$ and compute $a=x^2pmod p$. $-p+a$ is a negative number that is a quadratic residue $pmod p$. In fact, $pk+a$ is a quadratic residue that is a negative number as long as $k$ is negative.






                share|cite|improve this answer
























                  0












                  0








                  0






                  Yet another easy problem: For some integer $p$, pick any integer $x$ and compute $a=x^2pmod p$. $-p+a$ is a negative number that is a quadratic residue $pmod p$. In fact, $pk+a$ is a quadratic residue that is a negative number as long as $k$ is negative.






                  share|cite|improve this answer












                  Yet another easy problem: For some integer $p$, pick any integer $x$ and compute $a=x^2pmod p$. $-p+a$ is a negative number that is a quadratic residue $pmod p$. In fact, $pk+a$ is a quadratic residue that is a negative number as long as $k$ is negative.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Nov 20 '18 at 1:57









                  J. Linne

                  846315




                  846315






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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.


                      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%2f389978%2fclassify-the-odd-primes-q-such-that-a-negative-number-is-a-quadratic-residue%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

                      MongoDB - Not Authorized To Execute Command

                      in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

                      How to fix TextFormField cause rebuild widget in Flutter