Is There a Solution for Modulus with 3 Equations?

  • Thread starter coolul007
  • Start date
  • Tags Tags
    Modulus
3 replies · 2K views · last reply
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...
 
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)