We divide 542150 by 31
We're looking to find how many times 31 goes into 542150.

Going ahead to step 1:
31 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 31

Let's proceed to step 2:
If we divide 54 by 31, we get 1 and a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 31 from 54 to get 23.
Take the next digit (2) from the dividend and append it to 23, then repeat: 232 / 31

Step 3:
The number 31 fits into 232 7 times, leaving a remainder of 15.
Write down 7 as next digit of the result. 
Result so far: 17.0
The remainder is 15 after subtracting 217 from 232.
Append the next digit (1) from the dividend to 15 and continue with: 151 / 31

Going ahead to step 4:
151 divided by 31 is 4 with a remainder of 27.
Use 4 as the next digit of our solution. 
Result so far: 174.0
If we subtract 124 from 151, we get 27.
Append the next digit (5) from the dividend to 27 and continue with: 275 / 31

Advancing to step 5:
The number 31 fits into 275 8 times, leaving a remainder of 27.
The number 8 becomes the next digit in our result. 
Result so far: 1748.0
The remainder is 27 after subtracting 248 from 275.
Include the next digit (0) from the dividend after 27, then repeat: 270 / 31

On to step 6:
If we divide 270 by 31, we get 8 and a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 17488.0
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.

Going ahead to step 7:
If we divide 220 by 31, we get 7 and a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 17488.7
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 8:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 17488.7
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 9:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 17488.709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 10:
31 goes into 210 6 times with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 17488.7096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 11:
When dividing 240 by 31, we get 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 17488.70967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 12:
31 can be fit into 230 7 times, resulting in a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 17488.709677
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.

In conclusion, the division gives 17488.709677 with a balance of 1.3e-06.