Let's divide 103877 by 31
Let's see how many times 31 fits into 103877.

Step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 31

Advancing to step 2:
31 goes into 10 0 times with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 10 and we're left with 10.
Fetch the next digit (3) from the dividend, attach it to 10 and continue: 103 / 31

Step 3:
31 goes into 103 3 times with a remainder of 10.
The next digit of our result is 3. 
Result so far: 3.0
If we take 93 away from 103, we end up with 10.
Bring next digit (8) of the dividend behind the 10 and repeat the process: 108 / 31

Step 4:
108 divided by 31 is 3 with a remainder of 15.
The next digit of our result is 3. 
Result so far: 33.0
If we subtract 93 from 108, we get 15.
Take the next digit (7) from the dividend and append it to 15, then repeat: 157 / 31

Advancing to step 5:
31 can be fit into 157 5 times, resulting in a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 335.0
Subtracting 155 from 157 leaves us with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 31

Let's proceed to step 6:
31 can be fit into 27 0 times, resulting in a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 3350.0
If we take 0 away from 27, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
31 can be fit into 270 8 times, resulting in a remainder of 22.
The next digit of our result is 8. 
Result so far: 3350.8
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 8:
If we divide 220 by 31, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 3350.87
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 9:
30 divided by 31 is 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 3350.87
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 10:
300 divided by 31 is 9 with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 3350.8709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 11:
If we divide 210 by 31, we get 6 and a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 3350.87096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 12:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 3350.870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
31 goes into 230 7 times with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 3350.8709677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

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