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

Going ahead to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 31

Going ahead to step 2:
When dividing 31 by 31, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 0 after subtracting 31 from 31.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 31

Step 3:
0 divided by 31 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we subtract 0 from 0, we get 0.
Grab the next digit (9) from the dividend, add it to 0, then carry on: 9 / 31

Advancing to step 4:
When dividing 9 by 31, we get 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 100.0
Subtract 0 from 9 to get 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 31

On to step 5:
31 can be fit into 97 3 times, resulting in a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 1003.0
Subtracting 93 from 97 leaves us with 4.
Bring next digit (9) of the dividend behind the 4 and repeat the process: 49 / 31

Advancing to step 6:
If we divide 49 by 31, we get 1 and a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 10031.0
The remainder is 18 after subtracting 31 from 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
31 can be fit into 180 5 times, resulting in a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 10031.5
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 8:
When dividing 250 by 31, we get 8 with a remainder of 2.
The next digit of our result is 8. 
Result so far: 10031.58
Subtracting 248 from 250 leaves us 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.

Let's proceed to step 9:
31 can be fit into 20 0 times, resulting in a remainder of 20.
The next digit of our result is 0. 
Result so far: 10031.58
Deduct 0 from 20 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 10:
The number 31 fits into 200 6 times, leaving a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 10031.5806
Subtract 186 from 200 to 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.

Step 11:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 10031.58064
If we take 124 away from 140, we end up 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.

Moving on to step 12:
31 goes into 160 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 10031.580645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 13:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 10031.5806451
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.

Moving on to step 14:
If we divide 190 by 31, we get 6 and a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 10031.58064516
Subtract 186 from 190 to get 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 final result is 10031.58064516 with a remainder of 4e-09.