Let's divide 793860 by 31
We're looking to find how many times 31 goes into 793860.

Let's proceed to step 1:
If we divide 7 by 31, we get 0 and a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 31

Step 2:
If we divide 79 by 31, we get 2 and a remainder of 17.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 62 from 79 to get 17.
Bring next digit (3) of the dividend behind the 17 and repeat the process: 173 / 31

Step 3:
The number 31 fits into 173 5 times, leaving a remainder of 18.
Use 5 as the next digit of our solution. 
Result so far: 25.0
If we subtract 155 from 173, we get 18.
Take the next digit (8) from the dividend and append it to 18, then repeat: 188 / 31

Advancing to step 4:
31 can be fit into 188 6 times, resulting in a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 256.0
Subtracting 186 from 188 leaves us with 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 31

Going ahead to step 5:
The number 31 fits into 26 0 times, leaving a remainder of 26.
The number 0 becomes the next digit in our result. 
Result so far: 2560.0
Subtracting 0 from 26 leaves us with 26.
Grab the next digit (0) from the dividend, add it to 26, then carry on: 260 / 31

Going ahead to step 6:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 25608.0
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 7:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 25608.3
Subtracting 93 from 120 leaves us 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.

Going ahead to step 8:
31 goes into 270 8 times with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 25608.38
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.

Step 9:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The next digit of our result is 7. 
Result so far: 25608.387
If we take 217 away from 220, we end up 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.

Moving on to step 10:
31 goes into 30 0 times with a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 25608.387
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.

On to step 11:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 25608.38709
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.

Step 12:
31 goes into 210 6 times with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 25608.387096
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.

Step 13:
If we divide 240 by 31, we get 7 and a remainder of 23.
The next digit of our result is 7. 
Result so far: 25608.3870967
Subtract 217 from 240 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.

Step 14:
If we divide 230 by 31, we get 7 and a remainder of 13.
The next digit of our result is 7. 
Result so far: 25608.38709677
If we subtract 217 from 230, we get 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 25608.38709677, and the remainder is 1.3e-08.