We divide 391627 by 31
We want to figure out the number of times 391627 can be divided by 31.

Moving on to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 31

Step 2:
The number 31 fits into 39 1 times, leaving a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 31 from 39 leaves us with 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 31

Going ahead to step 3:
The number 31 fits into 81 2 times, leaving a remainder of 19.
The next digit of our result is 2. 
Result so far: 12.0
If we subtract 62 from 81, we get 19.
Bring next digit (6) of the dividend behind the 19 and repeat the process: 196 / 31

Going ahead to step 4:
If we divide 196 by 31, we get 6 and a remainder of 10.
Use 6 as the next digit of our solution. 
Result so far: 126.0
If we subtract 186 from 196, we get 10.
Grab the next digit (2) from the dividend, add it to 10, then carry on: 102 / 31

Step 5:
102 divided by 31 is 3 with a remainder of 9.
The number 3 becomes the next digit in our result. 
Result so far: 1263.0
If we take 93 away from 102, we end up with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 31

Moving on to step 6:
31 can be fit into 97 3 times, resulting in a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 12633.0
The remainder is 4 after subtracting 93 from 97.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 12633.1
If we subtract 31 from 40, we get 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 8:
If we divide 90 by 31, we get 2 and a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 12633.12
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 9:
31 goes into 280 9 times with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 12633.129
If we subtract 279 from 280, we 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.

Step 10:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 12633.129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 11:
When dividing 100 by 31, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 12633.12903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 12:
When dividing 70 by 31, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 12633.129032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 13:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 12633.1290322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 12633.1290322 and a remainder of 1.8e-07.