Is There a Solution for Modulus with 3 Equations?

  • Thread starter Thread starter coolul007
  • Start date Start date
  • Tags Tags
    Modulus
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
coolul007
Gold Member
Messages
271
Reaction score
8
I am wondering if there is a way to solve the following:

n == a mod(m)

m == b mod(r)

n == x mod(r), I need to know x, without dealing with a gigantic number(n),

I can find a and b, as I chose m to give me predictable results.

I appreciate any insight...
 
Physics news on Phys.org
Sounds like a Chinese Remainder Theorem problem. Check out the concept online or in any book on number theory.
 
It doesn' seem to be Chinese Remainder...I've looked into that. If it was Chinese Remainder it would be solving for a number with known mods, I know the number but need the missing mod.

x == a mod(m)
x == b mod(r)
 
Ahhh, I see. Well, never mind then!