We're dividing 513799 by 31 
Let's see how many times 31 fits into 513799.

Step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 31

Let's proceed to step 2:
When dividing 51 by 31, we get 1 with a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 51 and we're left with 20.
Grab the next digit (3) from the dividend, add it to 20, then carry on: 203 / 31

Moving on to step 3:
The number 31 fits into 203 6 times, leaving a remainder of 17.
The next digit of our result is 6. 
Result so far: 16.0
The remainder is 17 after subtracting 186 from 203.
Fetch the next digit (7) from the dividend, attach it to 17 and continue: 177 / 31

On to step 4:
31 can be fit into 177 5 times, resulting in a remainder of 22.
The next digit of our result is 5. 
Result so far: 165.0
Subtract 155 from 177 to get 22.
Include the next digit (9) from the dividend after 22, then repeat: 229 / 31

Advancing to step 5:
229 divided by 31 is 7 with a remainder of 12.
Write down 7 as next digit of the result. 
Result so far: 1657.0
Subtracting 217 from 229 leaves us with 12.
Append the next digit (9) from the dividend to 12 and continue with: 129 / 31

Let's proceed to step 6:
31 goes into 129 4 times with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 16574.0
Deduct 124 from 129 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 7:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 16574.1
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.

Advancing to step 8:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 16574.16
If we subtract 186 from 190, we get 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 9:
31 can be fit into 40 1 times, resulting in a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 16574.161
Deduct 31 from 40 and we're left with 9.
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 10:
31 goes into 90 2 times with a remainder of 28.
The next digit of our result is 2. 
Result so far: 16574.1612
If we subtract 62 from 90, we 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.

Advancing to step 11:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 16574.16129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 12:
10 divided by 31 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 16574.16129
Deduct 0 from 10 and we're left 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.

Moving on to step 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 16574.1612903
If we take 93 away from 100, we end up with 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:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 16574.16129032
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 16574.16129032, with a leftover of 8e-09.