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

Let's proceed to step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 31

Advancing to step 2:
When dividing 51 by 31, we get 1 with a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 31 from 51 leaves us with 20.
Append the next digit (4) from the dividend to 20 and continue with: 204 / 31

Let's proceed to step 3:
31 goes into 204 6 times with a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtract 186 from 204 to get 18.
Fetch the next digit (8) from the dividend, attach it to 18 and continue: 188 / 31

Let's proceed to step 4:
The number 31 fits into 188 6 times, leaving a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 166.0
The remainder is 2 after subtracting 186 from 188.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 31

Advancing to step 5:
31 can be fit into 23 0 times, resulting in a remainder of 23.
The next digit of our result is 0. 
Result so far: 1660.0
If we take 0 away from 23, we end up with 23.
Include the next digit (7) from the dividend after 23, then repeat: 237 / 31

Let's proceed to step 6:
When dividing 237 by 31, we get 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 16607.0
The remainder is 20 after subtracting 217 from 237.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 7:
When dividing 200 by 31, we get 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 16607.6
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.

Let's proceed to step 8:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 16607.64
If we take 124 away from 140, we end up with 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 9:
31 goes into 160 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 16607.645
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.

Going ahead to step 10:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 16607.6451
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.

Going ahead to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 16607.64516
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.

Let's proceed to step 12:
31 goes into 40 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 16607.645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 13:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 16607.6451612
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.

Let's proceed to step 14:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 16607.64516129
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.

In conclusion, the division gives 16607.64516129 with a balance of 1e-09.