Let's divide 381574 by 31
We want to figure out the number of times 381574 can be divided by 31.

On to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 31

Moving on to step 2:
If we divide 38 by 31, we get 1 and a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 31

On to step 3:
31 goes into 71 2 times with a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 62 from 71, we get 9.
Fetch the next digit (5) from the dividend, attach it to 9 and continue: 95 / 31

Going ahead to step 4:
95 divided by 31 is 3 with a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 123.0
Subtracting 93 from 95 leaves us with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 31

Advancing to step 5:
31 goes into 27 0 times with a remainder of 27.
Record the quotient 0 as the next digit in the result. 
Result so far: 1230.0
Subtracting 0 from 27 leaves us with 27.
Fetch the next digit (4) from the dividend, attach it to 27 and continue: 274 / 31

Going ahead to step 6:
If we divide 274 by 31, we get 8 and a remainder of 26.
Write down 8 as next digit of the result. 
Result so far: 12308.0
If we subtract 248 from 274, we 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.

Going ahead to step 7:
If we divide 260 by 31, we get 8 and a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 12308.8
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.

Moving on to step 8:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 12308.83
If we take 93 away from 120, 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 9:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 12308.838
If we take 248 away from 270, we end up 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.

Step 10:
If we divide 220 by 31, we get 7 and a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 12308.8387
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.

Step 11:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 12308.8387
Subtracting 0 from 30 leaves us 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 12:
31 goes into 300 9 times with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 12308.838709
If we take 279 away from 300, we end up 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.

Going ahead to step 13:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 12308.8387096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 14:
240 divided by 31 is 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 12308.83870967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The final result is 12308.83870967 with a remainder of 2.3e-08.