We look at the division of 500409 by 31 
Let's see how many times 31 fits into 500409.

Let's proceed to step 1:
The number 31 fits into 5 0 times, leaving 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.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 31

Let's proceed to step 2:
When dividing 50 by 31, we get 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 31 away from 50, we end up with 19.
Fetch the next digit (0) from the dividend, attach it to 19 and continue: 190 / 31

Let's proceed to step 3:
31 goes into 190 6 times with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Deduct 186 from 190 and we're left with 4.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 31

Step 4:
When dividing 44 by 31, we get 1 with a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 161.0
Subtracting 31 from 44 leaves us with 13.
Take the next digit (0) from the dividend and append it to 13, then repeat: 130 / 31

Going ahead to step 5:
If we divide 130 by 31, we get 4 and a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 1614.0
Subtracting 124 from 130 leaves us with 6.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 31

Advancing to step 6:
When dividing 69 by 31, we get 2 with a remainder of 7.
The next digit of our result is 2. 
Result so far: 16142.0
Subtract 62 from 69 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
If we divide 70 by 31, we get 2 and a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 16142.2
Deduct 62 from 70 and we're left 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 8:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 16142.22
The remainder is 18 after subtracting 62 from 80.
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 16142.22 with a remaining 0.018.