Let's divide 139823 by 31
Our goal is to divide 139823 by 31.

Advancing to step 1:
31 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 31

Moving on to step 2:
13 divided by 31 is 0 with a remainder of 13.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 13, we end up with 13.
Fetch the next digit (9) from the dividend, attach it to 13 and continue: 139 / 31

Let's proceed to step 3:
31 goes into 139 4 times with a remainder of 15.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtracting 124 from 139 leaves us with 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 31

Step 4:
If we divide 158 by 31, we get 5 and a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 45.0
Subtracting 155 from 158 leaves us with 3.
Append the next digit (2) from the dividend to 3 and continue with: 32 / 31

Let's proceed to step 5:
32 divided by 31 is 1 with a remainder of 1.
The next digit of our result is 1. 
Result so far: 451.0
Subtracting 31 from 32 leaves us with 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 31

Step 6:
If we divide 13 by 31, we get 0 and a remainder of 13.
The next digit of our result is 0. 
Result so far: 4510.0
Subtract 0 from 13 to 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.

Going ahead to step 7:
31 can be fit into 130 4 times, resulting in a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 4510.4
Deduct 124 from 130 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
31 can be fit into 60 1 times, resulting in a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 4510.41
If we take 31 away from 60, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 9:
The number 31 fits into 290 9 times, leaving a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 4510.419
Subtracting 279 from 290 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 10:
The number 31 fits into 110 3 times, leaving a remainder of 17.
The next digit of our result is 3. 
Result so far: 4510.4193
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 11:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 4510.41935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 12:
150 divided by 31 is 4 with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 4510.419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 13:
When dividing 260 by 31, we get 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 4510.4193548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 14:
31 can be fit into 120 3 times, resulting in a remainder of 27.
The next digit of our result is 3. 
Result so far: 4510.41935483
Subtracting 93 from 120 leaves us 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.

Our division results in 4510.41935483 with a remaining 2.7e-08.