We're dividing 3811987 by 789 
We want to divide 3811987 by 789.

Moving on to step 1:
The number 789 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 789

Let's proceed to step 2:
If we divide 38 by 789, we get 0 and a remainder of 38.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 38 and we're left with 38.
Include the next digit (1) from the dividend after 38, then repeat: 381 / 789

Advancing to step 3:
When dividing 381 by 789, we get 0 with a remainder of 381.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 381 after subtracting 0 from 381.
Include the next digit (1) from the dividend after 381, then repeat: 3811 / 789

Let's proceed to step 4:
789 goes into 3811 4 times with a remainder of 655.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we subtract 3156 from 3811, we get 655.
Include the next digit (9) from the dividend after 655, then repeat: 6559 / 789

Going ahead to step 5:
If we divide 6559 by 789, we get 8 and a remainder of 247.
Write down 8 as next digit of the result. 
Result so far: 48.0
If we take 6312 away from 6559, we end up with 247.
Append the next digit (8) from the dividend to 247 and continue with: 2478 / 789

Let's proceed to step 6:
2478 divided by 789 is 3 with a remainder of 111.
The next digit of our result is 3. 
Result so far: 483.0
Subtracting 2367 from 2478 leaves us with 111.
Include the next digit (7) from the dividend after 111, then repeat: 1117 / 789

Step 7:
If we divide 1117 by 789, we get 1 and a remainder of 328.
The next digit of our result is 1. 
Result so far: 4831.0
If we subtract 789 from 1117, we get 328.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

On to step 8:
789 goes into 3280 4 times with a remainder of 124.
Use 4 as the next digit of our solution. 
Result so far: 4831.4
If we subtract 3156 from 3280, we get 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Moving on to step 9:
The number 789 fits into 1240 1 times, leaving a remainder of 451.
Record the quotient 1 as the next digit in the result. 
Result so far: 4831.41
The remainder is 451 after subtracting 789 from 1240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4510, and continue the process.

Advancing to step 10:
If we divide 4510 by 789, we get 5 and a remainder of 565.
Use 5 as the next digit of our solution. 
Result so far: 4831.415
The remainder is 565 after subtracting 3945 from 4510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5650, and continue the process.

Moving on to step 11:
The number 789 fits into 5650 7 times, leaving a remainder of 127.
Record the quotient 7 as the next digit in the result. 
Result so far: 4831.4157
If we take 5523 away from 5650, we end up with 127.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1270, and continue the process.

Moving on to step 12:
789 can be fit into 1270 1 times, resulting in a remainder of 481.
Use 1 as the next digit of our solution. 
Result so far: 4831.41571
The remainder is 481 after subtracting 789 from 1270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4810, and continue the process.

Going ahead to step 13:
If we divide 4810 by 789, we get 6 and a remainder of 76.
Use 6 as the next digit of our solution. 
Result so far: 4831.415716
If we take 4734 away from 4810, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 14:
If we divide 760 by 789, we get 0 and a remainder of 760.
Write down 0 as next digit of the result. 
Result so far: 4831.415716
If we subtract 0 from 760, we get 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7600, and continue the process.

Advancing to step 15:
When dividing 7600 by 789, we get 9 with a remainder of 499.
Write down 9 as next digit of the result. 
Result so far: 4831.41571609
Subtract 7101 from 7600 to get 499.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4990, and continue the process.

After the division, we end up with 4831.41571609 and a remainder of 4.99e-07.