We're dividing 321287 by 8 
Let's see how many times 8 fits into 321287.

Going ahead to step 1:
8 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (2) from the dividend, add it to 3, then carry on: 32 / 8

Moving on to step 2:
8 goes into 32 4 times with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtract 32 from 32 to get 0.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 8

Step 3:
8 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 40.0
If we take 0 away from 1, we end up with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 8

Going ahead to step 4:
The number 8 fits into 12 1 times, leaving a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 401.0
If we take 8 away from 12, we end up with 4.
Fetch the next digit (8) from the dividend, attach it to 4 and continue: 48 / 8

Moving on to step 5:
8 goes into 48 6 times with a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 4016.0
Subtract 48 from 48 to get 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 8

Moving on to step 6:
7 divided by 8 is 0 with a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 40160.0
If we take 0 away from 7, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
70 divided by 8 is 8 with a remainder of 6.
The next digit of our result is 8. 
Result so far: 40160.8
If we take 64 away from 70, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
60 divided by 8 is 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 40160.87
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 9:
The number 8 fits into 40 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 40160.875
Subtract 40 from 40 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 40160.875
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 11:
8 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 40160.875
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 40160.875, with a leftover of 0.0.