We look at the division of 391581 by 31 
Let's see how many times 31 fits into 391581.

Advancing to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 31

Moving on to step 2:
31 can be fit into 39 1 times, resulting in a remainder of 8.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 31 from 39 and we're left with 8.
Take the next digit (1) from the dividend and append it to 8, then repeat: 81 / 31

Step 3:
If we divide 81 by 31, we get 2 and a remainder of 19.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 62 from 81, we get 19.
Fetch the next digit (5) from the dividend, attach it to 19 and continue: 195 / 31

Let's proceed to step 4:
If we divide 195 by 31, we get 6 and a remainder of 9.
Write down 6 as next digit of the result. 
Result so far: 126.0
Subtracting 186 from 195 leaves us with 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 31

On to step 5:
When dividing 98 by 31, we get 3 with a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 1263.0
Subtract 93 from 98 to get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 31

Step 6:
The number 31 fits into 51 1 times, leaving a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 12631.0
Deduct 31 from 51 and we're left 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.

Going ahead to step 7:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 12631.6
Subtracting 186 from 200 leaves us 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.

Step 8:
If we divide 140 by 31, we get 4 and a remainder of 16.
The next digit of our result is 4. 
Result so far: 12631.64
The remainder is 16 after subtracting 124 from 140.
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 9:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 12631.645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 10:
50 divided by 31 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 12631.6451
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 11:
31 goes into 190 6 times with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 12631.64516
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 12:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 12631.645161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 13:
When dividing 90 by 31, we get 2 with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 12631.6451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 14:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 12631.64516129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final outcome is 12631.64516129, with a leftover of 1e-09.