We're dividing 540056 by 31 
We want to divide 540056 by 31.

Going ahead to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (4) of the dividend behind the 5 and repeat the process: 54 / 31

Going ahead to step 2:
31 goes into 54 1 times with a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 31 from 54, we get 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 31

Advancing to step 3:
31 goes into 230 7 times with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 17.0
If we take 217 away from 230, we end up with 13.
Bring next digit (0) of the dividend behind the 13 and repeat the process: 130 / 31

Advancing to step 4:
When dividing 130 by 31, we get 4 with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 174.0
The remainder is 6 after subtracting 124 from 130.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 31

Moving on to step 5:
31 can be fit into 65 2 times, resulting in a remainder of 3.
The number 2 becomes the next digit in our result. 
Result so far: 1742.0
Subtract 62 from 65 to get 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 31

Advancing to step 6:
31 can be fit into 36 1 times, resulting in a remainder of 5.
Record the quotient 1 as the next digit in the result. 
Result so far: 17421.0
The remainder is 5 after subtracting 31 from 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 17421.1
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 17421.16
Subtracting 186 from 190 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 9:
31 goes into 40 1 times with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 17421.161
If we take 31 away from 40, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 10:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 17421.1612
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.

Advancing to step 11:
280 divided by 31 is 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 17421.16129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 12:
31 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 17421.16129
Subtracting 0 from 10 leaves us 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.

Moving on to step 13:
If we divide 100 by 31, we get 3 and a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 17421.1612903
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.

Advancing to step 14:
When dividing 70 by 31, we get 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 17421.16129032
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.

In conclusion, the division gives 17421.16129032 with a balance of 8e-09.