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

Going ahead to step 1:
31 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 31

Going ahead to step 2:
31 goes into 52 1 times with a remainder of 21.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 52 leaves us with 21.
Take the next digit (0) from the dividend and append it to 21, then repeat: 210 / 31

Let's proceed to step 3:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The next digit of our result is 6. 
Result so far: 16.0
Subtract 186 from 210 to get 24.
Include the next digit (5) from the dividend after 24, then repeat: 245 / 31

Advancing to step 4:
31 can be fit into 245 7 times, resulting in a remainder of 28.
Record the quotient 7 as the next digit in the result. 
Result so far: 167.0
Deduct 217 from 245 and we're left with 28.
Take the next digit (0) from the dividend and append it to 28, then repeat: 280 / 31

Let's proceed to step 5:
280 divided by 31 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 1679.0
Subtracting 279 from 280 leaves us with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 31

Going ahead to step 6:
When dividing 18 by 31, we get 0 with a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 16790.0
Deduct 0 from 18 and we're left 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.

Step 7:
31 goes into 180 5 times with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 16790.5
If we subtract 155 from 180, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 8:
If we divide 250 by 31, we get 8 and a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 16790.58
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 9:
If we divide 20 by 31, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 16790.58
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 10:
The number 31 fits into 200 6 times, leaving a remainder of 14.
Write down 6 as next digit of the result. 
Result so far: 16790.5806
Subtract 186 from 200 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 11:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The next digit of our result is 4. 
Result so far: 16790.58064
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 12:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 16790.580645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 13:
50 divided by 31 is 1 with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 16790.5806451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 14:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16790.58064516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 16790.58064516 with a remainder of 4e-09.