540531 divided by 31 
We want to divide 540531 by 31.

Advancing to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 31

Let's proceed to step 2:
31 goes into 54 1 times with a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 31 from 54 leaves us with 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 31

On to step 3:
When dividing 230 by 31, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 17.0
If we subtract 217 from 230, we get 13.
Append the next digit (5) from the dividend to 13 and continue with: 135 / 31

Step 4:
When dividing 135 by 31, we get 4 with a remainder of 11.
Put 4 as the next digit of the answer. 
Result so far: 174.0
Deduct 124 from 135 and we're left with 11.
Fetch the next digit (3) from the dividend, attach it to 11 and continue: 113 / 31

Moving on to step 5:
31 can be fit into 113 3 times, resulting in a remainder of 20.
Put 3 as the next digit of the answer. 
Result so far: 1743.0
Subtract 93 from 113 to get 20.
Include the next digit (1) from the dividend after 20, then repeat: 201 / 31

Going ahead to step 6:
31 goes into 201 6 times with a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 17436.0
Subtract 186 from 201 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 7:
If we divide 150 by 31, we get 4 and a remainder of 26.
The next digit of our result is 4. 
Result so far: 17436.4
If we take 124 away from 150, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 8:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 17436.48
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 9:
120 divided by 31 is 3 with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 17436.483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 10:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 17436.4838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 11:
220 divided by 31 is 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 17436.48387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 12:
When dividing 30 by 31, we get 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 17436.48387
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 13:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The next digit of our result is 9. 
Result so far: 17436.4838709
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.

Step 14:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 17436.48387096
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Our division results in 17436.48387096 with a remaining 2.4e-08.