Let $p$ be prime and let $r$ be a positive integer. How many generators does $mathbbZ_p^r$ have?

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











up vote
3
down vote

favorite












Can someone please help me understand this solution?




Let $p$ be prime and let $r$ be a positive integer. How many generators does $mathbbZ_p^r$ have?




enter image description here



I do not understand the part that is underlined in red. Why $p^r-p$? Because then $gcd(p^r,p^r-p)=pneq 1$?







share|cite|improve this question




















  • They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
    – user583185
    Aug 13 at 5:13






  • 1




    The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
    – user583185
    Aug 13 at 5:21















up vote
3
down vote

favorite












Can someone please help me understand this solution?




Let $p$ be prime and let $r$ be a positive integer. How many generators does $mathbbZ_p^r$ have?




enter image description here



I do not understand the part that is underlined in red. Why $p^r-p$? Because then $gcd(p^r,p^r-p)=pneq 1$?







share|cite|improve this question




















  • They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
    – user583185
    Aug 13 at 5:13






  • 1




    The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
    – user583185
    Aug 13 at 5:21













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Can someone please help me understand this solution?




Let $p$ be prime and let $r$ be a positive integer. How many generators does $mathbbZ_p^r$ have?




enter image description here



I do not understand the part that is underlined in red. Why $p^r-p$? Because then $gcd(p^r,p^r-p)=pneq 1$?







share|cite|improve this question












Can someone please help me understand this solution?




Let $p$ be prime and let $r$ be a positive integer. How many generators does $mathbbZ_p^r$ have?




enter image description here



I do not understand the part that is underlined in red. Why $p^r-p$? Because then $gcd(p^r,p^r-p)=pneq 1$?









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 13 at 5:06









numericalorange

1,266110




1,266110











  • They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
    – user583185
    Aug 13 at 5:13






  • 1




    The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
    – user583185
    Aug 13 at 5:21

















  • They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
    – user583185
    Aug 13 at 5:13






  • 1




    The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
    – user583185
    Aug 13 at 5:21
















They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
– user583185
Aug 13 at 5:13




They are listing the multiples of $p$ smaller than $p^r$. The part that you should not understand is "$x$ divides $p^r$ if and only if $x$ divides $p$", which is wrong.
– user583185
Aug 13 at 5:13




1




1




The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
– user583185
Aug 13 at 5:21





The solution should say: These elements are not relatively prime to $p^r$. Note that if $x=p^ka$, for $k>0$, then $nx=p^k(na)$, therefore it cannot generate $1$. Therefore, the elements that don't generate $mathbbZ_p^r$ are those that are multiples of $p$ smaller than $p^r$. Those are $p,2p,3p,...,p^r-p$...
– user583185
Aug 13 at 5:21











1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










$x in mathbbZ_p^r$ is not a generator of $mathbbZ_p^r$ iff its order is strictly smaller, that is, iff its order is a proper divisor of $p^r$ (this follows from Lagrange's Theorem). So, to count the number of non-generators of $mathbbZ_p^r$, we need to count the number of proper divisors of $p^r$. This is because an element $x in mathbbZ_p^r$ has order properly dividing $p^r$ iff $x$ is relatively prime to $p^r$ (show this!).



The proper divisors of $p^r$ are nothing but all the multiples of $p$ that are strictly smaller than $p^r$. These are nothing but
$$
p, 2p, 3p,dots,(p-1)p, p^2, (p+1)p,dots,(2p-1)p,2p^2,(2p+1)p,dots,(p^r-1-1)p.
$$
Observe that this list is nothing but the set of all multiples of $p$, from $1 cdot p$ to $(p^r-1-1) cdot p$. The next multiple of $p$ is $p^r-1 cdot p = p^r$, but we wanted all proper divisors, so we have omitted this last one.




Part of your confusion might stem from the fact that the statement




Note that for $x in mathbbZ$, $x$ divides $p^r$ if and only if $x$ divides $p$.




is incorrect. For instance, $p^r$ divides $p^r$, but $p^r$ does not divide $p$ if $r > 1$.






share|cite|improve this answer






















    Your Answer




    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "69"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2881016%2flet-p-be-prime-and-let-r-be-a-positive-integer-how-many-generators-does-m%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    $x in mathbbZ_p^r$ is not a generator of $mathbbZ_p^r$ iff its order is strictly smaller, that is, iff its order is a proper divisor of $p^r$ (this follows from Lagrange's Theorem). So, to count the number of non-generators of $mathbbZ_p^r$, we need to count the number of proper divisors of $p^r$. This is because an element $x in mathbbZ_p^r$ has order properly dividing $p^r$ iff $x$ is relatively prime to $p^r$ (show this!).



    The proper divisors of $p^r$ are nothing but all the multiples of $p$ that are strictly smaller than $p^r$. These are nothing but
    $$
    p, 2p, 3p,dots,(p-1)p, p^2, (p+1)p,dots,(2p-1)p,2p^2,(2p+1)p,dots,(p^r-1-1)p.
    $$
    Observe that this list is nothing but the set of all multiples of $p$, from $1 cdot p$ to $(p^r-1-1) cdot p$. The next multiple of $p$ is $p^r-1 cdot p = p^r$, but we wanted all proper divisors, so we have omitted this last one.




    Part of your confusion might stem from the fact that the statement




    Note that for $x in mathbbZ$, $x$ divides $p^r$ if and only if $x$ divides $p$.




    is incorrect. For instance, $p^r$ divides $p^r$, but $p^r$ does not divide $p$ if $r > 1$.






    share|cite|improve this answer


























      up vote
      3
      down vote



      accepted










      $x in mathbbZ_p^r$ is not a generator of $mathbbZ_p^r$ iff its order is strictly smaller, that is, iff its order is a proper divisor of $p^r$ (this follows from Lagrange's Theorem). So, to count the number of non-generators of $mathbbZ_p^r$, we need to count the number of proper divisors of $p^r$. This is because an element $x in mathbbZ_p^r$ has order properly dividing $p^r$ iff $x$ is relatively prime to $p^r$ (show this!).



      The proper divisors of $p^r$ are nothing but all the multiples of $p$ that are strictly smaller than $p^r$. These are nothing but
      $$
      p, 2p, 3p,dots,(p-1)p, p^2, (p+1)p,dots,(2p-1)p,2p^2,(2p+1)p,dots,(p^r-1-1)p.
      $$
      Observe that this list is nothing but the set of all multiples of $p$, from $1 cdot p$ to $(p^r-1-1) cdot p$. The next multiple of $p$ is $p^r-1 cdot p = p^r$, but we wanted all proper divisors, so we have omitted this last one.




      Part of your confusion might stem from the fact that the statement




      Note that for $x in mathbbZ$, $x$ divides $p^r$ if and only if $x$ divides $p$.




      is incorrect. For instance, $p^r$ divides $p^r$, but $p^r$ does not divide $p$ if $r > 1$.






      share|cite|improve this answer
























        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        $x in mathbbZ_p^r$ is not a generator of $mathbbZ_p^r$ iff its order is strictly smaller, that is, iff its order is a proper divisor of $p^r$ (this follows from Lagrange's Theorem). So, to count the number of non-generators of $mathbbZ_p^r$, we need to count the number of proper divisors of $p^r$. This is because an element $x in mathbbZ_p^r$ has order properly dividing $p^r$ iff $x$ is relatively prime to $p^r$ (show this!).



        The proper divisors of $p^r$ are nothing but all the multiples of $p$ that are strictly smaller than $p^r$. These are nothing but
        $$
        p, 2p, 3p,dots,(p-1)p, p^2, (p+1)p,dots,(2p-1)p,2p^2,(2p+1)p,dots,(p^r-1-1)p.
        $$
        Observe that this list is nothing but the set of all multiples of $p$, from $1 cdot p$ to $(p^r-1-1) cdot p$. The next multiple of $p$ is $p^r-1 cdot p = p^r$, but we wanted all proper divisors, so we have omitted this last one.




        Part of your confusion might stem from the fact that the statement




        Note that for $x in mathbbZ$, $x$ divides $p^r$ if and only if $x$ divides $p$.




        is incorrect. For instance, $p^r$ divides $p^r$, but $p^r$ does not divide $p$ if $r > 1$.






        share|cite|improve this answer














        $x in mathbbZ_p^r$ is not a generator of $mathbbZ_p^r$ iff its order is strictly smaller, that is, iff its order is a proper divisor of $p^r$ (this follows from Lagrange's Theorem). So, to count the number of non-generators of $mathbbZ_p^r$, we need to count the number of proper divisors of $p^r$. This is because an element $x in mathbbZ_p^r$ has order properly dividing $p^r$ iff $x$ is relatively prime to $p^r$ (show this!).



        The proper divisors of $p^r$ are nothing but all the multiples of $p$ that are strictly smaller than $p^r$. These are nothing but
        $$
        p, 2p, 3p,dots,(p-1)p, p^2, (p+1)p,dots,(2p-1)p,2p^2,(2p+1)p,dots,(p^r-1-1)p.
        $$
        Observe that this list is nothing but the set of all multiples of $p$, from $1 cdot p$ to $(p^r-1-1) cdot p$. The next multiple of $p$ is $p^r-1 cdot p = p^r$, but we wanted all proper divisors, so we have omitted this last one.




        Part of your confusion might stem from the fact that the statement




        Note that for $x in mathbbZ$, $x$ divides $p^r$ if and only if $x$ divides $p$.




        is incorrect. For instance, $p^r$ divides $p^r$, but $p^r$ does not divide $p$ if $r > 1$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Aug 13 at 21:36

























        answered Aug 13 at 5:20









        Brahadeesh

        3,95431549




        3,95431549






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2881016%2flet-p-be-prime-and-let-r-be-a-positive-integer-how-many-generators-does-m%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            tkz-euclide: tkzDrawCircle[R] not working

            How to combine Bézier curves to a surface?

            1st Magritte Awards