We're dividing 541238 by 31 
We're looking to find how many times 31 goes into 541238.

Step 1:
31 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 31

On to step 2:
31 can be fit into 54 1 times, resulting in a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 31 away from 54, we end up with 23.
Fetch the next digit (1) from the dividend, attach it to 23 and continue: 231 / 31

Moving on to step 3:
If we divide 231 by 31, we get 7 and a remainder of 14.
The next digit of our result is 7. 
Result so far: 17.0
If we subtract 217 from 231, we get 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 31

Going ahead to step 4:
142 divided by 31 is 4 with a remainder of 18.
The number 4 becomes the next digit in our result. 
Result so far: 174.0
The remainder is 18 after subtracting 124 from 142.
Bring next digit (3) of the dividend behind the 18 and repeat the process: 183 / 31

Going ahead to step 5:
When dividing 183 by 31, we get 5 with a remainder of 28.
Write down 5 as next digit of the result. 
Result so far: 1745.0
Subtract 155 from 183 to get 28.
Bring next digit (8) of the dividend behind the 28 and repeat the process: 288 / 31

Advancing to step 6:
31 goes into 288 9 times with a remainder of 9.
Write down 9 as next digit of the result. 
Result so far: 17459.0
If we subtract 279 from 288, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 7:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 17459.2
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 8:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 17459.29
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 9:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 17459.29
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 10:
The number 31 fits into 100 3 times, leaving a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 17459.2903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
If we divide 70 by 31, we get 2 and a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 17459.29032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 12:
The number 31 fits into 80 2 times, leaving a remainder of 18.
The next digit of our result is 2. 
Result so far: 17459.290322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 17459.290322 with a remaining 1.8e-06.