We're dividing 540579 by 31 
Our goal is to divide 540579 by 31.

Let's proceed to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 31

Advancing to step 2:
When dividing 54 by 31, we get 1 with a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 54 to get 23.
Take the next digit (0) from the dividend and append it to 23, then repeat: 230 / 31

Moving on to step 3:
230 divided by 31 is 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 17.0
Deduct 217 from 230 and we're left with 13.
Fetch the next digit (5) from the dividend, attach it to 13 and continue: 135 / 31

Moving on to step 4:
135 divided by 31 is 4 with a remainder of 11.
Write down 4 as next digit of the result. 
Result so far: 174.0
The remainder is 11 after subtracting 124 from 135.
Fetch the next digit (7) from the dividend, attach it to 11 and continue: 117 / 31

On to step 5:
The number 31 fits into 117 3 times, leaving a remainder of 24.
Record the quotient 3 as the next digit in the result. 
Result so far: 1743.0
Subtract 93 from 117 to get 24.
Take the next digit (9) from the dividend and append it to 24, then repeat: 249 / 31

Let's proceed to step 6:
The number 31 fits into 249 8 times, leaving a remainder of 1.
The number 8 becomes the next digit in our result. 
Result so far: 17438.0
The remainder is 1 after subtracting 248 from 249.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
10 divided by 31 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 17438.0
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
100 divided by 31 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 17438.03
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.

Moving on to step 9:
If we divide 70 by 31, we get 2 and a remainder of 8.
The next digit of our result is 2. 
Result so far: 17438.032
Subtracting 62 from 70 leaves us 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.

Advancing to step 10:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 17438.0322
Subtract 62 from 80 to 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.

The final result is 17438.0322 with a remainder of 0.00018.