We're dividing 398613 by 87 
Let's see how many times 87 fits into 398613.

On to step 1:
3 divided by 87 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 87

Step 2:
87 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 39, we get 39.
Append the next digit (8) from the dividend to 39 and continue with: 398 / 87

On to step 3:
398 divided by 87 is 4 with a remainder of 50.
The next digit of our result is 4. 
Result so far: 4.0
If we take 348 away from 398, we end up with 50.
Take the next digit (6) from the dividend and append it to 50, then repeat: 506 / 87

Going ahead to step 4:
If we divide 506 by 87, we get 5 and a remainder of 71.
Record the quotient 5 as the next digit in the result. 
Result so far: 45.0
If we subtract 435 from 506, we get 71.
Fetch the next digit (1) from the dividend, attach it to 71 and continue: 711 / 87

Let's proceed to step 5:
When dividing 711 by 87, we get 8 with a remainder of 15.
The number 8 becomes the next digit in our result. 
Result so far: 458.0
If we take 696 away from 711, we end up with 15.
Fetch the next digit (3) from the dividend, attach it to 15 and continue: 153 / 87

Step 6:
When dividing 153 by 87, we get 1 with a remainder of 66.
The next digit of our result is 1. 
Result so far: 4581.0
Deduct 87 from 153 and we're left with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

On to step 7:
If we divide 660 by 87, we get 7 and a remainder of 51.
Put 7 as the next digit of the answer. 
Result so far: 4581.7
The remainder is 51 after subtracting 609 from 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Advancing to step 8:
If we divide 510 by 87, we get 5 and a remainder of 75.
The number 5 becomes the next digit in our result. 
Result so far: 4581.75
Subtract 435 from 510 to get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Step 9:
When dividing 750 by 87, we get 8 with a remainder of 54.
Record the quotient 8 as the next digit in the result. 
Result so far: 4581.758
Subtract 696 from 750 to get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Step 10:
87 can be fit into 540 6 times, resulting in a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 4581.7586
If we take 522 away from 540, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 11:
When dividing 180 by 87, we get 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 4581.75862
If we subtract 174 from 180, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 12:
87 goes into 60 0 times with a remainder of 60.
Record the quotient 0 as the next digit in the result. 
Result so far: 4581.75862
Subtracting 0 from 60 leaves us with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 13:
If we divide 600 by 87, we get 6 and a remainder of 78.
The next digit of our result is 6. 
Result so far: 4581.7586206
The remainder is 78 after subtracting 522 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 14:
780 divided by 87 is 8 with a remainder of 84.
The next digit of our result is 8. 
Result so far: 4581.75862068
Subtracting 696 from 780 leaves us with 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

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