We're dividing 515017 by 31 
We're looking to find how many times 31 goes into 515017.

Advancing to step 1:
31 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 31

Going ahead to step 2:
The number 31 fits into 51 1 times, leaving a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 20 after subtracting 31 from 51.
Grab the next digit (5) from the dividend, add it to 20, then carry on: 205 / 31

Advancing to step 3:
205 divided by 31 is 6 with a remainder of 19.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 186 from 205, we get 19.
Grab the next digit (0) from the dividend, add it to 19, then carry on: 190 / 31

Step 4:
The number 31 fits into 190 6 times, leaving a remainder of 4.
The next digit of our result is 6. 
Result so far: 166.0
Deduct 186 from 190 and we're left with 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 31

Step 5:
31 can be fit into 41 1 times, resulting in a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1661.0
The remainder is 10 after subtracting 31 from 41.
Take the next digit (7) from the dividend and append it to 10, then repeat: 107 / 31

Step 6:
If we divide 107 by 31, we get 3 and a remainder of 14.
The next digit of our result is 3. 
Result so far: 16613.0
If we subtract 93 from 107, we 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.

Let's proceed to step 7:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 16613.4
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.

Moving on to step 8:
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: 16613.45
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.

Step 9:
50 divided by 31 is 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 16613.451
If we take 31 away from 50, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 10:
190 divided by 31 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 16613.4516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 11:
If we divide 40 by 31, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 16613.45161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 12:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 16613.451612
Subtract 62 from 90 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 13:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 16613.4516129
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 14:
10 divided by 31 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 16613.4516129
Subtracting 0 from 10 leaves us 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.

The final outcome is 16613.4516129, with a leftover of 1e-08.