I would like to understand the mathematics behind the standard long division algorithm, specifically for the ring of $\mathbb{Z}$. I'm looking for an algebraic or set theoretic explanation. Can anyone explain or point me to an explanation?
I asked here in which I was told the Wiki algorithm works over any field except for $\mathbb{Z}$. I was then referred to the non-monic algorithm proof in this post. I tried using the theorem and followed the proof, but I did not get an expected result. For instance using post:
$G = 1b^1 + 8b^0, F = 9b^0$, the leading coeff $a = 9$ then $i \ge max\{0, 1+deg G- degF\} = 2$. Substitution:
$a^i G = QF + R = 9^2(1b^1 + 8b^0) = Q9b^0 + R$, where $Q = 1(b^1+8b^0)$ and at this point it appears something went wrong.
Appreciate your guidance