518585 ÷ 31 
We want to figure out the number of times 518585 can be divided by 31.

Moving on to step 1:
31 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 31

Advancing to step 2:
The number 31 fits into 51 1 times, leaving a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 20 after subtracting 31 from 51.
Fetch the next digit (8) from the dividend, attach it to 20 and continue: 208 / 31

Moving on to step 3:
If we divide 208 by 31, we get 6 and a remainder of 22.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we take 186 away from 208, we end up with 22.
Bring next digit (5) of the dividend behind the 22 and repeat the process: 225 / 31

Step 4:
225 divided by 31 is 7 with a remainder of 8.
Use 7 as the next digit of our solution. 
Result so far: 167.0
Subtracting 217 from 225 leaves us with 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 31

On to step 5:
If we divide 88 by 31, we get 2 and a remainder of 26.
Record the quotient 2 as the next digit in the result. 
Result so far: 1672.0
The remainder is 26 after subtracting 62 from 88.
Grab the next digit (5) from the dividend, add it to 26, then carry on: 265 / 31

Going ahead to step 6:
If we divide 265 by 31, we get 8 and a remainder of 17.
The number 8 becomes the next digit in our result. 
Result so far: 16728.0
If we take 248 away from 265, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
170 divided by 31 is 5 with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 16728.5
Deduct 155 from 170 and we're left 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 8:
When dividing 150 by 31, we get 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 16728.54
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.

Going ahead to step 9:
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: 16728.548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 10:
31 goes into 120 3 times with a remainder of 27.
The next digit of our result is 3. 
Result so far: 16728.5483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 11:
When dividing 270 by 31, we get 8 with a remainder of 22.
The next digit of our result is 8. 
Result so far: 16728.54838
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.

Advancing to step 12:
31 goes into 220 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 16728.548387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 13:
30 divided by 31 is 0 with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 16728.548387
Subtracting 0 from 30 leaves us 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.

Moving on to step 14:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 16728.54838709
Subtract 279 from 300 to 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.

After the division, we end up with 16728.54838709 and a remainder of 2.1e-08.