If $(6,n)=1$, prove that $n^2-1$ is divisible by $24$. [duplicate]











up vote
-1
down vote

favorite













This question already has an answer here:




  • For any prime $p > 3$, why is $p^2-1$ always divisible by 24?

    16 answers




If $(6,n)=1$, prove that $n^2-1$ is divisible by $24$.










share|cite|improve this question















marked as duplicate by Théophile, T. Bongers, Bill Dubuque abstract-algebra
Users with the  abstract-algebra badge can single-handedly close abstract-algebra 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();
}
);
});
});
2 days ago


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.















  • Okay, what are your thoughts on this so far? What exactly is your question?
    – Théophile
    2 days ago










  • I assume this means $gcd(6,n)=1$?
    – Kevin Long
    2 days ago










  • Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
    – Bill Dubuque
    2 days ago

















up vote
-1
down vote

favorite













This question already has an answer here:




  • For any prime $p > 3$, why is $p^2-1$ always divisible by 24?

    16 answers




If $(6,n)=1$, prove that $n^2-1$ is divisible by $24$.










share|cite|improve this question















marked as duplicate by Théophile, T. Bongers, Bill Dubuque abstract-algebra
Users with the  abstract-algebra badge can single-handedly close abstract-algebra 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();
}
);
});
});
2 days ago


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.















  • Okay, what are your thoughts on this so far? What exactly is your question?
    – Théophile
    2 days ago










  • I assume this means $gcd(6,n)=1$?
    – Kevin Long
    2 days ago










  • Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
    – Bill Dubuque
    2 days ago















up vote
-1
down vote

favorite









up vote
-1
down vote

favorite












This question already has an answer here:




  • For any prime $p > 3$, why is $p^2-1$ always divisible by 24?

    16 answers




If $(6,n)=1$, prove that $n^2-1$ is divisible by $24$.










share|cite|improve this question
















This question already has an answer here:




  • For any prime $p > 3$, why is $p^2-1$ always divisible by 24?

    16 answers




If $(6,n)=1$, prove that $n^2-1$ is divisible by $24$.





This question already has an answer here:




  • For any prime $p > 3$, why is $p^2-1$ always divisible by 24?

    16 answers








linear-algebra abstract-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 2 days ago









David G. Stork

8,97421232




8,97421232










asked 2 days ago









ten1o

1335




1335




marked as duplicate by Théophile, T. Bongers, Bill Dubuque abstract-algebra
Users with the  abstract-algebra badge can single-handedly close abstract-algebra 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();
}
);
});
});
2 days ago


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 Théophile, T. Bongers, Bill Dubuque abstract-algebra
Users with the  abstract-algebra badge can single-handedly close abstract-algebra 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();
}
);
});
});
2 days ago


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.














  • Okay, what are your thoughts on this so far? What exactly is your question?
    – Théophile
    2 days ago










  • I assume this means $gcd(6,n)=1$?
    – Kevin Long
    2 days ago










  • Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
    – Bill Dubuque
    2 days ago




















  • Okay, what are your thoughts on this so far? What exactly is your question?
    – Théophile
    2 days ago










  • I assume this means $gcd(6,n)=1$?
    – Kevin Long
    2 days ago










  • Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
    – Bill Dubuque
    2 days ago


















Okay, what are your thoughts on this so far? What exactly is your question?
– Théophile
2 days ago




Okay, what are your thoughts on this so far? What exactly is your question?
– Théophile
2 days ago












I assume this means $gcd(6,n)=1$?
– Kevin Long
2 days ago




I assume this means $gcd(6,n)=1$?
– Kevin Long
2 days ago












Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
– Bill Dubuque
2 days ago






Most (if not all) of the proofs in the dupe apply here (even though the title restricts to primes $> 3) $
– Bill Dubuque
2 days ago












3 Answers
3






active

oldest

votes

















up vote
2
down vote













Hint



$$(6,n)=1implies$$
$ n=6k+1 $ or $n=6k-1$.



in the first case



$$n^2-1=36k^2+12k=12k(3k+1)$$



in the second



$$n^2-1=12k(3k-1).$$



If $k$ is even ....






share|cite|improve this answer





















  • math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
    – lab bhattacharjee
    2 days ago


















up vote
0
down vote













If $(6,n) = 1,$ then $n equiv 1 pmod 6$ or $n equiv 5 pmod 6,$ since $varphi(6) = 2.$
So, we have two cases:



$n equiv 1 pmod 6:$
$$n equiv 1 pmod 6 Rightarrow n^2 equiv 1^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



$n equiv 5 pmod 6 Rightarrow n equiv -1 pmod 6:$
$$n equiv -1 pmod 6 Rightarrow n^2 equiv (-1)^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



In both, we conclude that $n^2 - 1 equiv 0 pmod{24}.$ Therefore, $n^2 - 1$ is divisible by $24$ when $(6,n) = 1.$






share|cite|improve this answer




























    up vote
    0
    down vote













    $(6,n)=1$ $implies$ $n$ is odd.
    Therefore , $$n^{2}equiv 1 pmod8$$
    Also $(3,n)=1$ , since $(2times3,n)=1$
    Therefore by Fermat's theorem ,$$n^2equiv 1pmod3$$.
    Now you can directly combine these two congruence, since $(3,8)=1$



    Therefore, $$n^2equiv 1pmod{24}$$






    share|cite|improve this answer








    New contributor




    Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      Hint



      $$(6,n)=1implies$$
      $ n=6k+1 $ or $n=6k-1$.



      in the first case



      $$n^2-1=36k^2+12k=12k(3k+1)$$



      in the second



      $$n^2-1=12k(3k-1).$$



      If $k$ is even ....






      share|cite|improve this answer





















      • math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
        – lab bhattacharjee
        2 days ago















      up vote
      2
      down vote













      Hint



      $$(6,n)=1implies$$
      $ n=6k+1 $ or $n=6k-1$.



      in the first case



      $$n^2-1=36k^2+12k=12k(3k+1)$$



      in the second



      $$n^2-1=12k(3k-1).$$



      If $k$ is even ....






      share|cite|improve this answer





















      • math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
        – lab bhattacharjee
        2 days ago













      up vote
      2
      down vote










      up vote
      2
      down vote









      Hint



      $$(6,n)=1implies$$
      $ n=6k+1 $ or $n=6k-1$.



      in the first case



      $$n^2-1=36k^2+12k=12k(3k+1)$$



      in the second



      $$n^2-1=12k(3k-1).$$



      If $k$ is even ....






      share|cite|improve this answer












      Hint



      $$(6,n)=1implies$$
      $ n=6k+1 $ or $n=6k-1$.



      in the first case



      $$n^2-1=36k^2+12k=12k(3k+1)$$



      in the second



      $$n^2-1=12k(3k-1).$$



      If $k$ is even ....







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered 2 days ago









      hamam_Abdallah

      36.5k21533




      36.5k21533












      • math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
        – lab bhattacharjee
        2 days ago


















      • math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
        – lab bhattacharjee
        2 days ago
















      math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
      – lab bhattacharjee
      2 days ago




      math.stackexchange.com/questions/507451/suppose-that-p-≥-q-≥-5-are-both-prime-numbers-prove-that-24-divides-p2/507511#507511
      – lab bhattacharjee
      2 days ago










      up vote
      0
      down vote













      If $(6,n) = 1,$ then $n equiv 1 pmod 6$ or $n equiv 5 pmod 6,$ since $varphi(6) = 2.$
      So, we have two cases:



      $n equiv 1 pmod 6:$
      $$n equiv 1 pmod 6 Rightarrow n^2 equiv 1^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



      $n equiv 5 pmod 6 Rightarrow n equiv -1 pmod 6:$
      $$n equiv -1 pmod 6 Rightarrow n^2 equiv (-1)^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



      In both, we conclude that $n^2 - 1 equiv 0 pmod{24}.$ Therefore, $n^2 - 1$ is divisible by $24$ when $(6,n) = 1.$






      share|cite|improve this answer

























        up vote
        0
        down vote













        If $(6,n) = 1,$ then $n equiv 1 pmod 6$ or $n equiv 5 pmod 6,$ since $varphi(6) = 2.$
        So, we have two cases:



        $n equiv 1 pmod 6:$
        $$n equiv 1 pmod 6 Rightarrow n^2 equiv 1^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



        $n equiv 5 pmod 6 Rightarrow n equiv -1 pmod 6:$
        $$n equiv -1 pmod 6 Rightarrow n^2 equiv (-1)^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



        In both, we conclude that $n^2 - 1 equiv 0 pmod{24}.$ Therefore, $n^2 - 1$ is divisible by $24$ when $(6,n) = 1.$






        share|cite|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          If $(6,n) = 1,$ then $n equiv 1 pmod 6$ or $n equiv 5 pmod 6,$ since $varphi(6) = 2.$
          So, we have two cases:



          $n equiv 1 pmod 6:$
          $$n equiv 1 pmod 6 Rightarrow n^2 equiv 1^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



          $n equiv 5 pmod 6 Rightarrow n equiv -1 pmod 6:$
          $$n equiv -1 pmod 6 Rightarrow n^2 equiv (-1)^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



          In both, we conclude that $n^2 - 1 equiv 0 pmod{24}.$ Therefore, $n^2 - 1$ is divisible by $24$ when $(6,n) = 1.$






          share|cite|improve this answer












          If $(6,n) = 1,$ then $n equiv 1 pmod 6$ or $n equiv 5 pmod 6,$ since $varphi(6) = 2.$
          So, we have two cases:



          $n equiv 1 pmod 6:$
          $$n equiv 1 pmod 6 Rightarrow n^2 equiv 1^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



          $n equiv 5 pmod 6 Rightarrow n equiv -1 pmod 6:$
          $$n equiv -1 pmod 6 Rightarrow n^2 equiv (-1)^2 pmod 6 Rightarrow n^2 - 1 equiv 0 pmod 6 Rightarrow boxed{n^2 - 1 equiv 0 pmod{24}}$$



          In both, we conclude that $n^2 - 1 equiv 0 pmod{24}.$ Therefore, $n^2 - 1$ is divisible by $24$ when $(6,n) = 1.$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered 2 days ago









          674123173797 - 4

          1237




          1237






















              up vote
              0
              down vote













              $(6,n)=1$ $implies$ $n$ is odd.
              Therefore , $$n^{2}equiv 1 pmod8$$
              Also $(3,n)=1$ , since $(2times3,n)=1$
              Therefore by Fermat's theorem ,$$n^2equiv 1pmod3$$.
              Now you can directly combine these two congruence, since $(3,8)=1$



              Therefore, $$n^2equiv 1pmod{24}$$






              share|cite|improve this answer








              New contributor




              Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                up vote
                0
                down vote













                $(6,n)=1$ $implies$ $n$ is odd.
                Therefore , $$n^{2}equiv 1 pmod8$$
                Also $(3,n)=1$ , since $(2times3,n)=1$
                Therefore by Fermat's theorem ,$$n^2equiv 1pmod3$$.
                Now you can directly combine these two congruence, since $(3,8)=1$



                Therefore, $$n^2equiv 1pmod{24}$$






                share|cite|improve this answer








                New contributor




                Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  $(6,n)=1$ $implies$ $n$ is odd.
                  Therefore , $$n^{2}equiv 1 pmod8$$
                  Also $(3,n)=1$ , since $(2times3,n)=1$
                  Therefore by Fermat's theorem ,$$n^2equiv 1pmod3$$.
                  Now you can directly combine these two congruence, since $(3,8)=1$



                  Therefore, $$n^2equiv 1pmod{24}$$






                  share|cite|improve this answer








                  New contributor




                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  $(6,n)=1$ $implies$ $n$ is odd.
                  Therefore , $$n^{2}equiv 1 pmod8$$
                  Also $(3,n)=1$ , since $(2times3,n)=1$
                  Therefore by Fermat's theorem ,$$n^2equiv 1pmod3$$.
                  Now you can directly combine these two congruence, since $(3,8)=1$



                  Therefore, $$n^2equiv 1pmod{24}$$







                  share|cite|improve this answer








                  New contributor




                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|cite|improve this answer



                  share|cite|improve this answer






                  New contributor




                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 2 days ago









                  Samurai

                  987




                  987




                  New contributor




                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Samurai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.















                      Popular posts from this blog

                      The term 'EXEC' is not recognized as the name of a cmdlet Powershell

                      NPM command prompt closes immediately [closed]

                      Error binding properties and functions in emscripten