318959 ÷ 31 
Let's see how many times 31 fits into 318959.

Step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 31

Going ahead to step 2:
If we divide 31 by 31, we get 1 and a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 31 from 31 and we're left with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 31

Moving on to step 3:
When dividing 8 by 31, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtracting 0 from 8 leaves us with 8.
Append the next digit (9) from the dividend to 8 and continue with: 89 / 31

Moving on to step 4:
If we divide 89 by 31, we get 2 and a remainder of 27.
The next digit of our result is 2. 
Result so far: 102.0
The remainder is 27 after subtracting 62 from 89.
Fetch the next digit (5) from the dividend, attach it to 27 and continue: 275 / 31

On to step 5:
31 can be fit into 275 8 times, resulting in a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 1028.0
If we take 248 away from 275, we end up with 27.
Take the next digit (9) from the dividend and append it to 27, then repeat: 279 / 31

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

Advancing to step 7:
If we divide 0 by 31, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10289.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
When dividing 0 by 31, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10289.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 10289.0, with a leftover of 0.0.