We divide 518474 by 31
We're looking to find how many times 31 goes into 518474.

Let's proceed 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
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Step 2:
31 goes into 51 1 times with a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 31 away from 51, we end up with 20.
Bring next digit (8) of the dividend behind the 20 and repeat the process: 208 / 31

Moving on to step 3:
The number 31 fits into 208 6 times, leaving a remainder of 22.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtract 186 from 208 to get 22.
Append the next digit (4) from the dividend to 22 and continue with: 224 / 31

Let's proceed to step 4:
The number 31 fits into 224 7 times, leaving a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 167.0
The remainder is 7 after subtracting 217 from 224.
Include the next digit (7) from the dividend after 7, then repeat: 77 / 31

Moving on to step 5:
The number 31 fits into 77 2 times, leaving a remainder of 15.
Write down 2 as next digit of the result. 
Result so far: 1672.0
Subtracting 62 from 77 leaves us with 15.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 31

Let's proceed to step 6:
When dividing 154 by 31, we get 4 with a remainder of 30.
The number 4 becomes the next digit in our result. 
Result so far: 16724.0
Deduct 124 from 154 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 7:
If we divide 300 by 31, we get 9 and a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 16724.9
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 8:
If we divide 210 by 31, we get 6 and a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 16724.96
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 9:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 16724.967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 10:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 16724.9677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 16724.9677, with a leftover of 0.00013.