We're dividing 519738 by 31 
We're looking to find how many times 31 goes into 519738.

On to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 31

Let's proceed to step 2:
51 divided by 31 is 1 with a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 20 after subtracting 31 from 51.
Append the next digit (9) from the dividend to 20 and continue with: 209 / 31

Moving on to step 3:
If we divide 209 by 31, we get 6 and a remainder of 23.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtracting 186 from 209 leaves us with 23.
Fetch the next digit (7) from the dividend, attach it to 23 and continue: 237 / 31

On to step 4:
The number 31 fits into 237 7 times, leaving a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 167.0
If we take 217 away from 237, we end up with 20.
Fetch the next digit (3) from the dividend, attach it to 20 and continue: 203 / 31

Going ahead to step 5:
203 divided by 31 is 6 with a remainder of 17.
The next digit of our result is 6. 
Result so far: 1676.0
Deduct 186 from 203 and we're left with 17.
Include the next digit (8) from the dividend after 17, then repeat: 178 / 31

Advancing to step 6:
31 can be fit into 178 5 times, resulting in a remainder of 23.
Record the quotient 5 as the next digit in the result. 
Result so far: 16765.0
Subtract 155 from 178 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 7:
If we divide 230 by 31, we get 7 and a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 16765.7
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 8:
31 goes into 130 4 times with a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 16765.74
Deduct 124 from 130 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 9:
If we divide 60 by 31, we get 1 and a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 16765.741
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Let's proceed to step 10:
290 divided by 31 is 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 16765.7419
Subtract 279 from 290 to get 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 11:
110 divided by 31 is 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 16765.74193
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 12:
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: 16765.741935
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 13:
31 goes into 150 4 times with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 16765.7419354
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.

Let's proceed to step 14:
The number 31 fits into 260 8 times, leaving a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 16765.74193548
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The quotient of the division is 16765.74193548, and the remainder is 1.2e-08.