For which $p$ primes is $p^{p-1}$ a divisor of $(p-1)^p + 1$?












4












$begingroup$


$p = 2$ and $p = 3$ definitely are solutions. I think these are all the solutions, but how can I prove it?










share|cite|improve this question









$endgroup$












  • $begingroup$
    Use binomial theorem to compute the reminder of what is left after diving by $p^2$
    $endgroup$
    – rtybase
    Jan 7 at 11:43


















4












$begingroup$


$p = 2$ and $p = 3$ definitely are solutions. I think these are all the solutions, but how can I prove it?










share|cite|improve this question









$endgroup$












  • $begingroup$
    Use binomial theorem to compute the reminder of what is left after diving by $p^2$
    $endgroup$
    – rtybase
    Jan 7 at 11:43
















4












4








4





$begingroup$


$p = 2$ and $p = 3$ definitely are solutions. I think these are all the solutions, but how can I prove it?










share|cite|improve this question









$endgroup$




$p = 2$ and $p = 3$ definitely are solutions. I think these are all the solutions, but how can I prove it?







number-theory prime-numbers divisibility






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 7 at 11:34









Krisztián KissKrisztián Kiss

484




484












  • $begingroup$
    Use binomial theorem to compute the reminder of what is left after diving by $p^2$
    $endgroup$
    – rtybase
    Jan 7 at 11:43




















  • $begingroup$
    Use binomial theorem to compute the reminder of what is left after diving by $p^2$
    $endgroup$
    – rtybase
    Jan 7 at 11:43


















$begingroup$
Use binomial theorem to compute the reminder of what is left after diving by $p^2$
$endgroup$
– rtybase
Jan 7 at 11:43






$begingroup$
Use binomial theorem to compute the reminder of what is left after diving by $p^2$
$endgroup$
– rtybase
Jan 7 at 11:43












2 Answers
2






active

oldest

votes


















3












$begingroup$

We consider the given number $N(p) =(p-1)^p+1$ modulo $p^3$. In the following, $p$ is a prime $>3$. Using the binomial formula we have:
$$
begin{aligned}
N(p)&equiv
1+
(-1)^p
+ pbinom p1(-1)^{p-1}
+ p^2binom p2(-1)^{p-2}
\
&=
1+
(-1)
+ p^2
- p^2frac 12p(p-1)
\
&=
p^2(text{Number no divisible by $p$}) .
end{aligned}
$$






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    @rtybase... yes, did not see the comment, started it as an answer...
    $endgroup$
    – dan_fulea
    Jan 7 at 11:55



















2












$begingroup$

According to binomial theorem and assuming $p$-odd, thus $(-1)^p=-1$ and $(-1)^{p-1}=1$
$$(p-1)^p+1=sumlimits_{k=0}^p binom{p}{k}p^k(-1)^{p-k}+1=\
-1+sumlimits_{color{red}{k=1}}^p binom{p}{k}p^k(-1)^{p-k} +1=p^2+sumlimits_{color{red}{k=2}}^p binom{p}{k}p^k(-1)^{p-k}=\
p^2left(1+sumlimits_{k=2}^p binom{p}{k}p^{color{red}{k-2}}(-1)^{p-k}right)=...$$

also $binom{p}{2}=frac{p(p-1)}{2}$ so we can extract a $p$ from it, thus
$$...=p^{color{red}{2}}left(1+pcdot Qright)$$
and the answer follows.






share|cite|improve this answer











$endgroup$














    Your Answer








    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%2f3064905%2ffor-which-p-primes-is-pp-1-a-divisor-of-p-1p-1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    We consider the given number $N(p) =(p-1)^p+1$ modulo $p^3$. In the following, $p$ is a prime $>3$. Using the binomial formula we have:
    $$
    begin{aligned}
    N(p)&equiv
    1+
    (-1)^p
    + pbinom p1(-1)^{p-1}
    + p^2binom p2(-1)^{p-2}
    \
    &=
    1+
    (-1)
    + p^2
    - p^2frac 12p(p-1)
    \
    &=
    p^2(text{Number no divisible by $p$}) .
    end{aligned}
    $$






    share|cite|improve this answer









    $endgroup$









    • 1




      $begingroup$
      @rtybase... yes, did not see the comment, started it as an answer...
      $endgroup$
      – dan_fulea
      Jan 7 at 11:55
















    3












    $begingroup$

    We consider the given number $N(p) =(p-1)^p+1$ modulo $p^3$. In the following, $p$ is a prime $>3$. Using the binomial formula we have:
    $$
    begin{aligned}
    N(p)&equiv
    1+
    (-1)^p
    + pbinom p1(-1)^{p-1}
    + p^2binom p2(-1)^{p-2}
    \
    &=
    1+
    (-1)
    + p^2
    - p^2frac 12p(p-1)
    \
    &=
    p^2(text{Number no divisible by $p$}) .
    end{aligned}
    $$






    share|cite|improve this answer









    $endgroup$









    • 1




      $begingroup$
      @rtybase... yes, did not see the comment, started it as an answer...
      $endgroup$
      – dan_fulea
      Jan 7 at 11:55














    3












    3








    3





    $begingroup$

    We consider the given number $N(p) =(p-1)^p+1$ modulo $p^3$. In the following, $p$ is a prime $>3$. Using the binomial formula we have:
    $$
    begin{aligned}
    N(p)&equiv
    1+
    (-1)^p
    + pbinom p1(-1)^{p-1}
    + p^2binom p2(-1)^{p-2}
    \
    &=
    1+
    (-1)
    + p^2
    - p^2frac 12p(p-1)
    \
    &=
    p^2(text{Number no divisible by $p$}) .
    end{aligned}
    $$






    share|cite|improve this answer









    $endgroup$



    We consider the given number $N(p) =(p-1)^p+1$ modulo $p^3$. In the following, $p$ is a prime $>3$. Using the binomial formula we have:
    $$
    begin{aligned}
    N(p)&equiv
    1+
    (-1)^p
    + pbinom p1(-1)^{p-1}
    + p^2binom p2(-1)^{p-2}
    \
    &=
    1+
    (-1)
    + p^2
    - p^2frac 12p(p-1)
    \
    &=
    p^2(text{Number no divisible by $p$}) .
    end{aligned}
    $$







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jan 7 at 11:53









    dan_fuleadan_fulea

    7,1781513




    7,1781513








    • 1




      $begingroup$
      @rtybase... yes, did not see the comment, started it as an answer...
      $endgroup$
      – dan_fulea
      Jan 7 at 11:55














    • 1




      $begingroup$
      @rtybase... yes, did not see the comment, started it as an answer...
      $endgroup$
      – dan_fulea
      Jan 7 at 11:55








    1




    1




    $begingroup$
    @rtybase... yes, did not see the comment, started it as an answer...
    $endgroup$
    – dan_fulea
    Jan 7 at 11:55




    $begingroup$
    @rtybase... yes, did not see the comment, started it as an answer...
    $endgroup$
    – dan_fulea
    Jan 7 at 11:55











    2












    $begingroup$

    According to binomial theorem and assuming $p$-odd, thus $(-1)^p=-1$ and $(-1)^{p-1}=1$
    $$(p-1)^p+1=sumlimits_{k=0}^p binom{p}{k}p^k(-1)^{p-k}+1=\
    -1+sumlimits_{color{red}{k=1}}^p binom{p}{k}p^k(-1)^{p-k} +1=p^2+sumlimits_{color{red}{k=2}}^p binom{p}{k}p^k(-1)^{p-k}=\
    p^2left(1+sumlimits_{k=2}^p binom{p}{k}p^{color{red}{k-2}}(-1)^{p-k}right)=...$$

    also $binom{p}{2}=frac{p(p-1)}{2}$ so we can extract a $p$ from it, thus
    $$...=p^{color{red}{2}}left(1+pcdot Qright)$$
    and the answer follows.






    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      According to binomial theorem and assuming $p$-odd, thus $(-1)^p=-1$ and $(-1)^{p-1}=1$
      $$(p-1)^p+1=sumlimits_{k=0}^p binom{p}{k}p^k(-1)^{p-k}+1=\
      -1+sumlimits_{color{red}{k=1}}^p binom{p}{k}p^k(-1)^{p-k} +1=p^2+sumlimits_{color{red}{k=2}}^p binom{p}{k}p^k(-1)^{p-k}=\
      p^2left(1+sumlimits_{k=2}^p binom{p}{k}p^{color{red}{k-2}}(-1)^{p-k}right)=...$$

      also $binom{p}{2}=frac{p(p-1)}{2}$ so we can extract a $p$ from it, thus
      $$...=p^{color{red}{2}}left(1+pcdot Qright)$$
      and the answer follows.






      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        According to binomial theorem and assuming $p$-odd, thus $(-1)^p=-1$ and $(-1)^{p-1}=1$
        $$(p-1)^p+1=sumlimits_{k=0}^p binom{p}{k}p^k(-1)^{p-k}+1=\
        -1+sumlimits_{color{red}{k=1}}^p binom{p}{k}p^k(-1)^{p-k} +1=p^2+sumlimits_{color{red}{k=2}}^p binom{p}{k}p^k(-1)^{p-k}=\
        p^2left(1+sumlimits_{k=2}^p binom{p}{k}p^{color{red}{k-2}}(-1)^{p-k}right)=...$$

        also $binom{p}{2}=frac{p(p-1)}{2}$ so we can extract a $p$ from it, thus
        $$...=p^{color{red}{2}}left(1+pcdot Qright)$$
        and the answer follows.






        share|cite|improve this answer











        $endgroup$



        According to binomial theorem and assuming $p$-odd, thus $(-1)^p=-1$ and $(-1)^{p-1}=1$
        $$(p-1)^p+1=sumlimits_{k=0}^p binom{p}{k}p^k(-1)^{p-k}+1=\
        -1+sumlimits_{color{red}{k=1}}^p binom{p}{k}p^k(-1)^{p-k} +1=p^2+sumlimits_{color{red}{k=2}}^p binom{p}{k}p^k(-1)^{p-k}=\
        p^2left(1+sumlimits_{k=2}^p binom{p}{k}p^{color{red}{k-2}}(-1)^{p-k}right)=...$$

        also $binom{p}{2}=frac{p(p-1)}{2}$ so we can extract a $p$ from it, thus
        $$...=p^{color{red}{2}}left(1+pcdot Qright)$$
        and the answer follows.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jan 7 at 12:12

























        answered Jan 7 at 12:06









        rtybasertybase

        11.6k31534




        11.6k31534






























            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%2f3064905%2ffor-which-p-primes-is-pp-1-a-divisor-of-p-1p-1%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

            Tonle Sap (See)

            I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

            Guatemaltekische Davis-Cup-Mannschaft