Theory of Remainders