140231 divided by 31 
Our goal is to divide 140231 by 31.

On to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 31

On to step 2:
When dividing 14 by 31, we get 0 with a remainder of 14.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 14, we get 14.
Append the next digit (0) from the dividend to 14 and continue with: 140 / 31

Advancing to step 3:
When dividing 140 by 31, we get 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 124 from 140 to get 16.
Take the next digit (2) from the dividend and append it to 16, then repeat: 162 / 31

Moving on to step 4:
31 can be fit into 162 5 times, resulting in a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 45.0
Subtract 155 from 162 to get 7.
Grab the next digit (3) from the dividend, add it to 7, then carry on: 73 / 31

On to step 5:
31 goes into 73 2 times with a remainder of 11.
Record the quotient 2 as the next digit in the result. 
Result so far: 452.0
Subtracting 62 from 73 leaves us with 11.
Take the next digit (1) from the dividend and append it to 11, then repeat: 111 / 31

Advancing to step 6:
When dividing 111 by 31, we get 3 with a remainder of 18.
Use 3 as the next digit of our solution. 
Result so far: 4523.0
Deduct 93 from 111 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
31 can be fit into 180 5 times, resulting in a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 4523.5
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 8:
When dividing 250 by 31, we get 8 with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 4523.58
If we take 248 away from 250, 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.

On to step 9:
31 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 4523.58
Subtracting 0 from 20 leaves us 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 10:
31 can be fit into 200 6 times, resulting in a remainder of 14.
The next digit of our result is 6. 
Result so far: 4523.5806
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 11:
If we divide 140 by 31, we get 4 and a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 4523.58064
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 12:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 4523.580645
Subtracting 155 from 160 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 4523.5806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 14:
190 divided by 31 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 4523.58064516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 4523.58064516 with a remaining 4e-09.