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

Step 1:
The number 31 fits into 7 0 times, leaving a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 31

Going ahead to step 2:
When dividing 79 by 31, we get 2 with a remainder of 17.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 17 after subtracting 62 from 79.
Grab the next digit (4) from the dividend, add it to 17, then carry on: 174 / 31

On to step 3:
The number 31 fits into 174 5 times, leaving a remainder of 19.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
If we take 155 away from 174, we end up with 19.
Take the next digit (8) from the dividend and append it to 19, then repeat: 198 / 31

On to step 4:
If we divide 198 by 31, we get 6 and a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 256.0
Subtract 186 from 198 to get 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 31

Step 5:
If we divide 126 by 31, we get 4 and a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 2564.0
If we take 124 away from 126, we end up with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 31

On to step 6:
31 can be fit into 21 0 times, resulting in a remainder of 21.
The number 0 becomes the next digit in our result. 
Result so far: 25640.0
Deduct 0 from 21 and we're left 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.

Advancing to step 7:
The number 31 fits into 210 6 times, leaving a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 25640.6
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.

On to step 8:
When dividing 240 by 31, we get 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 25640.67
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.

On to step 9:
230 divided by 31 is 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 25640.677
Subtracting 217 from 230 leaves us 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.

After the division, we end up with 25640.677 and a remainder of 0.0013.