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

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.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 31

Let's proceed to step 2:
51 divided by 31 is 1 with a remainder of 20.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 51 leaves us with 20.
Fetch the next digit (6) from the dividend, attach it to 20 and continue: 206 / 31

Let's proceed to step 3:
The number 31 fits into 206 6 times, leaving a remainder of 20.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 186 from 206, we get 20.
Grab the next digit (1) from the dividend, add it to 20, then carry on: 201 / 31

Going ahead to step 4:
201 divided by 31 is 6 with a remainder of 15.
Write down 6 as next digit of the result. 
Result so far: 166.0
If we subtract 186 from 201, we get 15.
Grab the next digit (2) from the dividend, add it to 15, then carry on: 152 / 31

Advancing to step 5:
31 can be fit into 152 4 times, resulting in a remainder of 28.
Write down 4 as next digit of the result. 
Result so far: 1664.0
If we take 124 away from 152, we end up with 28.
Grab the next digit (5) from the dividend, add it to 28, then carry on: 285 / 31

Going ahead to step 6:
The number 31 fits into 285 9 times, leaving a remainder of 6.
Record the quotient 9 as the next digit in the result. 
Result so far: 16649.0
The remainder is 6 after subtracting 279 from 285.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 7:
60 divided by 31 is 1 with a remainder of 29.
The next digit of our result is 1. 
Result so far: 16649.1
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 8:
If we divide 290 by 31, we get 9 and a remainder of 11.
The next digit of our result is 9. 
Result so far: 16649.19
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 9:
110 divided by 31 is 3 with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 16649.193
If we take 93 away from 110, 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.

Moving on to step 10:
If we divide 170 by 31, we get 5 and a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 16649.1935
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 11:
31 goes into 150 4 times with a remainder of 26.
The next digit of our result is 4. 
Result so far: 16649.19354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
31 goes into 260 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 16649.193548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
120 divided by 31 is 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 16649.1935483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 14:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 16649.19354838
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The final result is 16649.19354838 with a remainder of 2.2e-08.