Let R be a principal ideal domain and x a non-zero element of R. We define a new ringR′ as follows. We define an equivalence relation ∼ on R×{xn∣n∈Z⩾0} by
(r,xn)∼(r′,xn′)
if and only if xn′r=xnr′. The underlying set of R′ is the set of ∼-equivalence classes. We define addition on R′ by
[(r,xn)]+[(r′,xn′)]=[(xn′r+xnr′,xn+n′)]
and multiplication by [(r,xn)][(r′,xn′)]=[(rr′,xn+n′)].
(a) Show that R′ is a well defined ring.
(b) Prove that R′ is a principal ideal domain.