We look at the division of 501082 by 31 
We want to figure out the number of times 501082 can be divided by 31.

Let's proceed to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
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

Going ahead to step 2:
31 goes into 50 1 times with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 19 after subtracting 31 from 50.
Bring next digit (1) of the dividend behind the 19 and repeat the process: 191 / 31

On to step 3:
191 divided by 31 is 6 with a remainder of 5.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 186 from 191, we get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 31

Let's proceed to step 4:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 161.0
Subtract 31 from 50 to get 19.
Include the next digit (8) from the dividend after 19, then repeat: 198 / 31

Step 5:
When dividing 198 by 31, we get 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 1616.0
Subtract 186 from 198 to get 12.
Grab the next digit (2) from the dividend, add it to 12, then carry on: 122 / 31

Step 6:
If we divide 122 by 31, we get 3 and a remainder of 29.
Use 3 as the next digit of our solution. 
Result so far: 16163.0
The remainder is 29 after subtracting 93 from 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 7:
When dividing 290 by 31, we get 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 16163.9
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 8:
When dividing 110 by 31, we get 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 16163.93
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 9:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 16163.935
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 10:
The number 31 fits into 150 4 times, leaving a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 16163.9354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 11:
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: 16163.93548
If we take 248 away from 260, we end up 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.

Let's proceed to step 12:
When dividing 120 by 31, we get 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 16163.935483
Deduct 93 from 120 and we're left with 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 13:
When dividing 270 by 31, we get 8 with a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 16163.9354838
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 14:
31 can be fit into 220 7 times, resulting in a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 16163.93548387
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Our division results in 16163.93548387 with a remaining 3e-09.