Long division algorithm

arithmetic

Lets say we are running the long division algorithm (this long division algorithm) on two integers $A,B$ and we want to compute $\frac{B}{A}$. Why are we guaranteed to never have to place a digit greater than or equal to $10$ at the top of the division bracket?

enter image description here

Why is this guaranteed to be the case?

An ideal explanation will draw on the fact that we use a base 10 number system.

Best Answer

At the first step, even if the first digit of the dividend (5, in the given example) is greater than divisor $d$, the result of the division cannot be greater than 9.

At subsequent steps, you start with a remainder $r$ satisfying $r\le d-1$. Putting a single digit $s$ at its right you get a new number $r'$: $$ r'=10r+s<10(r+1)\le 10d. $$ Hence $r'<10d$ and $r'\div d <10$, so we always get a single-digit result.

Related Question