If $p$ is an odd prime and $k$ an integer with $0<k<p-1$ then $1^k + 2^k + ldots + (p-1)^k$ is divisible by $p$$ 1^k+2^k+3^k+…+(p-1)^k $ always a multiple of $p$?Is every non-square integer a primitive root modulo some odd prime?Prove that there is an integer a such that a is a primitive root modulo p^2 and a is relatively prime to n. [Hint: Use the Chinese Remainder Theorem.]Prove that the sum $1^k+2^k+cdots+n^k$ where $n$ is an arbitrary integer and $k$ is odd, is divisible by $1+2+cdots+n$.Odd primitive root modulo an odd primeAbout Primitive roots$p_1^a - p_2^b g equiv 0 pmodp_3$ for some primitive root $g$, prime $p_3$, and fixed prime powers $p_1^a,p_2^b$If $n$ is an odd positive integer, then $2^n! − 1$ is divisible by $n$Determine if a number is a primitive rootLet $p$ be a prime. Compute $1^k + 2^k + ldots + (p-1)^k pmodp$.When g and -g are both primitive roots

Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?

Why doesn't a const reference extend the life of a temporary object passed via a function?

Why is my log file so massive? 22gb. I am running log backups

Why do we use polarized capacitors?

Information to fellow intern about hiring?

Extreme, but not acceptable situation and I can't start the work tomorrow morning

LWC and complex parameters

aging parents with no investments

Could a US political party gain complete control over the government by removing checks & balances?

How would photo IDs work for shapeshifters?

Unbreakable Formation vs. Cry of the Carnarium

Is "plugging out" electronic devices an American expression?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

Can I legally use front facing blue light in the UK?

Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Finding files for which a command fails

New order #4: World

Why is the design of haulage companies so “special”?

Why airport relocation isn't done gradually?

Why was the "bread communication" in the arena of Catching Fire left out in the movie?

Is this food a bread or a loaf?

A poker game description that does not feel gimmicky

Is there any use for defining additional entity types in a SOQL FROM clause?



If $p$ is an odd prime and $k$ an integer with $0

$ 1^k+2^k+3^k+…+(p-1)^k $ always a multiple of $p$?Is every non-square integer a primitive root modulo some odd prime?Prove that there is an integer a such that a is a primitive root modulo p^2 and a is relatively prime to n. [Hint: Use the Chinese Remainder Theorem.]Prove that the sum $1^k+2^k+cdots+n^k$ where $n$ is an arbitrary integer and $k$ is odd, is divisible by $1+2+cdots+n$.Odd primitive root modulo an odd primeAbout Primitive roots$p_1^a - p_2^b g equiv 0 pmodp_3$ for some primitive root $g$, prime $p_3$, and fixed prime powers $p_1^a,p_2^b$If $n$ is an odd positive integer, then $2^n! − 1$ is divisible by $n$Determine if a number is a primitive rootLet $p$ be a prime. Compute $1^k + 2^k + ldots + (p-1)^k pmodp$.When g and -g are both primitive roots













6












$begingroup$



If $p$ is an odd prime and $k$ an integer with $0<k<p-1$ prove that $1^k + 2^k + ldots + (p-1)^k$ is divisible by $p$. Given hint: use primitive root.




This is a question on a practice final of mine. For $k$ being odd, it seems obvious (as the $pm$ terms cancel out), but I cannot figure out how to do this for the general case.










share|cite|improve this question











$endgroup$











  • $begingroup$
    I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
    $endgroup$
    – Young
    May 1 '16 at 8:33











  • $begingroup$
    It is trivial if $k$ is odd. (By using mod)
    $endgroup$
    – N.S.JOHN
    May 1 '16 at 9:31










  • $begingroup$
    Did you try using the hint?
    $endgroup$
    – peter a g
    May 9 '16 at 2:31










  • $begingroup$
    In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
    $endgroup$
    – coffeemath
    May 9 '16 at 2:32






  • 3




    $begingroup$
    The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
    $endgroup$
    – André Nicolas
    May 9 '16 at 2:44















6












$begingroup$



If $p$ is an odd prime and $k$ an integer with $0<k<p-1$ prove that $1^k + 2^k + ldots + (p-1)^k$ is divisible by $p$. Given hint: use primitive root.




This is a question on a practice final of mine. For $k$ being odd, it seems obvious (as the $pm$ terms cancel out), but I cannot figure out how to do this for the general case.










share|cite|improve this question











$endgroup$











  • $begingroup$
    I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
    $endgroup$
    – Young
    May 1 '16 at 8:33











  • $begingroup$
    It is trivial if $k$ is odd. (By using mod)
    $endgroup$
    – N.S.JOHN
    May 1 '16 at 9:31










  • $begingroup$
    Did you try using the hint?
    $endgroup$
    – peter a g
    May 9 '16 at 2:31










  • $begingroup$
    In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
    $endgroup$
    – coffeemath
    May 9 '16 at 2:32






  • 3




    $begingroup$
    The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
    $endgroup$
    – André Nicolas
    May 9 '16 at 2:44













6












6








6


5



$begingroup$



If $p$ is an odd prime and $k$ an integer with $0<k<p-1$ prove that $1^k + 2^k + ldots + (p-1)^k$ is divisible by $p$. Given hint: use primitive root.




This is a question on a practice final of mine. For $k$ being odd, it seems obvious (as the $pm$ terms cancel out), but I cannot figure out how to do this for the general case.










share|cite|improve this question











$endgroup$





If $p$ is an odd prime and $k$ an integer with $0<k<p-1$ prove that $1^k + 2^k + ldots + (p-1)^k$ is divisible by $p$. Given hint: use primitive root.




This is a question on a practice final of mine. For $k$ being odd, it seems obvious (as the $pm$ terms cancel out), but I cannot figure out how to do this for the general case.







number-theory primitive-roots






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited May 9 '16 at 3:43









Winther

20.9k33156




20.9k33156










asked May 9 '16 at 2:26









Alex KhodaverdianAlex Khodaverdian

745




745











  • $begingroup$
    I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
    $endgroup$
    – Young
    May 1 '16 at 8:33











  • $begingroup$
    It is trivial if $k$ is odd. (By using mod)
    $endgroup$
    – N.S.JOHN
    May 1 '16 at 9:31










  • $begingroup$
    Did you try using the hint?
    $endgroup$
    – peter a g
    May 9 '16 at 2:31










  • $begingroup$
    In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
    $endgroup$
    – coffeemath
    May 9 '16 at 2:32






  • 3




    $begingroup$
    The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
    $endgroup$
    – André Nicolas
    May 9 '16 at 2:44
















  • $begingroup$
    I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
    $endgroup$
    – Young
    May 1 '16 at 8:33











  • $begingroup$
    It is trivial if $k$ is odd. (By using mod)
    $endgroup$
    – N.S.JOHN
    May 1 '16 at 9:31










  • $begingroup$
    Did you try using the hint?
    $endgroup$
    – peter a g
    May 9 '16 at 2:31










  • $begingroup$
    In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
    $endgroup$
    – coffeemath
    May 9 '16 at 2:32






  • 3




    $begingroup$
    The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
    $endgroup$
    – André Nicolas
    May 9 '16 at 2:44















$begingroup$
I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
$endgroup$
– Young
May 1 '16 at 8:33





$begingroup$
I find $k=1,2,3$ $$frac12 (p-1) p,frac16 (p-1) p (2 p-1),frac14 (p-1)^2 p^2$$always a multiple of $p$
$endgroup$
– Young
May 1 '16 at 8:33













$begingroup$
It is trivial if $k$ is odd. (By using mod)
$endgroup$
– N.S.JOHN
May 1 '16 at 9:31




$begingroup$
It is trivial if $k$ is odd. (By using mod)
$endgroup$
– N.S.JOHN
May 1 '16 at 9:31












$begingroup$
Did you try using the hint?
$endgroup$
– peter a g
May 9 '16 at 2:31




$begingroup$
Did you try using the hint?
$endgroup$
– peter a g
May 9 '16 at 2:31












$begingroup$
In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
$endgroup$
– coffeemath
May 9 '16 at 2:32




$begingroup$
In the title, suggest you say "Prove for $p$ an odd prime..." to make it match with how the question is asked in the body of the post. Also include $0<k<p-1$ there for the same reason.
$endgroup$
– coffeemath
May 9 '16 at 2:32




3




3




$begingroup$
The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
$endgroup$
– André Nicolas
May 9 '16 at 2:44




$begingroup$
The important thing is that if $g$ is a primitive root then $g^1,g^2,dots, g^p-1$ are congruent to $1,2,dots, p-1$ in some order. So modulo $p$ we can write our sum as a geometric progression.
$endgroup$
– André Nicolas
May 9 '16 at 2:44










3 Answers
3






active

oldest

votes


















7












$begingroup$

Let $g$ be a primitive root of $p$, and let $S_k$ be our sum. Note that $g,g^2,g^3,dots, g^p-2$ travel in some order, modulo $p$, through the numbers $2$ to $p-1$. It follows that
$$S_k=1^k+2^k+3^k+cdots +(p-1)^kequiv 1^k+g^k+g^2k+g^3k+cdots g^(p-2)kpmodp.tag1$$
Note that
$$(1-g^k)(1+g^k+g^2k+g^3k+cdots +g^(p-2)k)=1-g^(p-1)k.$$
It follows that
$$(1-g^k)S_kequiv 1-g^(p-1)kequiv 0pmodp.$$
So $(1-g^k)S_k$ is divisible by $p$. However, $1-g^k$ is not divisible by $p$, and therefore $S_k$ is divisible by $p$.



Another way: We add a different proof, that may be less familiar. It does not use geometric series, only that $g$ has order $p-1$.



Note that $g,2g,3g,dots,(p-1)g$ travel, modulo $p$, in some order, through $1,2,3,dots,p-1$. It follows that
$$1^k+2^k+3^k+(p-1)^kequiv g^k(1^k+2^k+3^k+cdots +(p-1)^k)pmodp.$$
Thus
$$S_kequiv g^kS_kpmodp.$$
But since $g^knotequiv 1pmodp$, it follows that $S_kequiv 0pmodp$.






share|cite|improve this answer











$endgroup$




















    11












    $begingroup$

    Below are five alternative approaches:




    First, let $a$ be a number such that $gcd(a,p)=1$ and $a^knotequiv1pmod p,$ which exists as $k<p-1.$ Then denote the sum as $S:=sumlimits_l=1^p-1l^k.$ So we find:
    $$a^kcdot Sequivsumlimits_l=1^p-1(al)^kpmod p.$$
    Since $1pmod p,cdots,p-1pmod p=alpmod pmid l=1,cdots,p-1,$ we conclude that $a^kcdot Sequiv Spmod p,$ and hence $Sequiv0pmod p,$ as $a^knotequiv1pmod p.$

    $square$




    We might also use the Faulhaber's formula: $$sumlimits_l=1^pl^k=frac1k+1sumlimits_j=0^k(-1)^jbinomk+1jB_jp^k+1-jinmathbb Q.$$ Now for $0le k<p-1,$ we have $k+1<p$ is prime to $p,$ so is invertible modulo $p.$ Moreover, by Clausen - von Staudt Theorem, the prime divisors of denominators of $B_j$ are $le j+1<p,$ and hence the denominators of $B_j$ are invertible modulo $p$ as well. Thus, by multiplying the Faulhaber's formula by $k+1$ and the denominators of $B_j,$ we find that $Sequivsumlimits_l=1^pl^kpmod p$ is a polynomial in $p,$ and hence is divisible by $p.$

    $square$




    The third approach is inspired by this answer. We define the operator $[z^k]$ as the coefficient of $z^k$ in a power series. Then $l^k=k![z^k]e^lz.$ Thus $$S=sumlimits_l=0^p-1l^k=sumlimits_l=0^p-1k![z^k]e^lz=k![z^k]sumlimits_l=0^p-1e^lz=k![z^k]frace^pz-1e^z-1.$$ Hence it remains to compute the coefficients of $frace^pz-1e^z-1.$

    Write $e^pz-1=sumlimits_j=1^infty (p^jz^j)/j!$ and $e^z-1=sumlimits_j=1^infty (z^j)/j!.$

    Thus we see that $[z^k]frace^pz-1e^z-1$ is $frac1(k+1)!$ times a polynomial in $p$ of zero constant term (one may use the Cauchy product). Then, for $0le k<p-1,$ we deduce that $S$ is divisible by $p.$

    $square$




    The fourth one is more algebraic: we work over $mathbb F_p.$ We consider the polynomial $f(x):=x^p-1-1inmathbb F_p[x].$ By Fermat's little theorem, $f(x)$ has $p-1$ roots $1,cdots,p-1inmathbb F_p.$ So $S=S_k$ is just the $k$-th power sum of the roots of $f(x).$ By Newton's identities, we have $$S_k=(-1)^k-1ke_k+sumlimits_i=1^k-1(-1)^k-1+ie_k-iS_i,$$ where $e_k$ is the $k$-th elementary symmetric polynomial in the roots of $f(x).$ But $e_k$ is, up to the sign, the coefficient of $x^p-1-k$ in the polynomial $x^p-1-1.$ Thus, for $k=1,cdots,p-2,$ we have $e_k=0.$ Therefore $S_k=0$ in $mathbb F_p,$ i.e. $pmid S_k.$

    $square$




    The following uses only the basic algebraic properties about $mathbb F_p.$

    Consider the homomorphism $g:mathbb F_p^*rightarrow mathbbF_p^*$ sending $a$ to $a^k.$ Then we have the isomorphism $mathbbF_p^*/operatornameKergcongoperatornameImg.$ Denote $midoperatornameImgmid=n$ which divides $p-1.$

    We first show that $nnot=1.$ If $n=1,$ then $mathbbF_p^*=operatornameKerg$ and hence $a^k=1, forall ain mathbbF_p^*,$ which is impossible since a polynomial of degree $k$ can have at most $k$ roots in a field.

    Then we choose $n$ representatives of $mathbbF_p^*/operatornameKerg$ in $mathbbF_p^*:a_1,cdots,a_n,$ so that $mathbbF_p^*=bigcuplimits_i=1^na_icdotoperatornameKerg.$ Hence $$S_k=sumlimits_i=1^nsumlimits_linoperatornameKerg(a_icdot l)^k=sumlimits_i=1^nncdot a_i^k=ncdotsumlimits_i=1^ng(a_i)$$
    Now $g(a_i)mid i=1,cdots,n=operatornameImg.$ Moreover, every element $l$ in $operatornameImg$ has order dividing $n,$ by Lagrange theorem, so each element in $operatornameImg$ is a root of $x^n-1.$ As that polynomial has no more than $n$ roots, it follows that $operatornameImg$ consists of the roots of $x^n-1$ in $mathbbF_p.$ Therefore $S_k=ncdotsumlimits_r^n-1=0r,$ and hence $S_k$ is, up to a sign, equal to $n$ times the coefficient of $x$ in $x^n-1.$ But $n>1,$ thus $S_k=0$ in $mathbbF_p,$ i.e. $pmid S_k.$

    $square$




    Please point out any inappropriate points or doubts; hope this helps.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      You are awesome! This is magical!!
      $endgroup$
      – Subham Jaiswal
      May 23 '16 at 17:46










    • $begingroup$
      Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
      $endgroup$
      – awllower
      Jan 8 '17 at 8:49










    • $begingroup$
      I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
      $endgroup$
      – awllower
      Mar 31 at 7:41


















    1












    $begingroup$

    As $(r,p)=1;1le rle p-1$



    If $(p-1)|k, r^kequiv 1pmod p$



    Else



    If $a$ is a primitive root $pmod p,$



    $1,2,cdots, p-2,p-1;a^r, 0le rle p-1$ are the same set



    $$impliessum_u=1^p-1u^kequivsum_r=1^p-1(a^r)^kpmod p$$



    $$sum_r=1^p-1(a^r)^k=a^kcdotdfrac(a^k)^p-1-1a^k-1$$



    Now $(a^k)^p-1=(a^p-1)^kequiv1^kequiv?$



    and $pnmid(a^k-1)iff(a^k-1,p)=1$ as $(p-1)nmid k$






    share|cite|improve this answer









    $endgroup$













      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%2f1777526%2fif-p-is-an-odd-prime-and-k-an-integer-with-0kp-1-then-1k-2k-ldot%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









      7












      $begingroup$

      Let $g$ be a primitive root of $p$, and let $S_k$ be our sum. Note that $g,g^2,g^3,dots, g^p-2$ travel in some order, modulo $p$, through the numbers $2$ to $p-1$. It follows that
      $$S_k=1^k+2^k+3^k+cdots +(p-1)^kequiv 1^k+g^k+g^2k+g^3k+cdots g^(p-2)kpmodp.tag1$$
      Note that
      $$(1-g^k)(1+g^k+g^2k+g^3k+cdots +g^(p-2)k)=1-g^(p-1)k.$$
      It follows that
      $$(1-g^k)S_kequiv 1-g^(p-1)kequiv 0pmodp.$$
      So $(1-g^k)S_k$ is divisible by $p$. However, $1-g^k$ is not divisible by $p$, and therefore $S_k$ is divisible by $p$.



      Another way: We add a different proof, that may be less familiar. It does not use geometric series, only that $g$ has order $p-1$.



      Note that $g,2g,3g,dots,(p-1)g$ travel, modulo $p$, in some order, through $1,2,3,dots,p-1$. It follows that
      $$1^k+2^k+3^k+(p-1)^kequiv g^k(1^k+2^k+3^k+cdots +(p-1)^k)pmodp.$$
      Thus
      $$S_kequiv g^kS_kpmodp.$$
      But since $g^knotequiv 1pmodp$, it follows that $S_kequiv 0pmodp$.






      share|cite|improve this answer











      $endgroup$

















        7












        $begingroup$

        Let $g$ be a primitive root of $p$, and let $S_k$ be our sum. Note that $g,g^2,g^3,dots, g^p-2$ travel in some order, modulo $p$, through the numbers $2$ to $p-1$. It follows that
        $$S_k=1^k+2^k+3^k+cdots +(p-1)^kequiv 1^k+g^k+g^2k+g^3k+cdots g^(p-2)kpmodp.tag1$$
        Note that
        $$(1-g^k)(1+g^k+g^2k+g^3k+cdots +g^(p-2)k)=1-g^(p-1)k.$$
        It follows that
        $$(1-g^k)S_kequiv 1-g^(p-1)kequiv 0pmodp.$$
        So $(1-g^k)S_k$ is divisible by $p$. However, $1-g^k$ is not divisible by $p$, and therefore $S_k$ is divisible by $p$.



        Another way: We add a different proof, that may be less familiar. It does not use geometric series, only that $g$ has order $p-1$.



        Note that $g,2g,3g,dots,(p-1)g$ travel, modulo $p$, in some order, through $1,2,3,dots,p-1$. It follows that
        $$1^k+2^k+3^k+(p-1)^kequiv g^k(1^k+2^k+3^k+cdots +(p-1)^k)pmodp.$$
        Thus
        $$S_kequiv g^kS_kpmodp.$$
        But since $g^knotequiv 1pmodp$, it follows that $S_kequiv 0pmodp$.






        share|cite|improve this answer











        $endgroup$















          7












          7








          7





          $begingroup$

          Let $g$ be a primitive root of $p$, and let $S_k$ be our sum. Note that $g,g^2,g^3,dots, g^p-2$ travel in some order, modulo $p$, through the numbers $2$ to $p-1$. It follows that
          $$S_k=1^k+2^k+3^k+cdots +(p-1)^kequiv 1^k+g^k+g^2k+g^3k+cdots g^(p-2)kpmodp.tag1$$
          Note that
          $$(1-g^k)(1+g^k+g^2k+g^3k+cdots +g^(p-2)k)=1-g^(p-1)k.$$
          It follows that
          $$(1-g^k)S_kequiv 1-g^(p-1)kequiv 0pmodp.$$
          So $(1-g^k)S_k$ is divisible by $p$. However, $1-g^k$ is not divisible by $p$, and therefore $S_k$ is divisible by $p$.



          Another way: We add a different proof, that may be less familiar. It does not use geometric series, only that $g$ has order $p-1$.



          Note that $g,2g,3g,dots,(p-1)g$ travel, modulo $p$, in some order, through $1,2,3,dots,p-1$. It follows that
          $$1^k+2^k+3^k+(p-1)^kequiv g^k(1^k+2^k+3^k+cdots +(p-1)^k)pmodp.$$
          Thus
          $$S_kequiv g^kS_kpmodp.$$
          But since $g^knotequiv 1pmodp$, it follows that $S_kequiv 0pmodp$.






          share|cite|improve this answer











          $endgroup$



          Let $g$ be a primitive root of $p$, and let $S_k$ be our sum. Note that $g,g^2,g^3,dots, g^p-2$ travel in some order, modulo $p$, through the numbers $2$ to $p-1$. It follows that
          $$S_k=1^k+2^k+3^k+cdots +(p-1)^kequiv 1^k+g^k+g^2k+g^3k+cdots g^(p-2)kpmodp.tag1$$
          Note that
          $$(1-g^k)(1+g^k+g^2k+g^3k+cdots +g^(p-2)k)=1-g^(p-1)k.$$
          It follows that
          $$(1-g^k)S_kequiv 1-g^(p-1)kequiv 0pmodp.$$
          So $(1-g^k)S_k$ is divisible by $p$. However, $1-g^k$ is not divisible by $p$, and therefore $S_k$ is divisible by $p$.



          Another way: We add a different proof, that may be less familiar. It does not use geometric series, only that $g$ has order $p-1$.



          Note that $g,2g,3g,dots,(p-1)g$ travel, modulo $p$, in some order, through $1,2,3,dots,p-1$. It follows that
          $$1^k+2^k+3^k+(p-1)^kequiv g^k(1^k+2^k+3^k+cdots +(p-1)^k)pmodp.$$
          Thus
          $$S_kequiv g^kS_kpmodp.$$
          But since $g^knotequiv 1pmodp$, it follows that $S_kequiv 0pmodp$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited May 9 '16 at 3:28

























          answered May 9 '16 at 3:11









          André NicolasAndré Nicolas

          455k36432820




          455k36432820





















              11












              $begingroup$

              Below are five alternative approaches:




              First, let $a$ be a number such that $gcd(a,p)=1$ and $a^knotequiv1pmod p,$ which exists as $k<p-1.$ Then denote the sum as $S:=sumlimits_l=1^p-1l^k.$ So we find:
              $$a^kcdot Sequivsumlimits_l=1^p-1(al)^kpmod p.$$
              Since $1pmod p,cdots,p-1pmod p=alpmod pmid l=1,cdots,p-1,$ we conclude that $a^kcdot Sequiv Spmod p,$ and hence $Sequiv0pmod p,$ as $a^knotequiv1pmod p.$

              $square$




              We might also use the Faulhaber's formula: $$sumlimits_l=1^pl^k=frac1k+1sumlimits_j=0^k(-1)^jbinomk+1jB_jp^k+1-jinmathbb Q.$$ Now for $0le k<p-1,$ we have $k+1<p$ is prime to $p,$ so is invertible modulo $p.$ Moreover, by Clausen - von Staudt Theorem, the prime divisors of denominators of $B_j$ are $le j+1<p,$ and hence the denominators of $B_j$ are invertible modulo $p$ as well. Thus, by multiplying the Faulhaber's formula by $k+1$ and the denominators of $B_j,$ we find that $Sequivsumlimits_l=1^pl^kpmod p$ is a polynomial in $p,$ and hence is divisible by $p.$

              $square$




              The third approach is inspired by this answer. We define the operator $[z^k]$ as the coefficient of $z^k$ in a power series. Then $l^k=k![z^k]e^lz.$ Thus $$S=sumlimits_l=0^p-1l^k=sumlimits_l=0^p-1k![z^k]e^lz=k![z^k]sumlimits_l=0^p-1e^lz=k![z^k]frace^pz-1e^z-1.$$ Hence it remains to compute the coefficients of $frace^pz-1e^z-1.$

              Write $e^pz-1=sumlimits_j=1^infty (p^jz^j)/j!$ and $e^z-1=sumlimits_j=1^infty (z^j)/j!.$

              Thus we see that $[z^k]frace^pz-1e^z-1$ is $frac1(k+1)!$ times a polynomial in $p$ of zero constant term (one may use the Cauchy product). Then, for $0le k<p-1,$ we deduce that $S$ is divisible by $p.$

              $square$




              The fourth one is more algebraic: we work over $mathbb F_p.$ We consider the polynomial $f(x):=x^p-1-1inmathbb F_p[x].$ By Fermat's little theorem, $f(x)$ has $p-1$ roots $1,cdots,p-1inmathbb F_p.$ So $S=S_k$ is just the $k$-th power sum of the roots of $f(x).$ By Newton's identities, we have $$S_k=(-1)^k-1ke_k+sumlimits_i=1^k-1(-1)^k-1+ie_k-iS_i,$$ where $e_k$ is the $k$-th elementary symmetric polynomial in the roots of $f(x).$ But $e_k$ is, up to the sign, the coefficient of $x^p-1-k$ in the polynomial $x^p-1-1.$ Thus, for $k=1,cdots,p-2,$ we have $e_k=0.$ Therefore $S_k=0$ in $mathbb F_p,$ i.e. $pmid S_k.$

              $square$




              The following uses only the basic algebraic properties about $mathbb F_p.$

              Consider the homomorphism $g:mathbb F_p^*rightarrow mathbbF_p^*$ sending $a$ to $a^k.$ Then we have the isomorphism $mathbbF_p^*/operatornameKergcongoperatornameImg.$ Denote $midoperatornameImgmid=n$ which divides $p-1.$

              We first show that $nnot=1.$ If $n=1,$ then $mathbbF_p^*=operatornameKerg$ and hence $a^k=1, forall ain mathbbF_p^*,$ which is impossible since a polynomial of degree $k$ can have at most $k$ roots in a field.

              Then we choose $n$ representatives of $mathbbF_p^*/operatornameKerg$ in $mathbbF_p^*:a_1,cdots,a_n,$ so that $mathbbF_p^*=bigcuplimits_i=1^na_icdotoperatornameKerg.$ Hence $$S_k=sumlimits_i=1^nsumlimits_linoperatornameKerg(a_icdot l)^k=sumlimits_i=1^nncdot a_i^k=ncdotsumlimits_i=1^ng(a_i)$$
              Now $g(a_i)mid i=1,cdots,n=operatornameImg.$ Moreover, every element $l$ in $operatornameImg$ has order dividing $n,$ by Lagrange theorem, so each element in $operatornameImg$ is a root of $x^n-1.$ As that polynomial has no more than $n$ roots, it follows that $operatornameImg$ consists of the roots of $x^n-1$ in $mathbbF_p.$ Therefore $S_k=ncdotsumlimits_r^n-1=0r,$ and hence $S_k$ is, up to a sign, equal to $n$ times the coefficient of $x$ in $x^n-1.$ But $n>1,$ thus $S_k=0$ in $mathbbF_p,$ i.e. $pmid S_k.$

              $square$




              Please point out any inappropriate points or doubts; hope this helps.






              share|cite|improve this answer











              $endgroup$












              • $begingroup$
                You are awesome! This is magical!!
                $endgroup$
                – Subham Jaiswal
                May 23 '16 at 17:46










              • $begingroup$
                Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
                $endgroup$
                – awllower
                Jan 8 '17 at 8:49










              • $begingroup$
                I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
                $endgroup$
                – awllower
                Mar 31 at 7:41















              11












              $begingroup$

              Below are five alternative approaches:




              First, let $a$ be a number such that $gcd(a,p)=1$ and $a^knotequiv1pmod p,$ which exists as $k<p-1.$ Then denote the sum as $S:=sumlimits_l=1^p-1l^k.$ So we find:
              $$a^kcdot Sequivsumlimits_l=1^p-1(al)^kpmod p.$$
              Since $1pmod p,cdots,p-1pmod p=alpmod pmid l=1,cdots,p-1,$ we conclude that $a^kcdot Sequiv Spmod p,$ and hence $Sequiv0pmod p,$ as $a^knotequiv1pmod p.$

              $square$




              We might also use the Faulhaber's formula: $$sumlimits_l=1^pl^k=frac1k+1sumlimits_j=0^k(-1)^jbinomk+1jB_jp^k+1-jinmathbb Q.$$ Now for $0le k<p-1,$ we have $k+1<p$ is prime to $p,$ so is invertible modulo $p.$ Moreover, by Clausen - von Staudt Theorem, the prime divisors of denominators of $B_j$ are $le j+1<p,$ and hence the denominators of $B_j$ are invertible modulo $p$ as well. Thus, by multiplying the Faulhaber's formula by $k+1$ and the denominators of $B_j,$ we find that $Sequivsumlimits_l=1^pl^kpmod p$ is a polynomial in $p,$ and hence is divisible by $p.$

              $square$




              The third approach is inspired by this answer. We define the operator $[z^k]$ as the coefficient of $z^k$ in a power series. Then $l^k=k![z^k]e^lz.$ Thus $$S=sumlimits_l=0^p-1l^k=sumlimits_l=0^p-1k![z^k]e^lz=k![z^k]sumlimits_l=0^p-1e^lz=k![z^k]frace^pz-1e^z-1.$$ Hence it remains to compute the coefficients of $frace^pz-1e^z-1.$

              Write $e^pz-1=sumlimits_j=1^infty (p^jz^j)/j!$ and $e^z-1=sumlimits_j=1^infty (z^j)/j!.$

              Thus we see that $[z^k]frace^pz-1e^z-1$ is $frac1(k+1)!$ times a polynomial in $p$ of zero constant term (one may use the Cauchy product). Then, for $0le k<p-1,$ we deduce that $S$ is divisible by $p.$

              $square$




              The fourth one is more algebraic: we work over $mathbb F_p.$ We consider the polynomial $f(x):=x^p-1-1inmathbb F_p[x].$ By Fermat's little theorem, $f(x)$ has $p-1$ roots $1,cdots,p-1inmathbb F_p.$ So $S=S_k$ is just the $k$-th power sum of the roots of $f(x).$ By Newton's identities, we have $$S_k=(-1)^k-1ke_k+sumlimits_i=1^k-1(-1)^k-1+ie_k-iS_i,$$ where $e_k$ is the $k$-th elementary symmetric polynomial in the roots of $f(x).$ But $e_k$ is, up to the sign, the coefficient of $x^p-1-k$ in the polynomial $x^p-1-1.$ Thus, for $k=1,cdots,p-2,$ we have $e_k=0.$ Therefore $S_k=0$ in $mathbb F_p,$ i.e. $pmid S_k.$

              $square$




              The following uses only the basic algebraic properties about $mathbb F_p.$

              Consider the homomorphism $g:mathbb F_p^*rightarrow mathbbF_p^*$ sending $a$ to $a^k.$ Then we have the isomorphism $mathbbF_p^*/operatornameKergcongoperatornameImg.$ Denote $midoperatornameImgmid=n$ which divides $p-1.$

              We first show that $nnot=1.$ If $n=1,$ then $mathbbF_p^*=operatornameKerg$ and hence $a^k=1, forall ain mathbbF_p^*,$ which is impossible since a polynomial of degree $k$ can have at most $k$ roots in a field.

              Then we choose $n$ representatives of $mathbbF_p^*/operatornameKerg$ in $mathbbF_p^*:a_1,cdots,a_n,$ so that $mathbbF_p^*=bigcuplimits_i=1^na_icdotoperatornameKerg.$ Hence $$S_k=sumlimits_i=1^nsumlimits_linoperatornameKerg(a_icdot l)^k=sumlimits_i=1^nncdot a_i^k=ncdotsumlimits_i=1^ng(a_i)$$
              Now $g(a_i)mid i=1,cdots,n=operatornameImg.$ Moreover, every element $l$ in $operatornameImg$ has order dividing $n,$ by Lagrange theorem, so each element in $operatornameImg$ is a root of $x^n-1.$ As that polynomial has no more than $n$ roots, it follows that $operatornameImg$ consists of the roots of $x^n-1$ in $mathbbF_p.$ Therefore $S_k=ncdotsumlimits_r^n-1=0r,$ and hence $S_k$ is, up to a sign, equal to $n$ times the coefficient of $x$ in $x^n-1.$ But $n>1,$ thus $S_k=0$ in $mathbbF_p,$ i.e. $pmid S_k.$

              $square$




              Please point out any inappropriate points or doubts; hope this helps.






              share|cite|improve this answer











              $endgroup$












              • $begingroup$
                You are awesome! This is magical!!
                $endgroup$
                – Subham Jaiswal
                May 23 '16 at 17:46










              • $begingroup$
                Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
                $endgroup$
                – awllower
                Jan 8 '17 at 8:49










              • $begingroup$
                I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
                $endgroup$
                – awllower
                Mar 31 at 7:41













              11












              11








              11





              $begingroup$

              Below are five alternative approaches:




              First, let $a$ be a number such that $gcd(a,p)=1$ and $a^knotequiv1pmod p,$ which exists as $k<p-1.$ Then denote the sum as $S:=sumlimits_l=1^p-1l^k.$ So we find:
              $$a^kcdot Sequivsumlimits_l=1^p-1(al)^kpmod p.$$
              Since $1pmod p,cdots,p-1pmod p=alpmod pmid l=1,cdots,p-1,$ we conclude that $a^kcdot Sequiv Spmod p,$ and hence $Sequiv0pmod p,$ as $a^knotequiv1pmod p.$

              $square$




              We might also use the Faulhaber's formula: $$sumlimits_l=1^pl^k=frac1k+1sumlimits_j=0^k(-1)^jbinomk+1jB_jp^k+1-jinmathbb Q.$$ Now for $0le k<p-1,$ we have $k+1<p$ is prime to $p,$ so is invertible modulo $p.$ Moreover, by Clausen - von Staudt Theorem, the prime divisors of denominators of $B_j$ are $le j+1<p,$ and hence the denominators of $B_j$ are invertible modulo $p$ as well. Thus, by multiplying the Faulhaber's formula by $k+1$ and the denominators of $B_j,$ we find that $Sequivsumlimits_l=1^pl^kpmod p$ is a polynomial in $p,$ and hence is divisible by $p.$

              $square$




              The third approach is inspired by this answer. We define the operator $[z^k]$ as the coefficient of $z^k$ in a power series. Then $l^k=k![z^k]e^lz.$ Thus $$S=sumlimits_l=0^p-1l^k=sumlimits_l=0^p-1k![z^k]e^lz=k![z^k]sumlimits_l=0^p-1e^lz=k![z^k]frace^pz-1e^z-1.$$ Hence it remains to compute the coefficients of $frace^pz-1e^z-1.$

              Write $e^pz-1=sumlimits_j=1^infty (p^jz^j)/j!$ and $e^z-1=sumlimits_j=1^infty (z^j)/j!.$

              Thus we see that $[z^k]frace^pz-1e^z-1$ is $frac1(k+1)!$ times a polynomial in $p$ of zero constant term (one may use the Cauchy product). Then, for $0le k<p-1,$ we deduce that $S$ is divisible by $p.$

              $square$




              The fourth one is more algebraic: we work over $mathbb F_p.$ We consider the polynomial $f(x):=x^p-1-1inmathbb F_p[x].$ By Fermat's little theorem, $f(x)$ has $p-1$ roots $1,cdots,p-1inmathbb F_p.$ So $S=S_k$ is just the $k$-th power sum of the roots of $f(x).$ By Newton's identities, we have $$S_k=(-1)^k-1ke_k+sumlimits_i=1^k-1(-1)^k-1+ie_k-iS_i,$$ where $e_k$ is the $k$-th elementary symmetric polynomial in the roots of $f(x).$ But $e_k$ is, up to the sign, the coefficient of $x^p-1-k$ in the polynomial $x^p-1-1.$ Thus, for $k=1,cdots,p-2,$ we have $e_k=0.$ Therefore $S_k=0$ in $mathbb F_p,$ i.e. $pmid S_k.$

              $square$




              The following uses only the basic algebraic properties about $mathbb F_p.$

              Consider the homomorphism $g:mathbb F_p^*rightarrow mathbbF_p^*$ sending $a$ to $a^k.$ Then we have the isomorphism $mathbbF_p^*/operatornameKergcongoperatornameImg.$ Denote $midoperatornameImgmid=n$ which divides $p-1.$

              We first show that $nnot=1.$ If $n=1,$ then $mathbbF_p^*=operatornameKerg$ and hence $a^k=1, forall ain mathbbF_p^*,$ which is impossible since a polynomial of degree $k$ can have at most $k$ roots in a field.

              Then we choose $n$ representatives of $mathbbF_p^*/operatornameKerg$ in $mathbbF_p^*:a_1,cdots,a_n,$ so that $mathbbF_p^*=bigcuplimits_i=1^na_icdotoperatornameKerg.$ Hence $$S_k=sumlimits_i=1^nsumlimits_linoperatornameKerg(a_icdot l)^k=sumlimits_i=1^nncdot a_i^k=ncdotsumlimits_i=1^ng(a_i)$$
              Now $g(a_i)mid i=1,cdots,n=operatornameImg.$ Moreover, every element $l$ in $operatornameImg$ has order dividing $n,$ by Lagrange theorem, so each element in $operatornameImg$ is a root of $x^n-1.$ As that polynomial has no more than $n$ roots, it follows that $operatornameImg$ consists of the roots of $x^n-1$ in $mathbbF_p.$ Therefore $S_k=ncdotsumlimits_r^n-1=0r,$ and hence $S_k$ is, up to a sign, equal to $n$ times the coefficient of $x$ in $x^n-1.$ But $n>1,$ thus $S_k=0$ in $mathbbF_p,$ i.e. $pmid S_k.$

              $square$




              Please point out any inappropriate points or doubts; hope this helps.






              share|cite|improve this answer











              $endgroup$



              Below are five alternative approaches:




              First, let $a$ be a number such that $gcd(a,p)=1$ and $a^knotequiv1pmod p,$ which exists as $k<p-1.$ Then denote the sum as $S:=sumlimits_l=1^p-1l^k.$ So we find:
              $$a^kcdot Sequivsumlimits_l=1^p-1(al)^kpmod p.$$
              Since $1pmod p,cdots,p-1pmod p=alpmod pmid l=1,cdots,p-1,$ we conclude that $a^kcdot Sequiv Spmod p,$ and hence $Sequiv0pmod p,$ as $a^knotequiv1pmod p.$

              $square$




              We might also use the Faulhaber's formula: $$sumlimits_l=1^pl^k=frac1k+1sumlimits_j=0^k(-1)^jbinomk+1jB_jp^k+1-jinmathbb Q.$$ Now for $0le k<p-1,$ we have $k+1<p$ is prime to $p,$ so is invertible modulo $p.$ Moreover, by Clausen - von Staudt Theorem, the prime divisors of denominators of $B_j$ are $le j+1<p,$ and hence the denominators of $B_j$ are invertible modulo $p$ as well. Thus, by multiplying the Faulhaber's formula by $k+1$ and the denominators of $B_j,$ we find that $Sequivsumlimits_l=1^pl^kpmod p$ is a polynomial in $p,$ and hence is divisible by $p.$

              $square$




              The third approach is inspired by this answer. We define the operator $[z^k]$ as the coefficient of $z^k$ in a power series. Then $l^k=k![z^k]e^lz.$ Thus $$S=sumlimits_l=0^p-1l^k=sumlimits_l=0^p-1k![z^k]e^lz=k![z^k]sumlimits_l=0^p-1e^lz=k![z^k]frace^pz-1e^z-1.$$ Hence it remains to compute the coefficients of $frace^pz-1e^z-1.$

              Write $e^pz-1=sumlimits_j=1^infty (p^jz^j)/j!$ and $e^z-1=sumlimits_j=1^infty (z^j)/j!.$

              Thus we see that $[z^k]frace^pz-1e^z-1$ is $frac1(k+1)!$ times a polynomial in $p$ of zero constant term (one may use the Cauchy product). Then, for $0le k<p-1,$ we deduce that $S$ is divisible by $p.$

              $square$




              The fourth one is more algebraic: we work over $mathbb F_p.$ We consider the polynomial $f(x):=x^p-1-1inmathbb F_p[x].$ By Fermat's little theorem, $f(x)$ has $p-1$ roots $1,cdots,p-1inmathbb F_p.$ So $S=S_k$ is just the $k$-th power sum of the roots of $f(x).$ By Newton's identities, we have $$S_k=(-1)^k-1ke_k+sumlimits_i=1^k-1(-1)^k-1+ie_k-iS_i,$$ where $e_k$ is the $k$-th elementary symmetric polynomial in the roots of $f(x).$ But $e_k$ is, up to the sign, the coefficient of $x^p-1-k$ in the polynomial $x^p-1-1.$ Thus, for $k=1,cdots,p-2,$ we have $e_k=0.$ Therefore $S_k=0$ in $mathbb F_p,$ i.e. $pmid S_k.$

              $square$




              The following uses only the basic algebraic properties about $mathbb F_p.$

              Consider the homomorphism $g:mathbb F_p^*rightarrow mathbbF_p^*$ sending $a$ to $a^k.$ Then we have the isomorphism $mathbbF_p^*/operatornameKergcongoperatornameImg.$ Denote $midoperatornameImgmid=n$ which divides $p-1.$

              We first show that $nnot=1.$ If $n=1,$ then $mathbbF_p^*=operatornameKerg$ and hence $a^k=1, forall ain mathbbF_p^*,$ which is impossible since a polynomial of degree $k$ can have at most $k$ roots in a field.

              Then we choose $n$ representatives of $mathbbF_p^*/operatornameKerg$ in $mathbbF_p^*:a_1,cdots,a_n,$ so that $mathbbF_p^*=bigcuplimits_i=1^na_icdotoperatornameKerg.$ Hence $$S_k=sumlimits_i=1^nsumlimits_linoperatornameKerg(a_icdot l)^k=sumlimits_i=1^nncdot a_i^k=ncdotsumlimits_i=1^ng(a_i)$$
              Now $g(a_i)mid i=1,cdots,n=operatornameImg.$ Moreover, every element $l$ in $operatornameImg$ has order dividing $n,$ by Lagrange theorem, so each element in $operatornameImg$ is a root of $x^n-1.$ As that polynomial has no more than $n$ roots, it follows that $operatornameImg$ consists of the roots of $x^n-1$ in $mathbbF_p.$ Therefore $S_k=ncdotsumlimits_r^n-1=0r,$ and hence $S_k$ is, up to a sign, equal to $n$ times the coefficient of $x$ in $x^n-1.$ But $n>1,$ thus $S_k=0$ in $mathbbF_p,$ i.e. $pmid S_k.$

              $square$




              Please point out any inappropriate points or doubts; hope this helps.







              share|cite|improve this answer














              share|cite|improve this answer



              share|cite|improve this answer








              edited Apr 13 '17 at 12:20









              Community

              1




              1










              answered May 23 '16 at 15:54









              awllowerawllower

              10.5k42672




              10.5k42672











              • $begingroup$
                You are awesome! This is magical!!
                $endgroup$
                – Subham Jaiswal
                May 23 '16 at 17:46










              • $begingroup$
                Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
                $endgroup$
                – awllower
                Jan 8 '17 at 8:49










              • $begingroup$
                I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
                $endgroup$
                – awllower
                Mar 31 at 7:41
















              • $begingroup$
                You are awesome! This is magical!!
                $endgroup$
                – Subham Jaiswal
                May 23 '16 at 17:46










              • $begingroup$
                Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
                $endgroup$
                – awllower
                Jan 8 '17 at 8:49










              • $begingroup$
                I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
                $endgroup$
                – awllower
                Mar 31 at 7:41















              $begingroup$
              You are awesome! This is magical!!
              $endgroup$
              – Subham Jaiswal
              May 23 '16 at 17:46




              $begingroup$
              You are awesome! This is magical!!
              $endgroup$
              – Subham Jaiswal
              May 23 '16 at 17:46












              $begingroup$
              Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
              $endgroup$
              – awllower
              Jan 8 '17 at 8:49




              $begingroup$
              Ah! Sorry, for some reason I didn't notice your comment before. Thanks for the compliment. :)
              $endgroup$
              – awllower
              Jan 8 '17 at 8:49












              $begingroup$
              I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
              $endgroup$
              – awllower
              Mar 31 at 7:41




              $begingroup$
              I do not understand the reason to down-vote. Per chance I did something inappropriate in this answer, or is there anything I can improve upon? Care to point it out?
              $endgroup$
              – awllower
              Mar 31 at 7:41











              1












              $begingroup$

              As $(r,p)=1;1le rle p-1$



              If $(p-1)|k, r^kequiv 1pmod p$



              Else



              If $a$ is a primitive root $pmod p,$



              $1,2,cdots, p-2,p-1;a^r, 0le rle p-1$ are the same set



              $$impliessum_u=1^p-1u^kequivsum_r=1^p-1(a^r)^kpmod p$$



              $$sum_r=1^p-1(a^r)^k=a^kcdotdfrac(a^k)^p-1-1a^k-1$$



              Now $(a^k)^p-1=(a^p-1)^kequiv1^kequiv?$



              and $pnmid(a^k-1)iff(a^k-1,p)=1$ as $(p-1)nmid k$






              share|cite|improve this answer









              $endgroup$

















                1












                $begingroup$

                As $(r,p)=1;1le rle p-1$



                If $(p-1)|k, r^kequiv 1pmod p$



                Else



                If $a$ is a primitive root $pmod p,$



                $1,2,cdots, p-2,p-1;a^r, 0le rle p-1$ are the same set



                $$impliessum_u=1^p-1u^kequivsum_r=1^p-1(a^r)^kpmod p$$



                $$sum_r=1^p-1(a^r)^k=a^kcdotdfrac(a^k)^p-1-1a^k-1$$



                Now $(a^k)^p-1=(a^p-1)^kequiv1^kequiv?$



                and $pnmid(a^k-1)iff(a^k-1,p)=1$ as $(p-1)nmid k$






                share|cite|improve this answer









                $endgroup$















                  1












                  1








                  1





                  $begingroup$

                  As $(r,p)=1;1le rle p-1$



                  If $(p-1)|k, r^kequiv 1pmod p$



                  Else



                  If $a$ is a primitive root $pmod p,$



                  $1,2,cdots, p-2,p-1;a^r, 0le rle p-1$ are the same set



                  $$impliessum_u=1^p-1u^kequivsum_r=1^p-1(a^r)^kpmod p$$



                  $$sum_r=1^p-1(a^r)^k=a^kcdotdfrac(a^k)^p-1-1a^k-1$$



                  Now $(a^k)^p-1=(a^p-1)^kequiv1^kequiv?$



                  and $pnmid(a^k-1)iff(a^k-1,p)=1$ as $(p-1)nmid k$






                  share|cite|improve this answer









                  $endgroup$



                  As $(r,p)=1;1le rle p-1$



                  If $(p-1)|k, r^kequiv 1pmod p$



                  Else



                  If $a$ is a primitive root $pmod p,$



                  $1,2,cdots, p-2,p-1;a^r, 0le rle p-1$ are the same set



                  $$impliessum_u=1^p-1u^kequivsum_r=1^p-1(a^r)^kpmod p$$



                  $$sum_r=1^p-1(a^r)^k=a^kcdotdfrac(a^k)^p-1-1a^k-1$$



                  Now $(a^k)^p-1=(a^p-1)^kequiv1^kequiv?$



                  and $pnmid(a^k-1)iff(a^k-1,p)=1$ as $(p-1)nmid k$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered May 1 '16 at 8:46









                  lab bhattacharjeelab bhattacharjee

                  228k15158279




                  228k15158279



























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f1777526%2fif-p-is-an-odd-prime-and-k-an-integer-with-0kp-1-then-1k-2k-ldot%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

                      Solar Wings Breeze Design and development Specifications (Breeze) References Navigation menu1368-485X"Hang glider: Breeze (Solar Wings)"e

                      Kathakali Contents Etymology and nomenclature History Repertoire Songs and musical instruments Traditional plays Styles: Sampradayam Training centers and awards Relationship to other dance forms See also Notes References External links Navigation menueThe Illustrated Encyclopedia of Hinduism: A-MSouth Asian Folklore: An EncyclopediaRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to PlayKathakali Dance-drama: Where Gods and Demons Come to Play10.1353/atj.2005.0004The Illustrated Encyclopedia of Hinduism: A-MEncyclopedia of HinduismKathakali Dance-drama: Where Gods and Demons Come to PlaySonic Liturgy: Ritual and Music in Hindu Tradition"The Mirror of Gesture"Kathakali Dance-drama: Where Gods and Demons Come to Play"Kathakali"Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceMedieval Indian Literature: An AnthologyThe Oxford Companion to Indian TheatreSouth Asian Folklore: An Encyclopedia : Afghanistan, Bangladesh, India, Nepal, Pakistan, Sri LankaThe Rise of Performance Studies: Rethinking Richard Schechner's Broad SpectrumIndian Theatre: Traditions of PerformanceModern Asian Theatre and Performance 1900-2000Critical Theory and PerformanceBetween Theater and AnthropologyKathakali603847011Indian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceIndian Theatre: Traditions of PerformanceBetween Theater and AnthropologyBetween Theater and AnthropologyNambeesan Smaraka AwardsArchivedThe Cambridge Guide to TheatreRoutledge International Encyclopedia of Women: Global Women's Issues and KnowledgeThe Garland Encyclopedia of World Music: South Asia : the Indian subcontinentThe Ethos of Noh: Actors and Their Art10.2307/1145740By Means of Performance: Intercultural Studies of Theatre and Ritual10.1017/s204912550000100xReconceiving the Renaissance: A Critical ReaderPerformance TheoryListening to Theatre: The Aural Dimension of Beijing Opera10.2307/1146013Kathakali: The Art of the Non-WorldlyOn KathakaliKathakali, the dance theatreThe Kathakali Complex: Performance & StructureKathakali Dance-Drama: Where Gods and Demons Come to Play10.1093/obo/9780195399318-0071Drama and Ritual of Early Hinduism"In the Shadow of Hollywood Orientalism: Authentic East Indian Dancing"10.1080/08949460490274013Sanskrit Play Production in Ancient IndiaIndian Music: History and StructureBharata, the Nāṭyaśāstra233639306Table of Contents2238067286469807Dance In Indian Painting10.2307/32047833204783Kathakali Dance-Theatre: A Visual Narrative of Sacred Indian MimeIndian Classical Dance: The Renaissance and BeyondKathakali: an indigenous art-form of Keralaeee

                      Urgehal History Discography Band members References External links Navigation menu"Mediateket: Urgehal""Interview with Enzifer of Urgehal, 2007""Urgehal - Interview"Urgehal"Urgehal Frontman Trondr Nefas Dies at 35"Urgehal9042691cb161873230(data)0000 0001 0669 4224no2016126817ee6ccef6-e558-44b6-b059-dbbb5b913b24145036459145036459