789938 divided by 31 
We're looking to find how many times 31 goes into 789938.

Advancing to step 1:
31 can be fit into 7 0 times, resulting in a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 31

Step 2:
If we divide 78 by 31, we get 2 and a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 78 leaves us with 16.
Fetch the next digit (9) from the dividend, attach it to 16 and continue: 169 / 31

Step 3:
169 divided by 31 is 5 with a remainder of 14.
The next digit of our result is 5. 
Result so far: 25.0
The remainder is 14 after subtracting 155 from 169.
Grab the next digit (9) from the dividend, add it to 14, then carry on: 149 / 31

Step 4:
When dividing 149 by 31, we get 4 with a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 254.0
If we subtract 124 from 149, we get 25.
Append the next digit (3) from the dividend to 25 and continue with: 253 / 31

Moving on to step 5:
When dividing 253 by 31, we get 8 with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 2548.0
The remainder is 5 after subtracting 248 from 253.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 31

Moving on to step 6:
The number 31 fits into 58 1 times, leaving a remainder of 27.
Put 1 as the next digit of the answer. 
Result so far: 25481.0
Deduct 31 from 58 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
If we divide 270 by 31, we get 8 and a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 25481.8
Subtracting 248 from 270 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 8:
31 goes into 220 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 25481.87
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 9:
30 divided by 31 is 0 with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 25481.87
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
31 can be fit into 300 9 times, resulting in a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 25481.8709
Subtracting 279 from 300 leaves us with 21.
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 11:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The next digit of our result is 6. 
Result so far: 25481.87096
Deduct 186 from 210 and we're left 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.

Let's proceed to step 12:
31 goes into 240 7 times with a remainder of 23.
The next digit of our result is 7. 
Result so far: 25481.870967
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.

Moving on to step 13:
When dividing 230 by 31, we get 7 with a remainder of 13.
The next digit of our result is 7. 
Result so far: 25481.8709677
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.

The quotient of the division is 25481.8709677, and the remainder is 1.3e-07.