We divide 407987 by 78
We're looking to find how many times 78 goes into 407987.

Advancing to step 1:
78 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 78

Advancing to step 2:
When dividing 40 by 78, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 78

Going ahead to step 3:
78 goes into 407 5 times with a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we take 390 away from 407, we end up with 17.
Fetch the next digit (9) from the dividend, attach it to 17 and continue: 179 / 78

Step 4:
When dividing 179 by 78, we get 2 with a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 52.0
Subtracting 156 from 179 leaves us with 23.
Append the next digit (8) from the dividend to 23 and continue with: 238 / 78

Let's proceed to step 5:
238 divided by 78 is 3 with a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 523.0
Deduct 234 from 238 and we're left with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 78

On to step 6:
The number 78 fits into 47 0 times, leaving a remainder of 47.
Use 0 as the next digit of our solution. 
Result so far: 5230.0
Subtract 0 from 47 to get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Going ahead to step 7:
78 can be fit into 470 6 times, resulting in a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 5230.6
If we take 468 away from 470, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 8:
When dividing 20 by 78, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 5230.6
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
200 divided by 78 is 2 with a remainder of 44.
The number 2 becomes the next digit in our result. 
Result so far: 5230.602
If we take 156 away from 200, we end up with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Step 10:
The number 78 fits into 440 5 times, leaving a remainder of 50.
Put 5 as the next digit of the answer. 
Result so far: 5230.6025
Subtracting 390 from 440 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Going ahead to step 11:
78 goes into 500 6 times with a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 5230.60256
Subtracting 468 from 500 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 12:
The number 78 fits into 320 4 times, leaving a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 5230.602564
The remainder is 8 after subtracting 312 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
When dividing 80 by 78, we get 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 5230.6025641
Subtracting 78 from 80 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 14:
If we divide 20 by 78, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 5230.6025641
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final result is 5230.6025641 with a remainder of 2e-08.