An interesting discussion on the Chinese Remainder Theorem on the stackexchange can be found here.