Coprime Numbers and Reducing mod n