Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Mathematics (https://www.askmehelpdesk.com/forumdisplay.php?f=199)
-   -   A little number theory (https://www.askmehelpdesk.com/showthread.php?t=52882)

  • Jan 7, 2007, 06:14 AM
    galactus
    a little number theory
    Here's a problem maybe you number theorists will like. Just an exercise in modular arithmetic. Think about Fermat's little theorem.

    "Find the remainder when is divided by 7".

    Yes, you could use a good calculator, but that's no fun.
  • Jan 7, 2007, 06:00 PM
    Fianchetto
    I can answer that questions in 6 tries or less:

    "Is it 6?"
    "Is it 5?"
    "Is it 4?"
    ...
    "Is it 1?" :)

    Seriously, I got to brush up on that Fermat guy, and get back to you.
    Thanks! :)
    Fianchetto
  • Jan 9, 2007, 05:06 AM
    galactus
    We want

    Fermat's theorem states:






    Hence,

    Therefore, the remainder is 2.
  • Jan 9, 2007, 07:17 AM
    asterisk_man
    And I was just about to say that exact thing! ;)

  • All times are GMT -7. The time now is 02:08 PM.