Let's divide 502724 by 31
We're looking to find how many times 31 goes into 502724.

Step 1:
5 divided by 31 is 0 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.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 31

On to step 2:
If we divide 50 by 31, we get 1 and a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 31 from 50 to get 19.
Take the next digit (2) from the dividend and append it to 19, then repeat: 192 / 31

Moving on to step 3:
192 divided by 31 is 6 with a remainder of 6.
The next digit of our result is 6. 
Result so far: 16.0
Deduct 186 from 192 and we're left with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 31

Let's proceed to step 4:
67 divided by 31 is 2 with a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 162.0
If we subtract 62 from 67, we get 5.
Grab the next digit (2) from the dividend, add it to 5, then carry on: 52 / 31

Moving on to step 5:
31 can be fit into 52 1 times, resulting in a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 1621.0
Subtracting 31 from 52 leaves us with 21.
Bring next digit (4) of the dividend behind the 21 and repeat the process: 214 / 31

On to step 6:
If we divide 214 by 31, we get 6 and a remainder of 28.
Record the quotient 6 as the next digit in the result. 
Result so far: 16216.0
Subtracting 186 from 214 leaves us 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:
When dividing 280 by 31, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 16216.9
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on 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: 16216.9
Deduct 0 from 10 and we're left 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:
100 divided by 31 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 16216.903
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.

On to step 10:
When dividing 70 by 31, we get 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 16216.9032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 11:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 16216.90322
If we take 62 away from 80, we end up with 18.
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 16216.90322 with a remaining 1.8e-05.