We're dividing 345882 by 31 
Let's see how many times 31 fits into 345882.

Step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (4) from the dividend to 3 and continue with: 34 / 31

Step 2:
If we divide 34 by 31, we get 1 and a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 31 from 34 and we're left with 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 31

Going ahead to step 3:
When dividing 35 by 31, we get 1 with a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
Deduct 31 from 35 and we're left with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 31

Let's proceed to step 4:
31 goes into 48 1 times with a remainder of 17.
Record the quotient 1 as the next digit in the result. 
Result so far: 111.0
Deduct 31 from 48 and we're left with 17.
Take the next digit (8) from the dividend and append it to 17, then repeat: 178 / 31

Going ahead to step 5:
If we divide 178 by 31, we get 5 and a remainder of 23.
Put 5 as the next digit of the answer. 
Result so far: 1115.0
If we take 155 away from 178, we end up with 23.
Append the next digit (2) from the dividend to 23 and continue with: 232 / 31

Going ahead to step 6:
31 goes into 232 7 times with a remainder of 15.
The next digit of our result is 7. 
Result so far: 11157.0
Subtracting 217 from 232 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 7:
31 goes into 150 4 times with a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 11157.4
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 8:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The next digit of our result is 8. 
Result so far: 11157.48
Subtracting 248 from 260 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 9:
120 divided by 31 is 3 with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 11157.483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 10:
31 can be fit into 270 8 times, resulting in a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 11157.4838
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 11:
31 goes into 220 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 11157.48387
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 12:
31 can be fit into 30 0 times, resulting in a remainder of 30.
The next digit of our result is 0. 
Result so far: 11157.48387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 13:
If we divide 300 by 31, we get 9 and a remainder of 21.
The next digit of our result is 9. 
Result so far: 11157.4838709
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 14:
If we divide 210 by 31, we get 6 and a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 11157.48387096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final outcome is 11157.48387096, with a leftover of 2.4e-08.