(Modular Arithmetic) Congruences With Exponents










2












$begingroup$


I am trying to find the following:




The least positive integer $n$ for which



$3^n equiv 1$ (mod $7$)



And hence $3^100$ (mod $7$).



The least positive integer $n$ for which



$5^n equiv 1$ (mod $17$) or $5^n equiv -1$ (mod $17$)



And hence evaluate $5^243$ (mod $17$).



Evaluate $2^4$ (mod $18$) and hence evaluate $2^300$ (mod $18$).




I've learned how to use the Euclidean algorithm, but I have no idea how to compute congruence when they have exponents, as above. These seem very daunting to me. I would greatly appreciate it if people could please take the time to explain how this is done.



I will then post my work for each of these for, if possible, feedback on the solutions, since I do not have any solutions for these.



Thank you.










share|cite|improve this question











$endgroup$











  • $begingroup$
    Have you heard of Euler's totient function?
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 10:13











  • $begingroup$
    @Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:14
















2












$begingroup$


I am trying to find the following:




The least positive integer $n$ for which



$3^n equiv 1$ (mod $7$)



And hence $3^100$ (mod $7$).



The least positive integer $n$ for which



$5^n equiv 1$ (mod $17$) or $5^n equiv -1$ (mod $17$)



And hence evaluate $5^243$ (mod $17$).



Evaluate $2^4$ (mod $18$) and hence evaluate $2^300$ (mod $18$).




I've learned how to use the Euclidean algorithm, but I have no idea how to compute congruence when they have exponents, as above. These seem very daunting to me. I would greatly appreciate it if people could please take the time to explain how this is done.



I will then post my work for each of these for, if possible, feedback on the solutions, since I do not have any solutions for these.



Thank you.










share|cite|improve this question











$endgroup$











  • $begingroup$
    Have you heard of Euler's totient function?
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 10:13











  • $begingroup$
    @Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:14














2












2








2





$begingroup$


I am trying to find the following:




The least positive integer $n$ for which



$3^n equiv 1$ (mod $7$)



And hence $3^100$ (mod $7$).



The least positive integer $n$ for which



$5^n equiv 1$ (mod $17$) or $5^n equiv -1$ (mod $17$)



And hence evaluate $5^243$ (mod $17$).



Evaluate $2^4$ (mod $18$) and hence evaluate $2^300$ (mod $18$).




I've learned how to use the Euclidean algorithm, but I have no idea how to compute congruence when they have exponents, as above. These seem very daunting to me. I would greatly appreciate it if people could please take the time to explain how this is done.



I will then post my work for each of these for, if possible, feedback on the solutions, since I do not have any solutions for these.



Thank you.










share|cite|improve this question











$endgroup$




I am trying to find the following:




The least positive integer $n$ for which



$3^n equiv 1$ (mod $7$)



And hence $3^100$ (mod $7$).



The least positive integer $n$ for which



$5^n equiv 1$ (mod $17$) or $5^n equiv -1$ (mod $17$)



And hence evaluate $5^243$ (mod $17$).



Evaluate $2^4$ (mod $18$) and hence evaluate $2^300$ (mod $18$).




I've learned how to use the Euclidean algorithm, but I have no idea how to compute congruence when they have exponents, as above. These seem very daunting to me. I would greatly appreciate it if people could please take the time to explain how this is done.



I will then post my work for each of these for, if possible, feedback on the solutions, since I do not have any solutions for these.



Thank you.







modular-arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 25 '18 at 10:29







The Pointer

















asked Aug 25 '18 at 10:09









The PointerThe Pointer

2,60421336




2,60421336











  • $begingroup$
    Have you heard of Euler's totient function?
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 10:13











  • $begingroup$
    @Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:14

















  • $begingroup$
    Have you heard of Euler's totient function?
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 10:13











  • $begingroup$
    @Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:14
















$begingroup$
Have you heard of Euler's totient function?
$endgroup$
– Jazzachi
Aug 25 '18 at 10:13





$begingroup$
Have you heard of Euler's totient function?
$endgroup$
– Jazzachi
Aug 25 '18 at 10:13













$begingroup$
@Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
$endgroup$
– The Pointer
Aug 25 '18 at 10:14





$begingroup$
@Jazzachi No, and nor were we taught it. So I think my instructors want us to solve this through other means?
$endgroup$
– The Pointer
Aug 25 '18 at 10:14











3 Answers
3






active

oldest

votes


















3












$begingroup$

Regarding congruences with exponents - the cool thing about them is you can raise 'each side' to some power, or multiply them by a common factor and it remains true. It's often useful to show that $x^nequiv pm 1 pmod k $. Regarding your first question, we know $3equiv 3pmod 7 $ so $3^2equiv 2pmod 7$ since $9pmod 7=2$. So $3^3=3^2times 3equiv 2times 3=6equiv -1 pmod 7$. So $3^3equiv -1 pmod 7$. Hence $(3^3)^2=3^6equiv (-1)^2=1pmod 7$. We know $3^100=3^6cdot 16+4=3^96cdot 3^3cdot 3$, and since we know the value of all these modulo $7$, $3^100$ is congruent mod $7$ to the product of them.



For your 2nd question, we can apply these same principles - it just takes a bit longer $$beginalign*5&equiv 5pmod 17 \ implies 5^2&equiv 8 pmod 17 \ implies 5^3&equiv 6pmod 17 qquad textsince $40pmod 17=6$ \ implies 5^4&equiv 13pmod 17qquad textsince $30pmod17=13$ \ &vdots \ implies 5^8&equiv -1pmod17endalign*$$Note that we could have directly obtained the final result by squaring both sides of the fourth line. So now $5^243=(5^8)^30cdot 5^3=dots$



However, using Euler's theorem is usually faster - there's examples of solutions to similar problems within that link.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    I just edited the missing $-1$ in for you.
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:08






  • 1




    $begingroup$
    @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:12











  • $begingroup$
    So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:27






  • 1




    $begingroup$
    @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:29











  • $begingroup$
    Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:31


















2












$begingroup$

Hint:



For the first two questions, Fermat's little theorem works because $7$ and $17$ are both prime. Now you can use the second form: $a^p-1 equiv 1 pmod p$ (if $a nmid p$ ).



For the last question, $2^4 pmod 18 equiv -2$. Then $(2^4)^4 = 2^16 equiv -2$, and $2^256 equiv -2$, so you can break up $300$ into powers of $4$.






share|cite|improve this answer











$endgroup$












  • $begingroup$
    But this isn't a general way to solve these problems?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:19










  • $begingroup$
    @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:22










  • $begingroup$
    I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:31










  • $begingroup$
    @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:34










  • $begingroup$
    Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:36



















0












$begingroup$

Usually the standard routine is to use Euler's theorem which states that:




Let $ainBbb Z_n$, if $gcd(a,n)=1$ then $$a^phi(n)equiv_n 1$$
$phi(n)$ is called the Euler totient function, and it is the number of integers $k$ such that $1leq k<n$ and $gcd(k,n)=1$.




For instance $phi(10)=4$ because there are only four integers less than $10$, that are relatively prime (no common factor) to $10$. $$colorgreen1,2,colorgreen3,4,5,6,colorgreen7,8,colorgreen9$$ This means that $$a^4equiv_101$$ if $gcd(a,10)=1$. So $$1^4equiv_101\3^4equiv_101\7^4equiv_101\9^4equiv_101$$
When $n=p$ is prime $phi(p)=p-1$. With $p=5$ we have $$1^4equiv_51\2^4equiv_51\3^4equiv_51\4^4equiv_51$$ This special case, with $p$ prime, is known as Fermat's little theorem.






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%2f2893975%2fmodular-arithmetic-congruences-with-exponents%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    Regarding congruences with exponents - the cool thing about them is you can raise 'each side' to some power, or multiply them by a common factor and it remains true. It's often useful to show that $x^nequiv pm 1 pmod k $. Regarding your first question, we know $3equiv 3pmod 7 $ so $3^2equiv 2pmod 7$ since $9pmod 7=2$. So $3^3=3^2times 3equiv 2times 3=6equiv -1 pmod 7$. So $3^3equiv -1 pmod 7$. Hence $(3^3)^2=3^6equiv (-1)^2=1pmod 7$. We know $3^100=3^6cdot 16+4=3^96cdot 3^3cdot 3$, and since we know the value of all these modulo $7$, $3^100$ is congruent mod $7$ to the product of them.



    For your 2nd question, we can apply these same principles - it just takes a bit longer $$beginalign*5&equiv 5pmod 17 \ implies 5^2&equiv 8 pmod 17 \ implies 5^3&equiv 6pmod 17 qquad textsince $40pmod 17=6$ \ implies 5^4&equiv 13pmod 17qquad textsince $30pmod17=13$ \ &vdots \ implies 5^8&equiv -1pmod17endalign*$$Note that we could have directly obtained the final result by squaring both sides of the fourth line. So now $5^243=(5^8)^30cdot 5^3=dots$



    However, using Euler's theorem is usually faster - there's examples of solutions to similar problems within that link.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      I just edited the missing $-1$ in for you.
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:08






    • 1




      $begingroup$
      @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:12











    • $begingroup$
      So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:27






    • 1




      $begingroup$
      @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:29











    • $begingroup$
      Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:31















    3












    $begingroup$

    Regarding congruences with exponents - the cool thing about them is you can raise 'each side' to some power, or multiply them by a common factor and it remains true. It's often useful to show that $x^nequiv pm 1 pmod k $. Regarding your first question, we know $3equiv 3pmod 7 $ so $3^2equiv 2pmod 7$ since $9pmod 7=2$. So $3^3=3^2times 3equiv 2times 3=6equiv -1 pmod 7$. So $3^3equiv -1 pmod 7$. Hence $(3^3)^2=3^6equiv (-1)^2=1pmod 7$. We know $3^100=3^6cdot 16+4=3^96cdot 3^3cdot 3$, and since we know the value of all these modulo $7$, $3^100$ is congruent mod $7$ to the product of them.



    For your 2nd question, we can apply these same principles - it just takes a bit longer $$beginalign*5&equiv 5pmod 17 \ implies 5^2&equiv 8 pmod 17 \ implies 5^3&equiv 6pmod 17 qquad textsince $40pmod 17=6$ \ implies 5^4&equiv 13pmod 17qquad textsince $30pmod17=13$ \ &vdots \ implies 5^8&equiv -1pmod17endalign*$$Note that we could have directly obtained the final result by squaring both sides of the fourth line. So now $5^243=(5^8)^30cdot 5^3=dots$



    However, using Euler's theorem is usually faster - there's examples of solutions to similar problems within that link.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      I just edited the missing $-1$ in for you.
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:08






    • 1




      $begingroup$
      @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:12











    • $begingroup$
      So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:27






    • 1




      $begingroup$
      @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:29











    • $begingroup$
      Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:31













    3












    3








    3





    $begingroup$

    Regarding congruences with exponents - the cool thing about them is you can raise 'each side' to some power, or multiply them by a common factor and it remains true. It's often useful to show that $x^nequiv pm 1 pmod k $. Regarding your first question, we know $3equiv 3pmod 7 $ so $3^2equiv 2pmod 7$ since $9pmod 7=2$. So $3^3=3^2times 3equiv 2times 3=6equiv -1 pmod 7$. So $3^3equiv -1 pmod 7$. Hence $(3^3)^2=3^6equiv (-1)^2=1pmod 7$. We know $3^100=3^6cdot 16+4=3^96cdot 3^3cdot 3$, and since we know the value of all these modulo $7$, $3^100$ is congruent mod $7$ to the product of them.



    For your 2nd question, we can apply these same principles - it just takes a bit longer $$beginalign*5&equiv 5pmod 17 \ implies 5^2&equiv 8 pmod 17 \ implies 5^3&equiv 6pmod 17 qquad textsince $40pmod 17=6$ \ implies 5^4&equiv 13pmod 17qquad textsince $30pmod17=13$ \ &vdots \ implies 5^8&equiv -1pmod17endalign*$$Note that we could have directly obtained the final result by squaring both sides of the fourth line. So now $5^243=(5^8)^30cdot 5^3=dots$



    However, using Euler's theorem is usually faster - there's examples of solutions to similar problems within that link.






    share|cite|improve this answer











    $endgroup$



    Regarding congruences with exponents - the cool thing about them is you can raise 'each side' to some power, or multiply them by a common factor and it remains true. It's often useful to show that $x^nequiv pm 1 pmod k $. Regarding your first question, we know $3equiv 3pmod 7 $ so $3^2equiv 2pmod 7$ since $9pmod 7=2$. So $3^3=3^2times 3equiv 2times 3=6equiv -1 pmod 7$. So $3^3equiv -1 pmod 7$. Hence $(3^3)^2=3^6equiv (-1)^2=1pmod 7$. We know $3^100=3^6cdot 16+4=3^96cdot 3^3cdot 3$, and since we know the value of all these modulo $7$, $3^100$ is congruent mod $7$ to the product of them.



    For your 2nd question, we can apply these same principles - it just takes a bit longer $$beginalign*5&equiv 5pmod 17 \ implies 5^2&equiv 8 pmod 17 \ implies 5^3&equiv 6pmod 17 qquad textsince $40pmod 17=6$ \ implies 5^4&equiv 13pmod 17qquad textsince $30pmod17=13$ \ &vdots \ implies 5^8&equiv -1pmod17endalign*$$Note that we could have directly obtained the final result by squaring both sides of the fourth line. So now $5^243=(5^8)^30cdot 5^3=dots$



    However, using Euler's theorem is usually faster - there's examples of solutions to similar problems within that link.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Aug 25 '18 at 11:30









    The Pointer

    2,60421336




    2,60421336










    answered Aug 25 '18 at 10:39









    JazzachiJazzachi

    8971519




    8971519











    • $begingroup$
      I just edited the missing $-1$ in for you.
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:08






    • 1




      $begingroup$
      @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:12











    • $begingroup$
      So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:27






    • 1




      $begingroup$
      @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:29











    • $begingroup$
      Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:31
















    • $begingroup$
      I just edited the missing $-1$ in for you.
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:08






    • 1




      $begingroup$
      @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:12











    • $begingroup$
      So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:27






    • 1




      $begingroup$
      @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
      $endgroup$
      – Jazzachi
      Aug 25 '18 at 11:29











    • $begingroup$
      Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
      $endgroup$
      – The Pointer
      Aug 25 '18 at 11:31















    $begingroup$
    I just edited the missing $-1$ in for you.
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:08




    $begingroup$
    I just edited the missing $-1$ in for you.
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:08




    1




    1




    $begingroup$
    @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:12





    $begingroup$
    @ThePointer We know $3^3equiv -1 pmod 7$ so $3^6equiv 1pmod 7$. So $3^96equiv 1pmod 7$. We also know $3equiv 3pmod 7$. So $3^100=3^96times 3^3times 3equiv (1)(-1)(3)$, hence $3^100equiv 4pmod 7$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:12













    $begingroup$
    So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:27




    $begingroup$
    So for the second one, we have $5^243=(5^8)^30cdot 5^4= 5^4 equiv 13$ (mod $17$)?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:27




    1




    1




    $begingroup$
    @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:29





    $begingroup$
    @ThePointer Minor typo, should be $5^3$ not $5^4$. But your approach is correct, and since $5^3equiv 6 pmod 17$, $5^243equiv 6pmod 17$.
    $endgroup$
    – Jazzachi
    Aug 25 '18 at 11:29













    $begingroup$
    Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:31




    $begingroup$
    Ok, great, I think I understand it now! Thank you very much for taking the time to explain this to me. I found this very enlightening!
    $endgroup$
    – The Pointer
    Aug 25 '18 at 11:31











    2












    $begingroup$

    Hint:



    For the first two questions, Fermat's little theorem works because $7$ and $17$ are both prime. Now you can use the second form: $a^p-1 equiv 1 pmod p$ (if $a nmid p$ ).



    For the last question, $2^4 pmod 18 equiv -2$. Then $(2^4)^4 = 2^16 equiv -2$, and $2^256 equiv -2$, so you can break up $300$ into powers of $4$.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      But this isn't a general way to solve these problems?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:19










    • $begingroup$
      @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:22










    • $begingroup$
      I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:31










    • $begingroup$
      @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:34










    • $begingroup$
      Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:36
















    2












    $begingroup$

    Hint:



    For the first two questions, Fermat's little theorem works because $7$ and $17$ are both prime. Now you can use the second form: $a^p-1 equiv 1 pmod p$ (if $a nmid p$ ).



    For the last question, $2^4 pmod 18 equiv -2$. Then $(2^4)^4 = 2^16 equiv -2$, and $2^256 equiv -2$, so you can break up $300$ into powers of $4$.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      But this isn't a general way to solve these problems?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:19










    • $begingroup$
      @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:22










    • $begingroup$
      I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:31










    • $begingroup$
      @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:34










    • $begingroup$
      Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:36














    2












    2








    2





    $begingroup$

    Hint:



    For the first two questions, Fermat's little theorem works because $7$ and $17$ are both prime. Now you can use the second form: $a^p-1 equiv 1 pmod p$ (if $a nmid p$ ).



    For the last question, $2^4 pmod 18 equiv -2$. Then $(2^4)^4 = 2^16 equiv -2$, and $2^256 equiv -2$, so you can break up $300$ into powers of $4$.






    share|cite|improve this answer











    $endgroup$



    Hint:



    For the first two questions, Fermat's little theorem works because $7$ and $17$ are both prime. Now you can use the second form: $a^p-1 equiv 1 pmod p$ (if $a nmid p$ ).



    For the last question, $2^4 pmod 18 equiv -2$. Then $(2^4)^4 = 2^16 equiv -2$, and $2^256 equiv -2$, so you can break up $300$ into powers of $4$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Aug 25 '18 at 10:23

























    answered Aug 25 '18 at 10:15









    Toby MakToby Mak

    3,37811128




    3,37811128











    • $begingroup$
      But this isn't a general way to solve these problems?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:19










    • $begingroup$
      @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:22










    • $begingroup$
      I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:31










    • $begingroup$
      @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:34










    • $begingroup$
      Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:36

















    • $begingroup$
      But this isn't a general way to solve these problems?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:19










    • $begingroup$
      @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:22










    • $begingroup$
      I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:31










    • $begingroup$
      @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
      $endgroup$
      – Toby Mak
      Aug 25 '18 at 10:34










    • $begingroup$
      Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
      $endgroup$
      – The Pointer
      Aug 25 '18 at 10:36
















    $begingroup$
    But this isn't a general way to solve these problems?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:19




    $begingroup$
    But this isn't a general way to solve these problems?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:19












    $begingroup$
    @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:22




    $begingroup$
    @ThePointer It depends on the question. Luckily, this is an exercise, so they might want you to notice that $7$ and $17$ are both prime. If you have to use Euler's totient function, you might use the identity for $phi(mn)$ and carry on from there.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:22












    $begingroup$
    I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:31




    $begingroup$
    I don't understand why we use the second form? We don't even know what $p$ is, so how do we know whether to use the first or second form?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:31












    $begingroup$
    @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:34




    $begingroup$
    @ThePointer We can use the second form because $a$ does not divide $p$ in your questions (if $p = 7$, $a$ is not $14, 21, 28$ etc.). $p$ is prime.
    $endgroup$
    – Toby Mak
    Aug 25 '18 at 10:34












    $begingroup$
    Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:36





    $begingroup$
    Hmm, I see. But the Wikipedia article also assumes that $n = p$? That doesn't necessarily have to be true for this problem, right? So is it valid for us to use this method?
    $endgroup$
    – The Pointer
    Aug 25 '18 at 10:36












    0












    $begingroup$

    Usually the standard routine is to use Euler's theorem which states that:




    Let $ainBbb Z_n$, if $gcd(a,n)=1$ then $$a^phi(n)equiv_n 1$$
    $phi(n)$ is called the Euler totient function, and it is the number of integers $k$ such that $1leq k<n$ and $gcd(k,n)=1$.




    For instance $phi(10)=4$ because there are only four integers less than $10$, that are relatively prime (no common factor) to $10$. $$colorgreen1,2,colorgreen3,4,5,6,colorgreen7,8,colorgreen9$$ This means that $$a^4equiv_101$$ if $gcd(a,10)=1$. So $$1^4equiv_101\3^4equiv_101\7^4equiv_101\9^4equiv_101$$
    When $n=p$ is prime $phi(p)=p-1$. With $p=5$ we have $$1^4equiv_51\2^4equiv_51\3^4equiv_51\4^4equiv_51$$ This special case, with $p$ prime, is known as Fermat's little theorem.






    share|cite|improve this answer











    $endgroup$

















      0












      $begingroup$

      Usually the standard routine is to use Euler's theorem which states that:




      Let $ainBbb Z_n$, if $gcd(a,n)=1$ then $$a^phi(n)equiv_n 1$$
      $phi(n)$ is called the Euler totient function, and it is the number of integers $k$ such that $1leq k<n$ and $gcd(k,n)=1$.




      For instance $phi(10)=4$ because there are only four integers less than $10$, that are relatively prime (no common factor) to $10$. $$colorgreen1,2,colorgreen3,4,5,6,colorgreen7,8,colorgreen9$$ This means that $$a^4equiv_101$$ if $gcd(a,10)=1$. So $$1^4equiv_101\3^4equiv_101\7^4equiv_101\9^4equiv_101$$
      When $n=p$ is prime $phi(p)=p-1$. With $p=5$ we have $$1^4equiv_51\2^4equiv_51\3^4equiv_51\4^4equiv_51$$ This special case, with $p$ prime, is known as Fermat's little theorem.






      share|cite|improve this answer











      $endgroup$















        0












        0








        0





        $begingroup$

        Usually the standard routine is to use Euler's theorem which states that:




        Let $ainBbb Z_n$, if $gcd(a,n)=1$ then $$a^phi(n)equiv_n 1$$
        $phi(n)$ is called the Euler totient function, and it is the number of integers $k$ such that $1leq k<n$ and $gcd(k,n)=1$.




        For instance $phi(10)=4$ because there are only four integers less than $10$, that are relatively prime (no common factor) to $10$. $$colorgreen1,2,colorgreen3,4,5,6,colorgreen7,8,colorgreen9$$ This means that $$a^4equiv_101$$ if $gcd(a,10)=1$. So $$1^4equiv_101\3^4equiv_101\7^4equiv_101\9^4equiv_101$$
        When $n=p$ is prime $phi(p)=p-1$. With $p=5$ we have $$1^4equiv_51\2^4equiv_51\3^4equiv_51\4^4equiv_51$$ This special case, with $p$ prime, is known as Fermat's little theorem.






        share|cite|improve this answer











        $endgroup$



        Usually the standard routine is to use Euler's theorem which states that:




        Let $ainBbb Z_n$, if $gcd(a,n)=1$ then $$a^phi(n)equiv_n 1$$
        $phi(n)$ is called the Euler totient function, and it is the number of integers $k$ such that $1leq k<n$ and $gcd(k,n)=1$.




        For instance $phi(10)=4$ because there are only four integers less than $10$, that are relatively prime (no common factor) to $10$. $$colorgreen1,2,colorgreen3,4,5,6,colorgreen7,8,colorgreen9$$ This means that $$a^4equiv_101$$ if $gcd(a,10)=1$. So $$1^4equiv_101\3^4equiv_101\7^4equiv_101\9^4equiv_101$$
        When $n=p$ is prime $phi(p)=p-1$. With $p=5$ we have $$1^4equiv_51\2^4equiv_51\3^4equiv_51\4^4equiv_51$$ This special case, with $p$ prime, is known as Fermat's little theorem.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Aug 25 '18 at 11:40

























        answered Aug 25 '18 at 11:33









        cansomeonehelpmeoutcansomeonehelpmeout

        6,7923835




        6,7923835



























            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%2f2893975%2fmodular-arithmetic-congruences-with-exponents%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

            𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

            Crossroads (UK TV series)

            ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế