We're dividing 586222 by 87 
We want to divide 586222 by 87.

Advancing to step 1:
When dividing 5 by 87, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 87

Going ahead to step 2:
If we divide 58 by 87, we get 0 and a remainder of 58.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 58, we get 58.
Fetch the next digit (6) from the dividend, attach it to 58 and continue: 586 / 87

On to step 3:
586 divided by 87 is 6 with a remainder of 64.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 522 from 586 and we're left with 64.
Include the next digit (2) from the dividend after 64, then repeat: 642 / 87

On to step 4:
When dividing 642 by 87, we get 7 with a remainder of 33.
Write down 7 as next digit of the result. 
Result so far: 67.0
Subtracting 609 from 642 leaves us with 33.
Take the next digit (2) from the dividend and append it to 33, then repeat: 332 / 87

Going ahead to step 5:
87 goes into 332 3 times with a remainder of 71.
Put 3 as the next digit of the answer. 
Result so far: 673.0
The remainder is 71 after subtracting 261 from 332.
Include the next digit (2) from the dividend after 71, then repeat: 712 / 87

Let's proceed to step 6:
When dividing 712 by 87, we get 8 with a remainder of 16.
The next digit of our result is 8. 
Result so far: 6738.0
Deduct 696 from 712 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 7:
If we divide 160 by 87, we get 1 and a remainder of 73.
Write down 1 as next digit of the result. 
Result so far: 6738.1
The remainder is 73 after subtracting 87 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Step 8:
If we divide 730 by 87, we get 8 and a remainder of 34.
Record the quotient 8 as the next digit in the result. 
Result so far: 6738.18
If we take 696 away from 730, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 9:
If we divide 340 by 87, we get 3 and a remainder of 79.
Put 3 as the next digit of the answer. 
Result so far: 6738.183
Deduct 261 from 340 and we're left with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

On to step 10:
790 divided by 87 is 9 with a remainder of 7.
Record the quotient 9 as the next digit in the result. 
Result so far: 6738.1839
Subtracting 783 from 790 leaves us 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.

Advancing to step 11:
87 goes into 70 0 times with a remainder of 70.
The number 0 becomes the next digit in our result. 
Result so far: 6738.1839
The remainder is 70 after subtracting 0 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Let's proceed to step 12:
87 goes into 700 8 times with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 6738.183908
If we subtract 696 from 700, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 13:
When dividing 40 by 87, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 6738.183908
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 14:
When dividing 400 by 87, we get 4 with a remainder of 52.
The next digit of our result is 4. 
Result so far: 6738.18390804
Subtracting 348 from 400 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

After the division, we end up with 6738.18390804 and a remainder of 5.2e-08.