Find Remainder with Fermat's Theorem

  • Context: Undergrad 
  • Thread starter Thread starter jeedoubts
  • Start date Start date
  • Tags Tags
    Theorem
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
jeedoubts
Messages
16
Reaction score
0
How to use fermit's thereom in finding remainder of a number when divided by another number ?

(eg remainder of 52005 when divided by 4010 ?)
 
Physics news on Phys.org
How did you arrive at such a problem? Fermat's (little) theorem deals prime powers.
 
I'm assuming you don't know or don't want to use Euler's theorem.

Note 4010 = 2*5*401.

Can you find integers a,b,c such that
[tex]\begin{align*}<br /> 5^{2005} &\equiv a \pmod 2 \\<br /> 5^{2005} &\equiv b \pmod 5 \\<br /> 5^{2005} &\equiv c \pmod {401}<br /> \end{align*}[/tex]
? (perhaps using Fermat's little theorem)

If you can, then you can use these results and the Chinese remainder theorem to find 5^2005 modulo 2*5*401.