Can you simplify a monstrous remainder problem using modular arithmetic?

  • Context:
  • Thread starter Thread starter Guest2
  • Start date Start date
  • Tags Tags
    Hard Remainder
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
1 reply · 2K views
Guest2
Messages
192
Reaction score
0
Find ${5^{2009}}^{1492}\mod{503}.$

How do you calculate a beast like this?
 
Mathematics news on Phys.org
Do you know about Euler's theorem, or Fermat's little theorem? Powers of 5 are periodic modulo 503, so your expression can be simplified if you can find what that big exponent is modulo that period. Euler's theorem tells us that the period is divisible by divides 503 - 1 = 502 (since 503 is prime). Does that make sense?

If that doesn't help, what if you replaced 503 by, say, 7, does that make it simpler to reason about?
 
Last edited: