How to evaluate $ prod_1le i <jlefracp-12j^2-i^2 pmod p$

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











up vote
2
down vote

favorite
2












While doing my research on elementary number theory, I came across the following problem which I cannot overcome: Let $p$ be an odd prime, $g$ be any primitive of $p$. Define
$$f(p)=prod_1le i <jlefracp-12j^2-i^2pmod p$$ and
$$h(p,g)=prod_1le i <jlefracp-12g^2j-g^2i pmod p .$$ What I want to know is the relationship between $f(p)$ and $h(p,g)$. I calculated the first one hundred primes and find that either $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $. For example $f(17)=4 $ , $h(17,5)=13 $ and $f(73)=h(73,11)=46 $. I believe that this is true for all primes $p$ and all primitives $g$.
Now my questions are :



  1. Does it true that we always have $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $


  2. Is it possible to evaluate $f(p)$ and $h(p,g)$ and find the condition when does $f(p)+h(p,g)=p $ and $f(p)=h(p,g) $



    I am eager to know any answer, link, or hints to this problem, thank you!!








share|cite|improve this question

























    up vote
    2
    down vote

    favorite
    2












    While doing my research on elementary number theory, I came across the following problem which I cannot overcome: Let $p$ be an odd prime, $g$ be any primitive of $p$. Define
    $$f(p)=prod_1le i <jlefracp-12j^2-i^2pmod p$$ and
    $$h(p,g)=prod_1le i <jlefracp-12g^2j-g^2i pmod p .$$ What I want to know is the relationship between $f(p)$ and $h(p,g)$. I calculated the first one hundred primes and find that either $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $. For example $f(17)=4 $ , $h(17,5)=13 $ and $f(73)=h(73,11)=46 $. I believe that this is true for all primes $p$ and all primitives $g$.
    Now my questions are :



    1. Does it true that we always have $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $


    2. Is it possible to evaluate $f(p)$ and $h(p,g)$ and find the condition when does $f(p)+h(p,g)=p $ and $f(p)=h(p,g) $



      I am eager to know any answer, link, or hints to this problem, thank you!!








    share|cite|improve this question























      up vote
      2
      down vote

      favorite
      2









      up vote
      2
      down vote

      favorite
      2






      2





      While doing my research on elementary number theory, I came across the following problem which I cannot overcome: Let $p$ be an odd prime, $g$ be any primitive of $p$. Define
      $$f(p)=prod_1le i <jlefracp-12j^2-i^2pmod p$$ and
      $$h(p,g)=prod_1le i <jlefracp-12g^2j-g^2i pmod p .$$ What I want to know is the relationship between $f(p)$ and $h(p,g)$. I calculated the first one hundred primes and find that either $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $. For example $f(17)=4 $ , $h(17,5)=13 $ and $f(73)=h(73,11)=46 $. I believe that this is true for all primes $p$ and all primitives $g$.
      Now my questions are :



      1. Does it true that we always have $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $


      2. Is it possible to evaluate $f(p)$ and $h(p,g)$ and find the condition when does $f(p)+h(p,g)=p $ and $f(p)=h(p,g) $



        I am eager to know any answer, link, or hints to this problem, thank you!!








      share|cite|improve this question













      While doing my research on elementary number theory, I came across the following problem which I cannot overcome: Let $p$ be an odd prime, $g$ be any primitive of $p$. Define
      $$f(p)=prod_1le i <jlefracp-12j^2-i^2pmod p$$ and
      $$h(p,g)=prod_1le i <jlefracp-12g^2j-g^2i pmod p .$$ What I want to know is the relationship between $f(p)$ and $h(p,g)$. I calculated the first one hundred primes and find that either $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $. For example $f(17)=4 $ , $h(17,5)=13 $ and $f(73)=h(73,11)=46 $. I believe that this is true for all primes $p$ and all primitives $g$.
      Now my questions are :



      1. Does it true that we always have $f(p)+h(p,g)=p $ or $f(p)=h(p,g) $


      2. Is it possible to evaluate $f(p)$ and $h(p,g)$ and find the condition when does $f(p)+h(p,g)=p $ and $f(p)=h(p,g) $



        I am eager to know any answer, link, or hints to this problem, thank you!!










      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 27 at 15:24
























      asked Jul 27 at 14:44









      王李远

      18813




      18813




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          I presume you are doing the calculations modulo $p$. In the first case
          the admissible $i^2$ are the quadratic residues modulo $p$.
          In the second case
          the admissible $g_2i$ are also the quadratic residues modulo $p$.



          Both products have the form $prod_1le i<jle m(a_j-a_i)$
          where $a_1,ldots,a_m$ ($m=frac12(p-1)$) are the distinct quadratic
          residues modulo $p$. But the ordering of the $a_i$ differs. If
          the first product is $prod_1le i<jle m(a_j-a_i)$
          and the second is $prod_1le i<jle m(b_j-b_i)$, then
          $b_j=a_tau(j)$ for some permutation $tauin S_m$ and then
          $prod_1le i<jle m(b_j-b_i)=textsgn(tau)
          prod_1le i<jle m(a_j-a_i)$ (at least modulo $p$).
          Here $textsgn(tau)$ is the sign of the permutation $tau$.






          share|cite|improve this answer





















          • yes , you are right. I omitted "mod p". Now I have corrected that
            – çŽ‹æŽè¿œ
            Jul 27 at 15:26










          • thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:32










          • @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
            – barto
            Jul 27 at 15:44










          • @barto Thanks for you advice.I will try to generalize that method
            – çŽ‹æŽè¿œ
            Jul 27 at 15:55

















          up vote
          0
          down vote













          We are working in the field $F=Bbb F_p$ for a prime $p$.
          Let $g$ be a multiplicative generator, a generator of the cyclic group
          $(Bbb F_p^times, cdot)$. Then $g$ is also generating the $-1$ in the field, and of course $g^p-1=1$, $g^(p-1)/2=-1$.



          Now let us consider the set $S$ of the elements $1,2,dots,(p-1)/2$ considered in $F$. These are representatives of $F^times/pm 1$. The class of $k$ is covered by $k, p-k$. Taking the squares, we obtain a list of all squares in $F$.



          And also the set $T$ of the elements
          $g^1,g^2,dots,g^(p-1)/2$ considered in $F$.
          These are also representatives of $F^times/pm 1$.
          The class of $k=g^u$ (for a suitable unique $u$) is covered by
          $k=g^u, -k=g^u+(p-1)/2$. (And $u$, $u+(p-1)/2$ are not both in the list.)



          Taking squares, we have as sets the equality $ j^2 : 1le jle (p-1)/2 = g^u : 1 le ule (p-1)/2 $, but for the products in the OP we also have to use the orderings of the sets, as inherited by the ones of the parametrizing indices $j$, respectively $u$.
          The products differ then by the sign of the reordering.






          share|cite|improve this answer





















          • ... oh, same as above, i'm definitively too slow in typing.
            – dan_fulea
            Jul 27 at 15:40










          • any way , thanks for your answer, which is also useful to me!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:57










          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%2f2864445%2fhow-to-evaluate-prod-1-le-i-j-le-fracp-12j2-i2-pmod-p%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
          1
          down vote













          I presume you are doing the calculations modulo $p$. In the first case
          the admissible $i^2$ are the quadratic residues modulo $p$.
          In the second case
          the admissible $g_2i$ are also the quadratic residues modulo $p$.



          Both products have the form $prod_1le i<jle m(a_j-a_i)$
          where $a_1,ldots,a_m$ ($m=frac12(p-1)$) are the distinct quadratic
          residues modulo $p$. But the ordering of the $a_i$ differs. If
          the first product is $prod_1le i<jle m(a_j-a_i)$
          and the second is $prod_1le i<jle m(b_j-b_i)$, then
          $b_j=a_tau(j)$ for some permutation $tauin S_m$ and then
          $prod_1le i<jle m(b_j-b_i)=textsgn(tau)
          prod_1le i<jle m(a_j-a_i)$ (at least modulo $p$).
          Here $textsgn(tau)$ is the sign of the permutation $tau$.






          share|cite|improve this answer





















          • yes , you are right. I omitted "mod p". Now I have corrected that
            – çŽ‹æŽè¿œ
            Jul 27 at 15:26










          • thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:32










          • @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
            – barto
            Jul 27 at 15:44










          • @barto Thanks for you advice.I will try to generalize that method
            – çŽ‹æŽè¿œ
            Jul 27 at 15:55














          up vote
          1
          down vote













          I presume you are doing the calculations modulo $p$. In the first case
          the admissible $i^2$ are the quadratic residues modulo $p$.
          In the second case
          the admissible $g_2i$ are also the quadratic residues modulo $p$.



          Both products have the form $prod_1le i<jle m(a_j-a_i)$
          where $a_1,ldots,a_m$ ($m=frac12(p-1)$) are the distinct quadratic
          residues modulo $p$. But the ordering of the $a_i$ differs. If
          the first product is $prod_1le i<jle m(a_j-a_i)$
          and the second is $prod_1le i<jle m(b_j-b_i)$, then
          $b_j=a_tau(j)$ for some permutation $tauin S_m$ and then
          $prod_1le i<jle m(b_j-b_i)=textsgn(tau)
          prod_1le i<jle m(a_j-a_i)$ (at least modulo $p$).
          Here $textsgn(tau)$ is the sign of the permutation $tau$.






          share|cite|improve this answer





















          • yes , you are right. I omitted "mod p". Now I have corrected that
            – çŽ‹æŽè¿œ
            Jul 27 at 15:26










          • thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:32










          • @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
            – barto
            Jul 27 at 15:44










          • @barto Thanks for you advice.I will try to generalize that method
            – çŽ‹æŽè¿œ
            Jul 27 at 15:55












          up vote
          1
          down vote










          up vote
          1
          down vote









          I presume you are doing the calculations modulo $p$. In the first case
          the admissible $i^2$ are the quadratic residues modulo $p$.
          In the second case
          the admissible $g_2i$ are also the quadratic residues modulo $p$.



          Both products have the form $prod_1le i<jle m(a_j-a_i)$
          where $a_1,ldots,a_m$ ($m=frac12(p-1)$) are the distinct quadratic
          residues modulo $p$. But the ordering of the $a_i$ differs. If
          the first product is $prod_1le i<jle m(a_j-a_i)$
          and the second is $prod_1le i<jle m(b_j-b_i)$, then
          $b_j=a_tau(j)$ for some permutation $tauin S_m$ and then
          $prod_1le i<jle m(b_j-b_i)=textsgn(tau)
          prod_1le i<jle m(a_j-a_i)$ (at least modulo $p$).
          Here $textsgn(tau)$ is the sign of the permutation $tau$.






          share|cite|improve this answer













          I presume you are doing the calculations modulo $p$. In the first case
          the admissible $i^2$ are the quadratic residues modulo $p$.
          In the second case
          the admissible $g_2i$ are also the quadratic residues modulo $p$.



          Both products have the form $prod_1le i<jle m(a_j-a_i)$
          where $a_1,ldots,a_m$ ($m=frac12(p-1)$) are the distinct quadratic
          residues modulo $p$. But the ordering of the $a_i$ differs. If
          the first product is $prod_1le i<jle m(a_j-a_i)$
          and the second is $prod_1le i<jle m(b_j-b_i)$, then
          $b_j=a_tau(j)$ for some permutation $tauin S_m$ and then
          $prod_1le i<jle m(b_j-b_i)=textsgn(tau)
          prod_1le i<jle m(a_j-a_i)$ (at least modulo $p$).
          Here $textsgn(tau)$ is the sign of the permutation $tau$.







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 27 at 15:15









          Lord Shark the Unknown

          84.6k950111




          84.6k950111











          • yes , you are right. I omitted "mod p". Now I have corrected that
            – çŽ‹æŽè¿œ
            Jul 27 at 15:26










          • thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:32










          • @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
            – barto
            Jul 27 at 15:44










          • @barto Thanks for you advice.I will try to generalize that method
            – çŽ‹æŽè¿œ
            Jul 27 at 15:55
















          • yes , you are right. I omitted "mod p". Now I have corrected that
            – çŽ‹æŽè¿œ
            Jul 27 at 15:26










          • thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:32










          • @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
            – barto
            Jul 27 at 15:44










          • @barto Thanks for you advice.I will try to generalize that method
            – çŽ‹æŽè¿œ
            Jul 27 at 15:55















          yes , you are right. I omitted "mod p". Now I have corrected that
          – çŽ‹æŽè¿œ
          Jul 27 at 15:26




          yes , you are right. I omitted "mod p". Now I have corrected that
          – çŽ‹æŽè¿œ
          Jul 27 at 15:26












          thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
          – çŽ‹æŽè¿œ
          Jul 27 at 15:32




          thank you very very much! Can you determine the signature of $tau$? I am waiting for you answer!!!
          – çŽ‹æŽè¿œ
          Jul 27 at 15:32












          @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
          – barto
          Jul 27 at 15:44




          @王李远 You can try to generalize the result from this question: mathoverflow.net/questions/302865
          – barto
          Jul 27 at 15:44












          @barto Thanks for you advice.I will try to generalize that method
          – çŽ‹æŽè¿œ
          Jul 27 at 15:55




          @barto Thanks for you advice.I will try to generalize that method
          – çŽ‹æŽè¿œ
          Jul 27 at 15:55










          up vote
          0
          down vote













          We are working in the field $F=Bbb F_p$ for a prime $p$.
          Let $g$ be a multiplicative generator, a generator of the cyclic group
          $(Bbb F_p^times, cdot)$. Then $g$ is also generating the $-1$ in the field, and of course $g^p-1=1$, $g^(p-1)/2=-1$.



          Now let us consider the set $S$ of the elements $1,2,dots,(p-1)/2$ considered in $F$. These are representatives of $F^times/pm 1$. The class of $k$ is covered by $k, p-k$. Taking the squares, we obtain a list of all squares in $F$.



          And also the set $T$ of the elements
          $g^1,g^2,dots,g^(p-1)/2$ considered in $F$.
          These are also representatives of $F^times/pm 1$.
          The class of $k=g^u$ (for a suitable unique $u$) is covered by
          $k=g^u, -k=g^u+(p-1)/2$. (And $u$, $u+(p-1)/2$ are not both in the list.)



          Taking squares, we have as sets the equality $ j^2 : 1le jle (p-1)/2 = g^u : 1 le ule (p-1)/2 $, but for the products in the OP we also have to use the orderings of the sets, as inherited by the ones of the parametrizing indices $j$, respectively $u$.
          The products differ then by the sign of the reordering.






          share|cite|improve this answer





















          • ... oh, same as above, i'm definitively too slow in typing.
            – dan_fulea
            Jul 27 at 15:40










          • any way , thanks for your answer, which is also useful to me!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:57














          up vote
          0
          down vote













          We are working in the field $F=Bbb F_p$ for a prime $p$.
          Let $g$ be a multiplicative generator, a generator of the cyclic group
          $(Bbb F_p^times, cdot)$. Then $g$ is also generating the $-1$ in the field, and of course $g^p-1=1$, $g^(p-1)/2=-1$.



          Now let us consider the set $S$ of the elements $1,2,dots,(p-1)/2$ considered in $F$. These are representatives of $F^times/pm 1$. The class of $k$ is covered by $k, p-k$. Taking the squares, we obtain a list of all squares in $F$.



          And also the set $T$ of the elements
          $g^1,g^2,dots,g^(p-1)/2$ considered in $F$.
          These are also representatives of $F^times/pm 1$.
          The class of $k=g^u$ (for a suitable unique $u$) is covered by
          $k=g^u, -k=g^u+(p-1)/2$. (And $u$, $u+(p-1)/2$ are not both in the list.)



          Taking squares, we have as sets the equality $ j^2 : 1le jle (p-1)/2 = g^u : 1 le ule (p-1)/2 $, but for the products in the OP we also have to use the orderings of the sets, as inherited by the ones of the parametrizing indices $j$, respectively $u$.
          The products differ then by the sign of the reordering.






          share|cite|improve this answer





















          • ... oh, same as above, i'm definitively too slow in typing.
            – dan_fulea
            Jul 27 at 15:40










          • any way , thanks for your answer, which is also useful to me!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:57












          up vote
          0
          down vote










          up vote
          0
          down vote









          We are working in the field $F=Bbb F_p$ for a prime $p$.
          Let $g$ be a multiplicative generator, a generator of the cyclic group
          $(Bbb F_p^times, cdot)$. Then $g$ is also generating the $-1$ in the field, and of course $g^p-1=1$, $g^(p-1)/2=-1$.



          Now let us consider the set $S$ of the elements $1,2,dots,(p-1)/2$ considered in $F$. These are representatives of $F^times/pm 1$. The class of $k$ is covered by $k, p-k$. Taking the squares, we obtain a list of all squares in $F$.



          And also the set $T$ of the elements
          $g^1,g^2,dots,g^(p-1)/2$ considered in $F$.
          These are also representatives of $F^times/pm 1$.
          The class of $k=g^u$ (for a suitable unique $u$) is covered by
          $k=g^u, -k=g^u+(p-1)/2$. (And $u$, $u+(p-1)/2$ are not both in the list.)



          Taking squares, we have as sets the equality $ j^2 : 1le jle (p-1)/2 = g^u : 1 le ule (p-1)/2 $, but for the products in the OP we also have to use the orderings of the sets, as inherited by the ones of the parametrizing indices $j$, respectively $u$.
          The products differ then by the sign of the reordering.






          share|cite|improve this answer













          We are working in the field $F=Bbb F_p$ for a prime $p$.
          Let $g$ be a multiplicative generator, a generator of the cyclic group
          $(Bbb F_p^times, cdot)$. Then $g$ is also generating the $-1$ in the field, and of course $g^p-1=1$, $g^(p-1)/2=-1$.



          Now let us consider the set $S$ of the elements $1,2,dots,(p-1)/2$ considered in $F$. These are representatives of $F^times/pm 1$. The class of $k$ is covered by $k, p-k$. Taking the squares, we obtain a list of all squares in $F$.



          And also the set $T$ of the elements
          $g^1,g^2,dots,g^(p-1)/2$ considered in $F$.
          These are also representatives of $F^times/pm 1$.
          The class of $k=g^u$ (for a suitable unique $u$) is covered by
          $k=g^u, -k=g^u+(p-1)/2$. (And $u$, $u+(p-1)/2$ are not both in the list.)



          Taking squares, we have as sets the equality $ j^2 : 1le jle (p-1)/2 = g^u : 1 le ule (p-1)/2 $, but for the products in the OP we also have to use the orderings of the sets, as inherited by the ones of the parametrizing indices $j$, respectively $u$.
          The products differ then by the sign of the reordering.







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 27 at 15:39









          dan_fulea

          4,1171211




          4,1171211











          • ... oh, same as above, i'm definitively too slow in typing.
            – dan_fulea
            Jul 27 at 15:40










          • any way , thanks for your answer, which is also useful to me!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:57
















          • ... oh, same as above, i'm definitively too slow in typing.
            – dan_fulea
            Jul 27 at 15:40










          • any way , thanks for your answer, which is also useful to me!!
            – çŽ‹æŽè¿œ
            Jul 27 at 15:57















          ... oh, same as above, i'm definitively too slow in typing.
          – dan_fulea
          Jul 27 at 15:40




          ... oh, same as above, i'm definitively too slow in typing.
          – dan_fulea
          Jul 27 at 15:40












          any way , thanks for your answer, which is also useful to me!!
          – çŽ‹æŽè¿œ
          Jul 27 at 15:57




          any way , thanks for your answer, which is also useful to me!!
          – çŽ‹æŽè¿œ
          Jul 27 at 15:57












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2864445%2fhow-to-evaluate-prod-1-le-i-j-le-fracp-12j2-i2-pmod-p%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?