Modular Arithmetic In Number Theory