500738 divided by 31 
We want to divide 500738 by 31.

On to step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 31

Advancing to step 2:
50 divided by 31 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 31 from 50 to get 19.
Take the next digit (0) from the dividend and append it to 19, then repeat: 190 / 31

Advancing to step 3:
190 divided by 31 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we subtract 186 from 190, we get 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 31

Moving on to step 4:
When dividing 47 by 31, we get 1 with a remainder of 16.
Write down 1 as next digit of the result. 
Result so far: 161.0
Subtracting 31 from 47 leaves us with 16.
Take the next digit (3) from the dividend and append it to 16, then repeat: 163 / 31

Let's proceed to step 5:
163 divided by 31 is 5 with a remainder of 8.
Put 5 as the next digit of the answer. 
Result so far: 1615.0
If we take 155 away from 163, we end up with 8.
Include the next digit (8) from the dividend after 8, then repeat: 88 / 31

Going ahead to step 6:
If we divide 88 by 31, we get 2 and a remainder of 26.
The next digit of our result is 2. 
Result so far: 16152.0
If we subtract 62 from 88, 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.

Moving on to step 7:
If we divide 260 by 31, we get 8 and a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 16152.8
Deduct 248 from 260 and we're left 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.

Moving on to step 8:
When dividing 120 by 31, we get 3 with a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 16152.83
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 9:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 16152.838
The remainder is 22 after subtracting 248 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 10:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 16152.8387
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 11:
31 goes into 30 0 times with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 16152.8387
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 12:
If we divide 300 by 31, we get 9 and a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 16152.838709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 13:
31 goes into 210 6 times with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 16152.8387096
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 14:
If we divide 240 by 31, we get 7 and a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 16152.83870967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

After the division, we end up with 16152.83870967 and a remainder of 2.3e-08.