Algebra and Number Theory: An Integrated ApproachM. R. Dixon, L. A. Kurdachenko, I. Ya. Subbotin. (2010). Algebra and number theory: An integrated approach. John Wiley & Sons.
Read "9.1: Extending Arithmetic to Commutative Rings" and "9.2: Euclidian Rings."