Let's divide 516899 by 31
We're looking to find how many times 31 goes into 516899.

Moving on to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 31

Going ahead to 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
If we take 31 away from 51, we end up with 20.
Fetch the next digit (6) from the dividend, attach it to 20 and continue: 206 / 31

Going ahead to step 3:
206 divided by 31 is 6 with a remainder of 20.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we take 186 away from 206, we end up with 20.
Append the next digit (8) from the dividend to 20 and continue with: 208 / 31

Let's proceed to step 4:
If we divide 208 by 31, we get 6 and a remainder of 22.
Record the quotient 6 as the next digit in the result. 
Result so far: 166.0
The remainder is 22 after subtracting 186 from 208.
Grab the next digit (9) from the dividend, add it to 22, then carry on: 229 / 31

Moving on to step 5:
31 can be fit into 229 7 times, resulting in a remainder of 12.
The number 7 becomes the next digit in our result. 
Result so far: 1667.0
The remainder is 12 after subtracting 217 from 229.
Bring next digit (9) of the dividend behind the 12 and repeat the process: 129 / 31

Moving on to step 6:
The number 31 fits into 129 4 times, leaving a remainder of 5.
The number 4 becomes the next digit in our result. 
Result so far: 16674.0
Subtract 124 from 129 to 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.

On to step 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 16674.1
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 8:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16674.16
Subtracting 186 from 190 leaves us 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.

Step 9:
40 divided by 31 is 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 16674.161
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.

Step 10:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 16674.1612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 11:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 16674.16129
Deduct 279 from 280 and we're left 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.

On to step 12:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 16674.16129
If we take 0 away from 10, we end up 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.

Step 13:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 16674.1612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 14:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 16674.16129032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 16674.16129032, and the remainder is 8e-09.