We look at the division of 506617 by 87 
We want to divide 506617 by 87.

Step 1:
When dividing 5 by 87, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 87

Moving on to step 2:
The number 87 fits into 50 0 times, leaving a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 50 after subtracting 0 from 50.
Grab the next digit (6) from the dividend, add it to 50, then carry on: 506 / 87

Moving on to step 3:
506 divided by 87 is 5 with a remainder of 71.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 435 from 506, we get 71.
Grab the next digit (6) from the dividend, add it to 71, then carry on: 716 / 87

On to step 4:
The number 87 fits into 716 8 times, leaving a remainder of 20.
The next digit of our result is 8. 
Result so far: 58.0
Subtract 696 from 716 to get 20.
Append the next digit (1) from the dividend to 20 and continue with: 201 / 87

Moving on to step 5:
The number 87 fits into 201 2 times, leaving a remainder of 27.
Write down 2 as next digit of the result. 
Result so far: 582.0
If we take 174 away from 201, we end up with 27.
Grab the next digit (7) from the dividend, add it to 27, then carry on: 277 / 87

Moving on to step 6:
87 can be fit into 277 3 times, resulting in a remainder of 16.
The next digit of our result is 3. 
Result so far: 5823.0
Deduct 261 from 277 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.

Advancing to step 7:
160 divided by 87 is 1 with a remainder of 73.
Record the quotient 1 as the next digit in the result. 
Result so far: 5823.1
If we subtract 87 from 160, we get 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Let's proceed to step 8:
87 goes into 730 8 times with a remainder of 34.
The next digit of our result is 8. 
Result so far: 5823.18
Deduct 696 from 730 and we're left 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.

Advancing to step 9:
87 can be fit into 340 3 times, resulting in a remainder of 79.
The number 3 becomes the next digit in our result. 
Result so far: 5823.183
If we take 261 away from 340, we end up 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.

Step 10:
87 can be fit into 790 9 times, resulting in a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 5823.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:
The number 87 fits into 70 0 times, leaving a remainder of 70.
Write down 0 as next digit of the result. 
Result so far: 5823.1839
Subtract 0 from 70 to get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

On to step 12:
87 can be fit into 700 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 5823.183908
Subtracting 696 from 700 leaves us 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.

Moving on to step 13:
When dividing 40 by 87, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 5823.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.

Let's proceed to step 14:
87 can be fit into 400 4 times, resulting in a remainder of 52.
The number 4 becomes the next digit in our result. 
Result so far: 5823.18390804
If we take 348 away from 400, we end up 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.

The final result is 5823.18390804 with a remainder of 5.2e-08.