Let's divide 309017 by 31
Let's see how many times 31 fits into 309017.

On to step 1:
If we divide 3 by 31, we get 0 and 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.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 31

Advancing to step 2:
31 goes into 30 0 times with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 30, we get 30.
Include the next digit (9) from the dividend after 30, then repeat: 309 / 31

Going ahead to step 3:
31 goes into 309 9 times with a remainder of 30.
Put 9 as the next digit of the answer. 
Result so far: 9.0
The remainder is 30 after subtracting 279 from 309.
Fetch the next digit (0) from the dividend, attach it to 30 and continue: 300 / 31

Advancing to step 4:
31 can be fit into 300 9 times, resulting in a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 99.0
Subtracting 279 from 300 leaves us with 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 31

Let's proceed to step 5:
31 can be fit into 211 6 times, resulting in a remainder of 25.
Put 6 as the next digit of the answer. 
Result so far: 996.0
The remainder is 25 after subtracting 186 from 211.
Append the next digit (7) from the dividend to 25 and continue with: 257 / 31

Let's proceed to step 6:
257 divided by 31 is 8 with a remainder of 9.
Record the quotient 8 as the next digit in the result. 
Result so far: 9968.0
If we subtract 248 from 257, 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.

Step 7:
31 goes into 90 2 times with a remainder of 28.
The next digit of our result is 2. 
Result so far: 9968.2
Subtracting 62 from 90 leaves us 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.

Going ahead to step 8:
If we divide 280 by 31, we get 9 and a remainder of 1.
The next digit of our result is 9. 
Result so far: 9968.29
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.

Step 9:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 9968.29
The remainder is 10 after subtracting 0 from 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 10:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 9968.2903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 11:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 9968.29032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 12:
80 divided by 31 is 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 9968.290322
Subtracting 62 from 80 leaves us 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.

The quotient of the division is 9968.290322, and the remainder is 1.8e-06.