I've been working on a problem and hope someone can help me with this (probably this has already been studied, I don't know). For a given a and to numbers m and n, are there any special conditions for the equality
(a (mod m))(mod n)=(a (mod n))(mod m)
to hold? I've been trying to come up with something, but until now I have no clue. Can anyone please help me with this?
Thanks!!