Let's divide 505400 by 31
We want to figure out the number of times 505400 can be divided by 31.

On to step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 31

Going ahead to step 2:
50 divided by 31 is 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 (5) from the dividend, attach it to 19 and continue: 195 / 31

Let's proceed to step 3:
If we divide 195 by 31, we get 6 and a remainder of 9.
The next digit of our result is 6. 
Result so far: 16.0
The remainder is 9 after subtracting 186 from 195.
Fetch the next digit (4) from the dividend, attach it to 9 and continue: 94 / 31

On to step 4:
31 can be fit into 94 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 163.0
The remainder is 1 after subtracting 93 from 94.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 31

Step 5:
When dividing 10 by 31, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 1630.0
Subtracting 0 from 10 leaves us with 10.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 31

Moving on to step 6:
When dividing 100 by 31, we get 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 16303.0
Deduct 93 from 100 and we're left 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 7:
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: 16303.2
Subtract 62 from 70 to get 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:
80 divided by 31 is 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 16303.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 16303.22 with a remaining 0.018.