We're dividing 316639 by 31 
We want to divide 316639 by 31.

Advancing to step 1:
31 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 31

Step 2:
31 goes into 31 1 times with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 31 from 31 leaves us with 0.
Fetch the next digit (6) from the dividend, attach it to 0 and continue: 6 / 31

Let's proceed to step 3:
The number 31 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
Deduct 0 from 6 and we're left with 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 31

Moving on to step 4:
31 goes into 66 2 times with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 102.0
Subtracting 62 from 66 leaves us with 4.
Take the next digit (3) from the dividend and append it to 4, then repeat: 43 / 31

Let's proceed to step 5:
When dividing 43 by 31, we get 1 with a remainder of 12.
Use 1 as the next digit of our solution. 
Result so far: 1021.0
Deduct 31 from 43 and we're left with 12.
Include the next digit (9) from the dividend after 12, then repeat: 129 / 31

On to step 6:
If we divide 129 by 31, we get 4 and a remainder of 5.
Put 4 as the next digit of the answer. 
Result so far: 10214.0
If we subtract 124 from 129, 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 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 10214.1
Subtracting 31 from 50 leaves us 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.

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

Moving on to step 9:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 10214.161
Subtract 31 from 40 to 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.

Advancing to step 10:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 10214.1612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 11:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 10214.16129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 12:
The number 31 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 10214.16129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 13:
When dividing 100 by 31, we get 3 with a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 10214.1612903
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.

Let's proceed to step 14:
If we divide 70 by 31, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 10214.16129032
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.

After the division, we end up with 10214.16129032 and a remainder of 8e-09.