Let's divide 124223 by 31
We want to divide 124223 by 31.

Advancing to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 31

On to step 2:
When dividing 12 by 31, we get 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 12, we end up with 12.
Take the next digit (4) from the dividend and append it to 12, then repeat: 124 / 31

Going ahead to step 3:
If we divide 124 by 31, we get 4 and a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 124 from 124 to get 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 31

On to step 4:
If we divide 2 by 31, we get 0 and a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 40.0
Deduct 0 from 2 and we're left with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 31

Advancing to step 5:
22 divided by 31 is 0 with a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 400.0
If we take 0 away from 22, we end up with 22.
Include the next digit (3) from the dividend after 22, then repeat: 223 / 31

Moving on to step 6:
31 can be fit into 223 7 times, resulting in a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 4007.0
Subtract 217 from 223 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 7:
31 can be fit into 60 1 times, resulting in a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 4007.1
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 8:
If we divide 290 by 31, we get 9 and a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 4007.19
Subtract 279 from 290 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 9:
110 divided by 31 is 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 4007.193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 10:
31 goes into 170 5 times with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 4007.1935
Subtracting 155 from 170 leaves us 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.

Let's proceed to step 11:
31 can be fit into 150 4 times, resulting in a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 4007.19354
Subtracting 124 from 150 leaves us with 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 12:
260 divided by 31 is 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 4007.193548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 4007.1935483
Deduct 93 from 120 and we're left 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.

Moving on to step 14:
270 divided by 31 is 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 4007.19354838
Subtracting 248 from 270 leaves us 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.

The quotient of the division is 4007.19354838, and the remainder is 2.2e-08.