Prove that the generators of $mathbbZ_n$ are the integers $r$ such that $0leq r <n$ and $gcd(r,n)=1$. [duplicate]

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











up vote
0
down vote

favorite
1













This question already has an answer here:



  • How to find a generator of a cyclic group?

    8 answers



Can someone tell me whether my solution is okay? I based it off a proof for a more general theorem about cyclic groups and generators.




Prove that the generators of $mathbbZ_n$ are the integers $r$ such that $0leq r <n$ and $gcd(r,n)=1$.




Let $mathbbZ_n=langle 1 rangle$. Since $0leq r <n$, $langle rrangle subset langle 1 rangle$. Then let $mathbbZ_n=langle r rangle$ and assume that $d=gcd(r,n)>1$. Then there exist integers $t$ and $s$ such that $r=td$ and $n=sd$. Then $rs=tds=tn=1$ (since $|mathbbZ_n|=|langle 1 rangle|=n$). Then $|langle rrangle|leq s<n$. This forms a contradiction (if $|mathbbZ_n|=n$ and $mathbbZ_n=langle r rangle$ with $|langle rrangle|<n$, then $|mathbbZ_n|neq n$) by assuming that $gcd(r,n)>1$.







share|cite|improve this question














marked as duplicate by Jyrki Lahtonen group-theory
Users with the  group-theory badge can single-handedly close group-theory questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Aug 17 at 6:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • And a more recent version.
    – Jyrki Lahtonen
    Aug 17 at 6:43










  • And another.
    – Jyrki Lahtonen
    Aug 17 at 6:46














up vote
0
down vote

favorite
1













This question already has an answer here:



  • How to find a generator of a cyclic group?

    8 answers



Can someone tell me whether my solution is okay? I based it off a proof for a more general theorem about cyclic groups and generators.




Prove that the generators of $mathbbZ_n$ are the integers $r$ such that $0leq r <n$ and $gcd(r,n)=1$.




Let $mathbbZ_n=langle 1 rangle$. Since $0leq r <n$, $langle rrangle subset langle 1 rangle$. Then let $mathbbZ_n=langle r rangle$ and assume that $d=gcd(r,n)>1$. Then there exist integers $t$ and $s$ such that $r=td$ and $n=sd$. Then $rs=tds=tn=1$ (since $|mathbbZ_n|=|langle 1 rangle|=n$). Then $|langle rrangle|leq s<n$. This forms a contradiction (if $|mathbbZ_n|=n$ and $mathbbZ_n=langle r rangle$ with $|langle rrangle|<n$, then $|mathbbZ_n|neq n$) by assuming that $gcd(r,n)>1$.







share|cite|improve this question














marked as duplicate by Jyrki Lahtonen group-theory
Users with the  group-theory badge can single-handedly close group-theory questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Aug 17 at 6:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • And a more recent version.
    – Jyrki Lahtonen
    Aug 17 at 6:43










  • And another.
    – Jyrki Lahtonen
    Aug 17 at 6:46












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1






This question already has an answer here:



  • How to find a generator of a cyclic group?

    8 answers



Can someone tell me whether my solution is okay? I based it off a proof for a more general theorem about cyclic groups and generators.




Prove that the generators of $mathbbZ_n$ are the integers $r$ such that $0leq r <n$ and $gcd(r,n)=1$.




Let $mathbbZ_n=langle 1 rangle$. Since $0leq r <n$, $langle rrangle subset langle 1 rangle$. Then let $mathbbZ_n=langle r rangle$ and assume that $d=gcd(r,n)>1$. Then there exist integers $t$ and $s$ such that $r=td$ and $n=sd$. Then $rs=tds=tn=1$ (since $|mathbbZ_n|=|langle 1 rangle|=n$). Then $|langle rrangle|leq s<n$. This forms a contradiction (if $|mathbbZ_n|=n$ and $mathbbZ_n=langle r rangle$ with $|langle rrangle|<n$, then $|mathbbZ_n|neq n$) by assuming that $gcd(r,n)>1$.







share|cite|improve this question















This question already has an answer here:



  • How to find a generator of a cyclic group?

    8 answers



Can someone tell me whether my solution is okay? I based it off a proof for a more general theorem about cyclic groups and generators.




Prove that the generators of $mathbbZ_n$ are the integers $r$ such that $0leq r <n$ and $gcd(r,n)=1$.




Let $mathbbZ_n=langle 1 rangle$. Since $0leq r <n$, $langle rrangle subset langle 1 rangle$. Then let $mathbbZ_n=langle r rangle$ and assume that $d=gcd(r,n)>1$. Then there exist integers $t$ and $s$ such that $r=td$ and $n=sd$. Then $rs=tds=tn=1$ (since $|mathbbZ_n|=|langle 1 rangle|=n$). Then $|langle rrangle|leq s<n$. This forms a contradiction (if $|mathbbZ_n|=n$ and $mathbbZ_n=langle r rangle$ with $|langle rrangle|<n$, then $|mathbbZ_n|neq n$) by assuming that $gcd(r,n)>1$.





This question already has an answer here:



  • How to find a generator of a cyclic group?

    8 answers









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 17 at 0:13









Michael Hardy

205k23187463




205k23187463










asked Aug 16 at 23:08









numericalorange

1,271110




1,271110




marked as duplicate by Jyrki Lahtonen group-theory
Users with the  group-theory badge can single-handedly close group-theory questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Aug 17 at 6:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by Jyrki Lahtonen group-theory
Users with the  group-theory badge can single-handedly close group-theory questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Aug 17 at 6:42


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.













  • And a more recent version.
    – Jyrki Lahtonen
    Aug 17 at 6:43










  • And another.
    – Jyrki Lahtonen
    Aug 17 at 6:46
















  • And a more recent version.
    – Jyrki Lahtonen
    Aug 17 at 6:43










  • And another.
    – Jyrki Lahtonen
    Aug 17 at 6:46















And a more recent version.
– Jyrki Lahtonen
Aug 17 at 6:43




And a more recent version.
– Jyrki Lahtonen
Aug 17 at 6:43












And another.
– Jyrki Lahtonen
Aug 17 at 6:46




And another.
– Jyrki Lahtonen
Aug 17 at 6:46










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










There are several issues. For instance, you can't say “Let $mathbbZ=langle1rangle$”, because an assertion of the type “Let $A=cdots$” should be a definition of $A$ and you are clearly not defining $mathbbZ_n$.



Your idea of proving that if $gcd(r,n)>1$, then $langle rrangleneqmathbbZ_n$ is correct. What you proved was that $bigllvertlangle rranglebigrrvert<n=lvertmathbbZ_nrvert$. But this is only half of what you were supposed to have proved. Indeed, it remains to be proved that if $gcd(r,n)=1$, then $langle rrangle=mathbbZ_n$. This can be done noting that, if $0<k,k'leqslant n$ and $kneq k'$, then $krneq k'r$ in $mathbbZ_n$; which means that $nnmid kr-k'r$. But that's easy: if $nmid(k-k')r$ then, since $gcd(r,n)=1$, then $nmid k-k'$, which is impossible, since$$k-k'inbiglpm1,pm2,ldotspm(n-1)bigrsetminus0.$$This proves that $bigllvertlangle rranglebigrrvert=n=lvertmathbbZ_nrvert$ and that therefore $langle rrangle=mathbbZ_n$.






share|cite|improve this answer



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    There are several issues. For instance, you can't say “Let $mathbbZ=langle1rangle$”, because an assertion of the type “Let $A=cdots$” should be a definition of $A$ and you are clearly not defining $mathbbZ_n$.



    Your idea of proving that if $gcd(r,n)>1$, then $langle rrangleneqmathbbZ_n$ is correct. What you proved was that $bigllvertlangle rranglebigrrvert<n=lvertmathbbZ_nrvert$. But this is only half of what you were supposed to have proved. Indeed, it remains to be proved that if $gcd(r,n)=1$, then $langle rrangle=mathbbZ_n$. This can be done noting that, if $0<k,k'leqslant n$ and $kneq k'$, then $krneq k'r$ in $mathbbZ_n$; which means that $nnmid kr-k'r$. But that's easy: if $nmid(k-k')r$ then, since $gcd(r,n)=1$, then $nmid k-k'$, which is impossible, since$$k-k'inbiglpm1,pm2,ldotspm(n-1)bigrsetminus0.$$This proves that $bigllvertlangle rranglebigrrvert=n=lvertmathbbZ_nrvert$ and that therefore $langle rrangle=mathbbZ_n$.






    share|cite|improve this answer
























      up vote
      1
      down vote



      accepted










      There are several issues. For instance, you can't say “Let $mathbbZ=langle1rangle$”, because an assertion of the type “Let $A=cdots$” should be a definition of $A$ and you are clearly not defining $mathbbZ_n$.



      Your idea of proving that if $gcd(r,n)>1$, then $langle rrangleneqmathbbZ_n$ is correct. What you proved was that $bigllvertlangle rranglebigrrvert<n=lvertmathbbZ_nrvert$. But this is only half of what you were supposed to have proved. Indeed, it remains to be proved that if $gcd(r,n)=1$, then $langle rrangle=mathbbZ_n$. This can be done noting that, if $0<k,k'leqslant n$ and $kneq k'$, then $krneq k'r$ in $mathbbZ_n$; which means that $nnmid kr-k'r$. But that's easy: if $nmid(k-k')r$ then, since $gcd(r,n)=1$, then $nmid k-k'$, which is impossible, since$$k-k'inbiglpm1,pm2,ldotspm(n-1)bigrsetminus0.$$This proves that $bigllvertlangle rranglebigrrvert=n=lvertmathbbZ_nrvert$ and that therefore $langle rrangle=mathbbZ_n$.






      share|cite|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        There are several issues. For instance, you can't say “Let $mathbbZ=langle1rangle$”, because an assertion of the type “Let $A=cdots$” should be a definition of $A$ and you are clearly not defining $mathbbZ_n$.



        Your idea of proving that if $gcd(r,n)>1$, then $langle rrangleneqmathbbZ_n$ is correct. What you proved was that $bigllvertlangle rranglebigrrvert<n=lvertmathbbZ_nrvert$. But this is only half of what you were supposed to have proved. Indeed, it remains to be proved that if $gcd(r,n)=1$, then $langle rrangle=mathbbZ_n$. This can be done noting that, if $0<k,k'leqslant n$ and $kneq k'$, then $krneq k'r$ in $mathbbZ_n$; which means that $nnmid kr-k'r$. But that's easy: if $nmid(k-k')r$ then, since $gcd(r,n)=1$, then $nmid k-k'$, which is impossible, since$$k-k'inbiglpm1,pm2,ldotspm(n-1)bigrsetminus0.$$This proves that $bigllvertlangle rranglebigrrvert=n=lvertmathbbZ_nrvert$ and that therefore $langle rrangle=mathbbZ_n$.






        share|cite|improve this answer












        There are several issues. For instance, you can't say “Let $mathbbZ=langle1rangle$”, because an assertion of the type “Let $A=cdots$” should be a definition of $A$ and you are clearly not defining $mathbbZ_n$.



        Your idea of proving that if $gcd(r,n)>1$, then $langle rrangleneqmathbbZ_n$ is correct. What you proved was that $bigllvertlangle rranglebigrrvert<n=lvertmathbbZ_nrvert$. But this is only half of what you were supposed to have proved. Indeed, it remains to be proved that if $gcd(r,n)=1$, then $langle rrangle=mathbbZ_n$. This can be done noting that, if $0<k,k'leqslant n$ and $kneq k'$, then $krneq k'r$ in $mathbbZ_n$; which means that $nnmid kr-k'r$. But that's easy: if $nmid(k-k')r$ then, since $gcd(r,n)=1$, then $nmid k-k'$, which is impossible, since$$k-k'inbiglpm1,pm2,ldotspm(n-1)bigrsetminus0.$$This proves that $bigllvertlangle rranglebigrrvert=n=lvertmathbbZ_nrvert$ and that therefore $langle rrangle=mathbbZ_n$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 16 at 23:26









        José Carlos Santos

        117k1699179




        117k1699179












            這個網誌中的熱門文章

            tkz-euclide: tkzDrawCircle[R] not working

            How to combine Bézier curves to a surface?

            1st Magritte Awards