Abstract Algebra/Polynomial Rings

The degree of a polynomial $a_0+a_1X+...+a_nX^n$ is defined to be n. If R is a field, and f and g are polynomials of R[X], then we can divide f by g to get f=gq+r. However, we can also do this for any arbitrary ring if the leading coefficient of g is 1.