204158 divided by 31 
Let's see how many times 31 fits into 204158.

Advancing to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 31

Advancing to step 2:
31 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 20 and we're left with 20.
Include the next digit (4) from the dividend after 20, then repeat: 204 / 31

On to step 3:
31 goes into 204 6 times with a remainder of 18.
The next digit of our result is 6. 
Result so far: 6.0
Subtracting 186 from 204 leaves us with 18.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 31

Step 4:
If we divide 181 by 31, we get 5 and a remainder of 26.
Record the quotient 5 as the next digit in the result. 
Result so far: 65.0
Subtract 155 from 181 to get 26.
Append the next digit (5) from the dividend to 26 and continue with: 265 / 31

Going ahead to step 5:
31 goes into 265 8 times with a remainder of 17.
The next digit of our result is 8. 
Result so far: 658.0
The remainder is 17 after subtracting 248 from 265.
Bring next digit (8) of the dividend behind the 17 and repeat the process: 178 / 31

Moving on to step 6:
When dividing 178 by 31, we get 5 with a remainder of 23.
Record the quotient 5 as the next digit in the result. 
Result so far: 6585.0
Subtract 155 from 178 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 7:
230 divided by 31 is 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 6585.7
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
130 divided by 31 is 4 with a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 6585.74
Subtracting 124 from 130 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 9:
31 can be fit into 60 1 times, resulting in a remainder of 29.
The number 1 becomes the next digit in our result. 
Result so far: 6585.741
Subtracting 31 from 60 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 10:
If we divide 290 by 31, we get 9 and a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 6585.7419
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 11:
31 can be fit into 110 3 times, resulting in a remainder of 17.
The next digit of our result is 3. 
Result so far: 6585.74193
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 12:
If we divide 170 by 31, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 6585.741935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 13:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 6585.7419354
Subtracting 124 from 150 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 14:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 6585.74193548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 6585.74193548 with a remainder of 1.2e-08.