Hi all,
I have a small question regarding modular arithmetic:
I have a number
y = (x mod m1) mod m2
and I know that gcd(m1, m2) = 1
is there anything smart I can say on z = x (mod m2)?
If that's helpful, I can choose the relation between m1 and m2, that is I can choose whether m2 < m1 or m1 < m2
(but I gcd(m1, m2) must still be 1).
I have a small question regarding modular arithmetic:
I have a number
y = (x mod m1) mod m2
and I know that gcd(m1, m2) = 1
is there anything smart I can say on z = x (mod m2)?
If that's helpful, I can choose the relation between m1 and m2, that is I can choose whether m2 < m1 or m1 < m2
(but I gcd(m1, m2) must still be 1).