Binary Arithmetic
DIVISION
Shift & Subtract
With the advent of calculators, most people don’t use the long division method anymore. Calculators are not permitted in the HSC exam so you will need to brush up on the old steam driven method of division.
|
|
|
|
|
quotient r remainder |
||||||
|
divisor |
dividend |
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
remainder |
|||
Look at some worked examples.
1100011 ¸ 1001
Draw up the long division. The coloured vertical lines are to remind you to keep your working neat.
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are four digits in the divisor 1001. Write these directly under the first four digits of the dividend.
The divisor needs to be less than the digits above so that you can do the subtraction.
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1100>1001 so you can do the subtraction and place 1 in the quotient line.
|
|
|
|
|
|
|
|
1 |
|
|
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
1 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bring down the next digit of the dividend. Since 1001>110 write 0 in the quotient line
|
|
|
|
|
|
|
|
1 |
0 |
|
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
x |
|
|
|
|
|
|
|
|
|
1 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bring down the next digit of the dividend.
|
|
|
|
|
|
|
|
1 |
0 |
|
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
x |
x |
|
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1101>1001 so do the subtraction and put 1 in the quotient line.
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
x |
x |
|
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bring down the next digit of the dividend.
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
x |
x |
x |
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
|
|
Since both numbers are the same the subtraction can be done leaving a remainder of 0
|
|
|
|
|
|
|
|
1 |
0 |
1 |
1 |
|
1 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
|
|
|
|
|
1 |
0 |
0 |
1 |
x |
x |
x |
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
0 |
1 |
|
|
|
|
|
|
|
|
0 |
0 |
0 |
0 |
So the answer is
1100011¸1001=1011r0
1000001¸101
In this case the divisor was greater than the first three digits of the dividend so the divisor was divided into the first four digits.
This means that the 1 in the quotient line appears above the fourth digit
|
|
|
|
|
|
|
1 |
1 |
0 |
1 |
|
1 |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
0 |
1 |
|
|
|
|
|
1 |
0 |
1 |
x |
x |
x |
|
|
|
|
|
|
1 |
1 |
0 |
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
|
|
|
|
|
|
0 |
0 |
0 |
This is an example that produces a remainder
|
|
|
|
|
|
1 |
0 |
1 |
0 |
r |
100 |
|
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
|
|
|
|
|
|
1 |
0 |
1 |
x |
x |
x |
|
|
|
|
|
|
|
|
1 |
1 |
1 |
|
|
|
|
|
|
|
|
|
1 |
0 |
1 |
|
|
|
|
|
|
|
|
|
|
1 |
0 |
0 |
|
|