We look at the division of 586851 by 9 
We want to divide 586851 by 9.

Step 1:
If we divide 5 by 9, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 9

Advancing to step 2:
58 divided by 9 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 6.0
Subtracting 54 from 58 leaves us with 4.
Bring next digit (6) of the dividend behind the 4 and repeat the process: 46 / 9

On to step 3:
If we divide 46 by 9, we get 5 and a remainder of 1.
Put 5 as the next digit of the answer. 
Result so far: 65.0
If we take 45 away from 46, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 9

Moving on to step 4:
If we divide 18 by 9, we get 2 and a remainder of 0.
The next digit of our result is 2. 
Result so far: 652.0
If we take 18 away from 18, we end up with 0.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 9

Advancing to step 5:
9 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 6520.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 9

On to step 6:
9 can be fit into 51 5 times, resulting in a remainder of 6.
Use 5 as the next digit of our solution. 
Result so far: 65205.0
Subtracting 45 from 51 leaves us 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.

Step 7:
9 can be fit into 60 6 times, resulting in a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 65205.6
The remainder is 6 after subtracting 54 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 8:
9 goes into 60 6 times with a remainder of 6.
The next digit of our result is 6. 
Result so far: 65205.66
Deduct 54 from 60 and we're left 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.

Our division results in 65205.66 with a remaining 0.006.