We look at the division of 3107998 by 687 
Let's see how many times 687 fits into 3107998.

Let's proceed to step 1:
687 goes into 3 0 times with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 687

Step 2:
687 goes into 31 0 times with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Fetch the next digit (0) from the dividend, attach it to 31 and continue: 310 / 687

Moving on to step 3:
When dividing 310 by 687, we get 0 with a remainder of 310.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 310, we get 310.
Bring next digit (7) of the dividend behind the 310 and repeat the process: 3107 / 687

Advancing to step 4:
If we divide 3107 by 687, we get 4 and a remainder of 359.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 2748 from 3107 and we're left with 359.
Fetch the next digit (9) from the dividend, attach it to 359 and continue: 3599 / 687

Moving on to step 5:
If we divide 3599 by 687, we get 5 and a remainder of 164.
The next digit of our result is 5. 
Result so far: 45.0
Deduct 3435 from 3599 and we're left with 164.
Fetch the next digit (9) from the dividend, attach it to 164 and continue: 1649 / 687

Step 6:
1649 divided by 687 is 2 with a remainder of 275.
The next digit of our result is 2. 
Result so far: 452.0
Deduct 1374 from 1649 and we're left with 275.
Include the next digit (8) from the dividend after 275, then repeat: 2758 / 687

Going ahead to step 7:
If we divide 2758 by 687, we get 4 and a remainder of 10.
Use 4 as the next digit of our solution. 
Result so far: 4524.0
Deduct 2748 from 2758 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
If we divide 100 by 687, we get 0 and a remainder of 100.
Use 0 as the next digit of our solution. 
Result so far: 4524.0
Subtracting 0 from 100 leaves us with 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Going ahead to step 9:
If we divide 1000 by 687, we get 1 and a remainder of 313.
Use 1 as the next digit of our solution. 
Result so far: 4524.01
If we take 687 away from 1000, we end up with 313.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3130, and continue the process.

Advancing to step 10:
687 can be fit into 3130 4 times, resulting in a remainder of 382.
Put 4 as the next digit of the answer. 
Result so far: 4524.014
Subtracting 2748 from 3130 leaves us with 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Going ahead to step 11:
When dividing 3820 by 687, we get 5 with a remainder of 385.
Put 5 as the next digit of the answer. 
Result so far: 4524.0145
If we take 3435 away from 3820, we end up with 385.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3850, and continue the process.

On to step 12:
The number 687 fits into 3850 5 times, leaving a remainder of 415.
The number 5 becomes the next digit in our result. 
Result so far: 4524.01455
The remainder is 415 after subtracting 3435 from 3850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4150, and continue the process.

The final outcome is 4524.01455, with a leftover of 0.000415.