Let's divide 505328 by 31
Let's see how many times 31 fits into 505328.

On to step 1:
31 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

Moving on to step 2:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 31 from 50, we get 19.
Bring next digit (5) of the dividend behind the 19 and repeat the process: 195 / 31

Advancing to step 3:
31 goes into 195 6 times with a remainder of 9.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we take 186 away from 195, we end up with 9.
Append the next digit (3) from the dividend to 9 and continue with: 93 / 31

On to step 4:
If we divide 93 by 31, we get 3 and a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 163.0
The remainder is 0 after subtracting 93 from 93.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 31

Let's proceed to step 5:
When dividing 2 by 31, we get 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 1630.0
Deduct 0 from 2 and we're left with 2.
Append the next digit (8) from the dividend to 2 and continue with: 28 / 31

Step 6:
31 can be fit into 28 0 times, resulting in a remainder of 28.
The next digit of our result is 0. 
Result so far: 16300.0
If we take 0 away from 28, we end up with 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 7:
If we divide 280 by 31, we get 9 and a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 16300.9
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 8:
10 divided by 31 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 16300.9
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.

On to step 9:
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: 16300.903
If we subtract 93 from 100, we 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.

Step 10:
31 goes into 70 2 times with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 16300.9032
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.

Step 11:
If we divide 80 by 31, we get 2 and a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 16300.90322
If we subtract 62 from 80, we 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.

After the division, we end up with 16300.90322 and a remainder of 1.8e-05.