We're dividing 504805 by 87 
Our goal is to divide 504805 by 87.

Advancing to step 1:
When dividing 5 by 87, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 87

Let's proceed to step 2:
If we divide 50 by 87, we get 0 and a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Fetch the next digit (4) from the dividend, attach it to 50 and continue: 504 / 87

Let's proceed to step 3:
The number 87 fits into 504 5 times, leaving a remainder of 69.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtract 435 from 504 to get 69.
Append the next digit (8) from the dividend to 69 and continue with: 698 / 87

Advancing to step 4:
87 goes into 698 8 times with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 58.0
The remainder is 2 after subtracting 696 from 698.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 87

Moving on to step 5:
If we divide 20 by 87, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 580.0
If we take 0 away from 20, we end up with 20.
Include the next digit (5) from the dividend after 20, then repeat: 205 / 87

Moving on to step 6:
When dividing 205 by 87, we get 2 with a remainder of 31.
The number 2 becomes the next digit in our result. 
Result so far: 5802.0
If we take 174 away from 205, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 7:
310 divided by 87 is 3 with a remainder of 49.
Record the quotient 3 as the next digit in the result. 
Result so far: 5802.3
If we take 261 away from 310, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Going ahead to step 8:
When dividing 490 by 87, we get 5 with a remainder of 55.
Put 5 as the next digit of the answer. 
Result so far: 5802.35
Subtracting 435 from 490 leaves us with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 9:
The number 87 fits into 550 6 times, leaving a remainder of 28.
Use 6 as the next digit of our solution. 
Result so far: 5802.356
If we subtract 522 from 550, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 10:
87 goes into 280 3 times with a remainder of 19.
The number 3 becomes the next digit in our result. 
Result so far: 5802.3563
Deduct 261 from 280 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 11:
87 can be fit into 190 2 times, resulting in a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 5802.35632
If we take 174 away from 190, we end up 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.

Moving on to step 12:
When dividing 160 by 87, we get 1 with a remainder of 73.
Put 1 as the next digit of the answer. 
Result so far: 5802.356321
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.

Moving on to step 13:
87 goes into 730 8 times with a remainder of 34.
The next digit of our result is 8. 
Result so far: 5802.3563218
Subtract 696 from 730 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 14:
340 divided by 87 is 3 with a remainder of 79.
The number 3 becomes the next digit in our result. 
Result so far: 5802.35632183
Subtracting 261 from 340 leaves us 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.

The final result is 5802.35632183 with a remainder of 7.9e-08.