Let's divide 240182 by 31
We're looking to find how many times 31 goes into 240182.

Advancing to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 31

Advancing to step 2:
31 goes into 24 0 times with a remainder of 24.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 24, we end up with 24.
Bring next digit (0) of the dividend behind the 24 and repeat the process: 240 / 31

Advancing to step 3:
31 goes into 240 7 times with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we subtract 217 from 240, we get 23.
Append the next digit (1) from the dividend to 23 and continue with: 231 / 31

Step 4:
31 can be fit into 231 7 times, resulting in a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 77.0
Subtract 217 from 231 to get 14.
Append the next digit (8) from the dividend to 14 and continue with: 148 / 31

On to step 5:
31 goes into 148 4 times with a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 774.0
The remainder is 24 after subtracting 124 from 148.
Append the next digit (2) from the dividend to 24 and continue with: 242 / 31

Going ahead to step 6:
31 can be fit into 242 7 times, resulting in a remainder of 25.
The next digit of our result is 7. 
Result so far: 7747.0
Subtracting 217 from 242 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 7:
When dividing 250 by 31, we get 8 with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 7747.8
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
31 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 7747.8
Subtracting 0 from 20 leaves us 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.

On to step 9:
200 divided by 31 is 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 7747.806
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 10:
31 goes into 140 4 times with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 7747.8064
Subtract 124 from 140 to get 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 11:
31 can be fit into 160 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 7747.80645
The remainder is 5 after subtracting 155 from 160.
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 12:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 7747.806451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 13:
When dividing 190 by 31, we get 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 7747.8064516
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.

Let's proceed to step 14:
When dividing 40 by 31, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 7747.80645161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

The final outcome is 7747.80645161, with a leftover of 9e-09.