Calculate: $177^{20^{100500}} (mathrm{mod} 60)$












4












$begingroup$


I'm taking my first steps into modular arithmetic and I'm already stuck.




Calculate:



$$177^{20^{100500}} (mathrm{mod} 60)$$




I don't know how to tackle this one. So far I've been applying Euler's Theorem and Fermat Little Theorem to compute more simple expressions, but here we notice that $mathrm{gdc}(177,60) = 3 neq 1$ so, to my understanding, I can't apply any of the two theorems. I tried the following instead:



begin{align}
177^{20^{100500}} (mathrm{mod} 60) &equiv (3cdot 59)^{20^{100500}} mathrm{mod} 60\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (59 mathrm{mod} 60)^{20^{100500}}\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (-1)^{20^{100500}}
end{align}



Since $20^{n}$ is even $forall n in mathbb{N}$ then $(-1)^{20^{100500}} = 1$. Therefore



$$177^{20^{100500}} (mathrm{mod} 60)equiv 3 (mathrm{mod} 60)^{20^{100500}}$$



But I have no idea what to do here.



Thanks for your help.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Hint: $3^1equiv 3^5pmod{60}$
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:50










  • $begingroup$
    @rtybase he already figured that out
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:51
















4












$begingroup$


I'm taking my first steps into modular arithmetic and I'm already stuck.




Calculate:



$$177^{20^{100500}} (mathrm{mod} 60)$$




I don't know how to tackle this one. So far I've been applying Euler's Theorem and Fermat Little Theorem to compute more simple expressions, but here we notice that $mathrm{gdc}(177,60) = 3 neq 1$ so, to my understanding, I can't apply any of the two theorems. I tried the following instead:



begin{align}
177^{20^{100500}} (mathrm{mod} 60) &equiv (3cdot 59)^{20^{100500}} mathrm{mod} 60\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (59 mathrm{mod} 60)^{20^{100500}}\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (-1)^{20^{100500}}
end{align}



Since $20^{n}$ is even $forall n in mathbb{N}$ then $(-1)^{20^{100500}} = 1$. Therefore



$$177^{20^{100500}} (mathrm{mod} 60)equiv 3 (mathrm{mod} 60)^{20^{100500}}$$



But I have no idea what to do here.



Thanks for your help.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Hint: $3^1equiv 3^5pmod{60}$
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:50










  • $begingroup$
    @rtybase he already figured that out
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:51














4












4








4


1



$begingroup$


I'm taking my first steps into modular arithmetic and I'm already stuck.




Calculate:



$$177^{20^{100500}} (mathrm{mod} 60)$$




I don't know how to tackle this one. So far I've been applying Euler's Theorem and Fermat Little Theorem to compute more simple expressions, but here we notice that $mathrm{gdc}(177,60) = 3 neq 1$ so, to my understanding, I can't apply any of the two theorems. I tried the following instead:



begin{align}
177^{20^{100500}} (mathrm{mod} 60) &equiv (3cdot 59)^{20^{100500}} mathrm{mod} 60\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (59 mathrm{mod} 60)^{20^{100500}}\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (-1)^{20^{100500}}
end{align}



Since $20^{n}$ is even $forall n in mathbb{N}$ then $(-1)^{20^{100500}} = 1$. Therefore



$$177^{20^{100500}} (mathrm{mod} 60)equiv 3 (mathrm{mod} 60)^{20^{100500}}$$



But I have no idea what to do here.



Thanks for your help.










share|cite|improve this question











$endgroup$




I'm taking my first steps into modular arithmetic and I'm already stuck.




Calculate:



$$177^{20^{100500}} (mathrm{mod} 60)$$




I don't know how to tackle this one. So far I've been applying Euler's Theorem and Fermat Little Theorem to compute more simple expressions, but here we notice that $mathrm{gdc}(177,60) = 3 neq 1$ so, to my understanding, I can't apply any of the two theorems. I tried the following instead:



begin{align}
177^{20^{100500}} (mathrm{mod} 60) &equiv (3cdot 59)^{20^{100500}} mathrm{mod} 60\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (59 mathrm{mod} 60)^{20^{100500}}\
&equiv (3 mathrm{mod} 60)^{20^{100500}} cdot (-1)^{20^{100500}}
end{align}



Since $20^{n}$ is even $forall n in mathbb{N}$ then $(-1)^{20^{100500}} = 1$. Therefore



$$177^{20^{100500}} (mathrm{mod} 60)equiv 3 (mathrm{mod} 60)^{20^{100500}}$$



But I have no idea what to do here.



Thanks for your help.







modular-arithmetic exponentiation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 22 '17 at 21:50







Jazz

















asked Mar 22 '17 at 21:45









JazzJazz

905610




905610












  • $begingroup$
    Hint: $3^1equiv 3^5pmod{60}$
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:50










  • $begingroup$
    @rtybase he already figured that out
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:51


















  • $begingroup$
    Hint: $3^1equiv 3^5pmod{60}$
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:50










  • $begingroup$
    @rtybase he already figured that out
    $endgroup$
    – JMoravitz
    Mar 22 '17 at 21:51
















$begingroup$
Hint: $3^1equiv 3^5pmod{60}$
$endgroup$
– JMoravitz
Mar 22 '17 at 21:50




$begingroup$
Hint: $3^1equiv 3^5pmod{60}$
$endgroup$
– JMoravitz
Mar 22 '17 at 21:50












$begingroup$
@rtybase he already figured that out
$endgroup$
– JMoravitz
Mar 22 '17 at 21:51




$begingroup$
@rtybase he already figured that out
$endgroup$
– JMoravitz
Mar 22 '17 at 21:51










4 Answers
4






active

oldest

votes


















3












$begingroup$

You got off to a good start there.



You know about Euler's Theroem, and Euler's totient, so I can add another tool to the box with the Carmichael function $lambda$ which will give you the largest exponential cycle length (and still a value that all shorter cycles will divide). This combines prime power values through least common multiple rather than simple multiplication as for Euler's totient.



Here $lambda(60) ={rm lcm}(lambda(2^2),lambda(3),lambda(5)) ={rm lcm}(2,2,4) =4$. So for any odd number $a$, since there are no higher odd prime powers in $60$, you will have $a^{k+4}equiv a^k bmod 60$ for $kge 1$. (For even numbers you might need $kge 2$, since $2^2 mid 60$). So $20^{100500}$ is just a huge multiple of $4$, and we can cast out all those $4$s all the way down to $3^4$. So the final result is



$$177^{20^{100500}} equiv underset {(text{your result})}{3^{20^{100500}}}equiv underset {(lambda(60)=4)}{3^4}equiv 81equiv 21 bmod 60
$$






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
    $endgroup$
    – Jazz
    Mar 22 '17 at 23:01








  • 1




    $begingroup$
    $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
    $endgroup$
    – Joffan
    Mar 22 '17 at 23:02





















2












$begingroup$

$3^5=3pmod{60}$ so take the exponent modulo $4$ and then check to see if you need to multiply by $-1$.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
    $endgroup$
    – Jazz
    Mar 22 '17 at 21:57








  • 1




    $begingroup$
    @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
    $endgroup$
    – Stella Biderman
    Mar 22 '17 at 22:09



















2












$begingroup$

The easiest way to handle such extremely powers is to calculate the power modulo $3$, $4$ and $5$ and apply the chinese remainder theorem. These modulo calculations are not very difficult :



Modulo $3$ is trivial; $177$ is divisble by $3$, so the residue is $0$.



Modulo $4$ is trivial as well ; $177$ has residue $1$ modulo $4$, so the power has residue $1$ modulo $4$ as well.



For Modulo $5$, you can reduce the exponent modulo $4$, which gives $0$, so the residue modulo $5$ is $2^0=1$.



So, the power is congruent $0$ modulo $3$ , $1$ modulo $4$ and $1$ modulo $5$. That gives $21$ modulo $60$






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
    $endgroup$
    – Misha Lavrov
    Mar 22 '17 at 21:55










  • $begingroup$
    A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
    $endgroup$
    – Peter
    Mar 22 '17 at 22:54



















0












$begingroup$

The answer is $21$. Proof follows:



First thing to notice is that the sequence
$$
a_n=177^nmod{60}
$$

is periodic with period $4$. It starts off like: ${57, 9, 33, 21, 57, 9, 33, 21,...}$. One can show this by induction. Therefore if $n$ is a multiple of $4$, $a_n=21$. The exponent $20^m$ is a multiple of $4$ for all positive integers $m$ which completes the proof.






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%2f2198953%2fcalculate-17720100500-mathrmmod-60%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    You got off to a good start there.



    You know about Euler's Theroem, and Euler's totient, so I can add another tool to the box with the Carmichael function $lambda$ which will give you the largest exponential cycle length (and still a value that all shorter cycles will divide). This combines prime power values through least common multiple rather than simple multiplication as for Euler's totient.



    Here $lambda(60) ={rm lcm}(lambda(2^2),lambda(3),lambda(5)) ={rm lcm}(2,2,4) =4$. So for any odd number $a$, since there are no higher odd prime powers in $60$, you will have $a^{k+4}equiv a^k bmod 60$ for $kge 1$. (For even numbers you might need $kge 2$, since $2^2 mid 60$). So $20^{100500}$ is just a huge multiple of $4$, and we can cast out all those $4$s all the way down to $3^4$. So the final result is



    $$177^{20^{100500}} equiv underset {(text{your result})}{3^{20^{100500}}}equiv underset {(lambda(60)=4)}{3^4}equiv 81equiv 21 bmod 60
    $$






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
      $endgroup$
      – Jazz
      Mar 22 '17 at 23:01








    • 1




      $begingroup$
      $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
      $endgroup$
      – Joffan
      Mar 22 '17 at 23:02


















    3












    $begingroup$

    You got off to a good start there.



    You know about Euler's Theroem, and Euler's totient, so I can add another tool to the box with the Carmichael function $lambda$ which will give you the largest exponential cycle length (and still a value that all shorter cycles will divide). This combines prime power values through least common multiple rather than simple multiplication as for Euler's totient.



    Here $lambda(60) ={rm lcm}(lambda(2^2),lambda(3),lambda(5)) ={rm lcm}(2,2,4) =4$. So for any odd number $a$, since there are no higher odd prime powers in $60$, you will have $a^{k+4}equiv a^k bmod 60$ for $kge 1$. (For even numbers you might need $kge 2$, since $2^2 mid 60$). So $20^{100500}$ is just a huge multiple of $4$, and we can cast out all those $4$s all the way down to $3^4$. So the final result is



    $$177^{20^{100500}} equiv underset {(text{your result})}{3^{20^{100500}}}equiv underset {(lambda(60)=4)}{3^4}equiv 81equiv 21 bmod 60
    $$






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
      $endgroup$
      – Jazz
      Mar 22 '17 at 23:01








    • 1




      $begingroup$
      $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
      $endgroup$
      – Joffan
      Mar 22 '17 at 23:02
















    3












    3








    3





    $begingroup$

    You got off to a good start there.



    You know about Euler's Theroem, and Euler's totient, so I can add another tool to the box with the Carmichael function $lambda$ which will give you the largest exponential cycle length (and still a value that all shorter cycles will divide). This combines prime power values through least common multiple rather than simple multiplication as for Euler's totient.



    Here $lambda(60) ={rm lcm}(lambda(2^2),lambda(3),lambda(5)) ={rm lcm}(2,2,4) =4$. So for any odd number $a$, since there are no higher odd prime powers in $60$, you will have $a^{k+4}equiv a^k bmod 60$ for $kge 1$. (For even numbers you might need $kge 2$, since $2^2 mid 60$). So $20^{100500}$ is just a huge multiple of $4$, and we can cast out all those $4$s all the way down to $3^4$. So the final result is



    $$177^{20^{100500}} equiv underset {(text{your result})}{3^{20^{100500}}}equiv underset {(lambda(60)=4)}{3^4}equiv 81equiv 21 bmod 60
    $$






    share|cite|improve this answer









    $endgroup$



    You got off to a good start there.



    You know about Euler's Theroem, and Euler's totient, so I can add another tool to the box with the Carmichael function $lambda$ which will give you the largest exponential cycle length (and still a value that all shorter cycles will divide). This combines prime power values through least common multiple rather than simple multiplication as for Euler's totient.



    Here $lambda(60) ={rm lcm}(lambda(2^2),lambda(3),lambda(5)) ={rm lcm}(2,2,4) =4$. So for any odd number $a$, since there are no higher odd prime powers in $60$, you will have $a^{k+4}equiv a^k bmod 60$ for $kge 1$. (For even numbers you might need $kge 2$, since $2^2 mid 60$). So $20^{100500}$ is just a huge multiple of $4$, and we can cast out all those $4$s all the way down to $3^4$. So the final result is



    $$177^{20^{100500}} equiv underset {(text{your result})}{3^{20^{100500}}}equiv underset {(lambda(60)=4)}{3^4}equiv 81equiv 21 bmod 60
    $$







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Mar 22 '17 at 22:29









    JoffanJoffan

    32.2k43269




    32.2k43269












    • $begingroup$
      This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
      $endgroup$
      – Jazz
      Mar 22 '17 at 23:01








    • 1




      $begingroup$
      $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
      $endgroup$
      – Joffan
      Mar 22 '17 at 23:02




















    • $begingroup$
      This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
      $endgroup$
      – Jazz
      Mar 22 '17 at 23:01








    • 1




      $begingroup$
      $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
      $endgroup$
      – Joffan
      Mar 22 '17 at 23:02


















    $begingroup$
    This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
    $endgroup$
    – Jazz
    Mar 22 '17 at 23:01






    $begingroup$
    This is indeed pretty neat (:. I will have a closer look at this function. And I have a question: what would happen if instead of $3^{20^{100500}}$ we'd have had $3^{21^{100500}}$. It seems to me that the exponent is not a multiple of $4$. I think we could write $21^{100500} = qp + 4$ for some suitable positive integers $p$ and $q$, but then how do we go about reducing the expression any further?
    $endgroup$
    – Jazz
    Mar 22 '17 at 23:01






    1




    1




    $begingroup$
    $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
    $endgroup$
    – Joffan
    Mar 22 '17 at 23:02






    $begingroup$
    $21^xequiv 1^x equiv 1bmod 4$, so that would be even easier.
    $endgroup$
    – Joffan
    Mar 22 '17 at 23:02













    2












    $begingroup$

    $3^5=3pmod{60}$ so take the exponent modulo $4$ and then check to see if you need to multiply by $-1$.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
      $endgroup$
      – Jazz
      Mar 22 '17 at 21:57








    • 1




      $begingroup$
      @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
      $endgroup$
      – Stella Biderman
      Mar 22 '17 at 22:09
















    2












    $begingroup$

    $3^5=3pmod{60}$ so take the exponent modulo $4$ and then check to see if you need to multiply by $-1$.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
      $endgroup$
      – Jazz
      Mar 22 '17 at 21:57








    • 1




      $begingroup$
      @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
      $endgroup$
      – Stella Biderman
      Mar 22 '17 at 22:09














    2












    2








    2





    $begingroup$

    $3^5=3pmod{60}$ so take the exponent modulo $4$ and then check to see if you need to multiply by $-1$.






    share|cite|improve this answer











    $endgroup$



    $3^5=3pmod{60}$ so take the exponent modulo $4$ and then check to see if you need to multiply by $-1$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Mar 22 '17 at 21:57

























    answered Mar 22 '17 at 21:51









    Stella BidermanStella Biderman

    26.6k63375




    26.6k63375












    • $begingroup$
      Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
      $endgroup$
      – Jazz
      Mar 22 '17 at 21:57








    • 1




      $begingroup$
      @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
      $endgroup$
      – Stella Biderman
      Mar 22 '17 at 22:09


















    • $begingroup$
      Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
      $endgroup$
      – Jazz
      Mar 22 '17 at 21:57








    • 1




      $begingroup$
      @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
      $endgroup$
      – Stella Biderman
      Mar 22 '17 at 22:09
















    $begingroup$
    Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
    $endgroup$
    – Jazz
    Mar 22 '17 at 21:57






    $begingroup$
    Did you compute $3^5$ by hand in order to know that $3^5=3pmod{60}$ or there is another way to figure that out?
    $endgroup$
    – Jazz
    Mar 22 '17 at 21:57






    1




    1




    $begingroup$
    @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
    $endgroup$
    – Stella Biderman
    Mar 22 '17 at 22:09




    $begingroup$
    @Jazz $3^5=243$ is pretty well known, and clearly $240$ is a multiple of $60$.
    $endgroup$
    – Stella Biderman
    Mar 22 '17 at 22:09











    2












    $begingroup$

    The easiest way to handle such extremely powers is to calculate the power modulo $3$, $4$ and $5$ and apply the chinese remainder theorem. These modulo calculations are not very difficult :



    Modulo $3$ is trivial; $177$ is divisble by $3$, so the residue is $0$.



    Modulo $4$ is trivial as well ; $177$ has residue $1$ modulo $4$, so the power has residue $1$ modulo $4$ as well.



    For Modulo $5$, you can reduce the exponent modulo $4$, which gives $0$, so the residue modulo $5$ is $2^0=1$.



    So, the power is congruent $0$ modulo $3$ , $1$ modulo $4$ and $1$ modulo $5$. That gives $21$ modulo $60$






    share|cite|improve this answer











    $endgroup$









    • 1




      $begingroup$
      I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
      $endgroup$
      – Misha Lavrov
      Mar 22 '17 at 21:55










    • $begingroup$
      A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
      $endgroup$
      – Peter
      Mar 22 '17 at 22:54
















    2












    $begingroup$

    The easiest way to handle such extremely powers is to calculate the power modulo $3$, $4$ and $5$ and apply the chinese remainder theorem. These modulo calculations are not very difficult :



    Modulo $3$ is trivial; $177$ is divisble by $3$, so the residue is $0$.



    Modulo $4$ is trivial as well ; $177$ has residue $1$ modulo $4$, so the power has residue $1$ modulo $4$ as well.



    For Modulo $5$, you can reduce the exponent modulo $4$, which gives $0$, so the residue modulo $5$ is $2^0=1$.



    So, the power is congruent $0$ modulo $3$ , $1$ modulo $4$ and $1$ modulo $5$. That gives $21$ modulo $60$






    share|cite|improve this answer











    $endgroup$









    • 1




      $begingroup$
      I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
      $endgroup$
      – Misha Lavrov
      Mar 22 '17 at 21:55










    • $begingroup$
      A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
      $endgroup$
      – Peter
      Mar 22 '17 at 22:54














    2












    2








    2





    $begingroup$

    The easiest way to handle such extremely powers is to calculate the power modulo $3$, $4$ and $5$ and apply the chinese remainder theorem. These modulo calculations are not very difficult :



    Modulo $3$ is trivial; $177$ is divisble by $3$, so the residue is $0$.



    Modulo $4$ is trivial as well ; $177$ has residue $1$ modulo $4$, so the power has residue $1$ modulo $4$ as well.



    For Modulo $5$, you can reduce the exponent modulo $4$, which gives $0$, so the residue modulo $5$ is $2^0=1$.



    So, the power is congruent $0$ modulo $3$ , $1$ modulo $4$ and $1$ modulo $5$. That gives $21$ modulo $60$






    share|cite|improve this answer











    $endgroup$



    The easiest way to handle such extremely powers is to calculate the power modulo $3$, $4$ and $5$ and apply the chinese remainder theorem. These modulo calculations are not very difficult :



    Modulo $3$ is trivial; $177$ is divisble by $3$, so the residue is $0$.



    Modulo $4$ is trivial as well ; $177$ has residue $1$ modulo $4$, so the power has residue $1$ modulo $4$ as well.



    For Modulo $5$, you can reduce the exponent modulo $4$, which gives $0$, so the residue modulo $5$ is $2^0=1$.



    So, the power is congruent $0$ modulo $3$ , $1$ modulo $4$ and $1$ modulo $5$. That gives $21$ modulo $60$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Mar 22 '17 at 22:40

























    answered Mar 22 '17 at 21:50









    PeterPeter

    47.3k1039128




    47.3k1039128








    • 1




      $begingroup$
      I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
      $endgroup$
      – Misha Lavrov
      Mar 22 '17 at 21:55










    • $begingroup$
      A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
      $endgroup$
      – Peter
      Mar 22 '17 at 22:54














    • 1




      $begingroup$
      I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
      $endgroup$
      – Misha Lavrov
      Mar 22 '17 at 21:55










    • $begingroup$
      A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
      $endgroup$
      – Peter
      Mar 22 '17 at 22:54








    1




    1




    $begingroup$
    I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
    $endgroup$
    – Misha Lavrov
    Mar 22 '17 at 21:55




    $begingroup$
    I'd actually give this advice more generally: it is never a good idea to apply Euler's theorem except modulo prime powers (where you have no choice). Otherwise, it's much easier to factor $n$ into prime powers and do the computation for each of them, then reassemble the result using the Chinese remainder theorem. In many examples, such as this one, you never even end up doing any nontrivial multiplication.
    $endgroup$
    – Misha Lavrov
    Mar 22 '17 at 21:55












    $begingroup$
    A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
    $endgroup$
    – Peter
    Mar 22 '17 at 22:54




    $begingroup$
    A slight shortcut would be to determine the power modulo $20$. To do this, you can reduce the exponent modulo $phi(20)=8$. Obviously this gives $0$, so the power is congruent to $1$ modulo $20$. Since it is divisble by $3$, you again get $21$ modulo $60$
    $endgroup$
    – Peter
    Mar 22 '17 at 22:54











    0












    $begingroup$

    The answer is $21$. Proof follows:



    First thing to notice is that the sequence
    $$
    a_n=177^nmod{60}
    $$

    is periodic with period $4$. It starts off like: ${57, 9, 33, 21, 57, 9, 33, 21,...}$. One can show this by induction. Therefore if $n$ is a multiple of $4$, $a_n=21$. The exponent $20^m$ is a multiple of $4$ for all positive integers $m$ which completes the proof.






    share|cite|improve this answer











    $endgroup$


















      0












      $begingroup$

      The answer is $21$. Proof follows:



      First thing to notice is that the sequence
      $$
      a_n=177^nmod{60}
      $$

      is periodic with period $4$. It starts off like: ${57, 9, 33, 21, 57, 9, 33, 21,...}$. One can show this by induction. Therefore if $n$ is a multiple of $4$, $a_n=21$. The exponent $20^m$ is a multiple of $4$ for all positive integers $m$ which completes the proof.






      share|cite|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        The answer is $21$. Proof follows:



        First thing to notice is that the sequence
        $$
        a_n=177^nmod{60}
        $$

        is periodic with period $4$. It starts off like: ${57, 9, 33, 21, 57, 9, 33, 21,...}$. One can show this by induction. Therefore if $n$ is a multiple of $4$, $a_n=21$. The exponent $20^m$ is a multiple of $4$ for all positive integers $m$ which completes the proof.






        share|cite|improve this answer











        $endgroup$



        The answer is $21$. Proof follows:



        First thing to notice is that the sequence
        $$
        a_n=177^nmod{60}
        $$

        is periodic with period $4$. It starts off like: ${57, 9, 33, 21, 57, 9, 33, 21,...}$. One can show this by induction. Therefore if $n$ is a multiple of $4$, $a_n=21$. The exponent $20^m$ is a multiple of $4$ for all positive integers $m$ which completes the proof.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 10 '18 at 8:26

























        answered Dec 10 '18 at 8:09









        plus1plus1

        3911




        3911






























            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%2f2198953%2fcalculate-17720100500-mathrmmod-60%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

            Mont Emei

            Province de Neuquén

            Journaliste