We look at the division of 306391 by 31 
We want to divide 306391 by 31.

Going ahead 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
Subtract 0 from 3 to get 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 31

On to step 2:
31 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 30 after subtracting 0 from 30.
Append the next digit (6) from the dividend to 30 and continue with: 306 / 31

Let's proceed to step 3:
31 goes into 306 9 times with a remainder of 27.
Write down 9 as next digit of the result. 
Result so far: 9.0
The remainder is 27 after subtracting 279 from 306.
Append the next digit (3) from the dividend to 27 and continue with: 273 / 31

Moving on to step 4:
The number 31 fits into 273 8 times, leaving a remainder of 25.
Put 8 as the next digit of the answer. 
Result so far: 98.0
If we subtract 248 from 273, we get 25.
Append the next digit (9) from the dividend to 25 and continue with: 259 / 31

Step 5:
When dividing 259 by 31, we get 8 with a remainder of 11.
Use 8 as the next digit of our solution. 
Result so far: 988.0
Deduct 248 from 259 and we're left with 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 31

Moving on to step 6:
If we divide 111 by 31, we get 3 and a remainder of 18.
The number 3 becomes the next digit in our result. 
Result so far: 9883.0
If we take 93 away from 111, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 7:
180 divided by 31 is 5 with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 9883.5
If we take 155 away from 180, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 8:
31 goes into 250 8 times with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 9883.58
Deduct 248 from 250 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 9883.58
Subtracting 0 from 20 leaves us 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.

Let's proceed to step 10:
200 divided by 31 is 6 with a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 9883.5806
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 11:
The number 31 fits into 140 4 times, leaving a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 9883.58064
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 12:
31 goes into 160 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 9883.580645
Subtract 155 from 160 to 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.

Moving on to step 13:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 9883.5806451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 14:
When dividing 190 by 31, we get 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 9883.58064516
Subtracting 186 from 190 leaves us 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.

The quotient of the division is 9883.58064516, and the remainder is 4e-09.