515145 ÷ 31 
Let's see how many times 31 fits into 515145.

Let's proceed to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Step 2:
When dividing 51 by 31, we get 1 with a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 31 from 51 leaves us with 20.
Bring next digit (5) of the dividend behind the 20 and repeat the process: 205 / 31

Advancing to step 3:
31 can be fit into 205 6 times, resulting in a remainder of 19.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtracting 186 from 205 leaves us with 19.
Take the next digit (1) from the dividend and append it to 19, then repeat: 191 / 31

Step 4:
31 can be fit into 191 6 times, resulting in a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 166.0
If we subtract 186 from 191, we get 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 31

Going ahead to step 5:
31 can be fit into 54 1 times, resulting in a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 1661.0
Subtracting 31 from 54 leaves us with 23.
Fetch the next digit (5) from the dividend, attach it to 23 and continue: 235 / 31

Step 6:
The number 31 fits into 235 7 times, leaving a remainder of 18.
Put 7 as the next digit of the answer. 
Result so far: 16617.0
Subtracting 217 from 235 leaves us 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.

Let's proceed to step 7:
180 divided by 31 is 5 with a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 16617.5
Subtract 155 from 180 to 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.

Moving on to step 8:
31 can be fit into 250 8 times, resulting in a remainder of 2.
The next digit of our result is 8. 
Result so far: 16617.58
Subtracting 248 from 250 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
31 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 16617.58
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 10:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 16617.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.

Advancing to step 11:
When dividing 140 by 31, we get 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 16617.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.

Let's proceed to step 12:
160 divided by 31 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 16617.580645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 13:
When dividing 50 by 31, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 16617.5806451
Deduct 31 from 50 and we're left 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 14:
190 divided by 31 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 16617.58064516
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.

The final outcome is 16617.58064516, with a leftover of 4e-09.