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

On to step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 31

Let's proceed to step 2:
31 goes into 14 0 times with a remainder of 14.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 14, we end up with 14.
Grab the next digit (0) from the dividend, add it to 14, then carry on: 140 / 31

Going ahead to step 3:
31 goes into 140 4 times with a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 4.0
The remainder is 16 after subtracting 124 from 140.
Fetch the next digit (1) from the dividend, attach it to 16 and continue: 161 / 31

Let's proceed to step 4:
31 can be fit into 161 5 times, resulting in a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 45.0
If we subtract 155 from 161, we get 6.
Take the next digit (1) from the dividend and append it to 6, then repeat: 61 / 31

Step 5:
If we divide 61 by 31, we get 1 and a remainder of 30.
The next digit of our result is 1. 
Result so far: 451.0
Deduct 31 from 61 and we're left with 30.
Grab the next digit (1) from the dividend, add it to 30, then carry on: 301 / 31

Going ahead to step 6:
If we divide 301 by 31, we get 9 and a remainder of 22.
Use 9 as the next digit of our solution. 
Result so far: 4519.0
Deduct 279 from 301 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 7:
If we divide 220 by 31, we get 7 and a remainder of 3.
The next digit of our result is 7. 
Result so far: 4519.7
The remainder is 3 after subtracting 217 from 220.
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 8:
When dividing 30 by 31, we get 0 with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 4519.7
Deduct 0 from 30 and we're left 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.

On to step 9:
31 can be fit into 300 9 times, resulting in a remainder of 21.
The next digit of our result is 9. 
Result so far: 4519.709
Subtracting 279 from 300 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Moving on to step 10:
The number 31 fits into 210 6 times, leaving a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 4519.7096
Deduct 186 from 210 and we're left 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.

Going ahead to step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 4519.70967
If we take 217 away from 240, we end up 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.

On to step 12:
The number 31 fits into 230 7 times, leaving a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 4519.709677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 4519.709677, and the remainder is 1.3e-06.