We divide 786158 by 31
Let's see how many times 31 fits into 786158.

Advancing to step 1:
If we divide 7 by 31, we get 0 and a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 31

Advancing to step 2:
If we divide 78 by 31, we get 2 and a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 62 from 78 to get 16.
Take the next digit (6) from the dividend and append it to 16, then repeat: 166 / 31

Moving on to step 3:
The number 31 fits into 166 5 times, leaving a remainder of 11.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we subtract 155 from 166, we get 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 31

On to step 4:
31 goes into 111 3 times with a remainder of 18.
Put 3 as the next digit of the answer. 
Result so far: 253.0
Subtract 93 from 111 to get 18.
Include the next digit (5) from the dividend after 18, then repeat: 185 / 31

Going ahead to step 5:
31 goes into 185 5 times with a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 2535.0
Subtracting 155 from 185 leaves us with 30.
Take the next digit (8) from the dividend and append it to 30, then repeat: 308 / 31

Advancing to step 6:
The number 31 fits into 308 9 times, leaving a remainder of 29.
The number 9 becomes the next digit in our result. 
Result so far: 25359.0
Subtract 279 from 308 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.

Advancing to step 7:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Put 9 as the next digit of the answer. 
Result so far: 25359.9
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 8:
The number 31 fits into 110 3 times, leaving a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 25359.93
Deduct 93 from 110 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
170 divided by 31 is 5 with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 25359.935
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.

Step 10:
31 goes into 150 4 times with a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 25359.9354
Subtracting 124 from 150 leaves us with 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 11:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 25359.93548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 12:
120 divided by 31 is 3 with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 25359.935483
If we subtract 93 from 120, we 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 13:
If we divide 270 by 31, we get 8 and a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 25359.9354838
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 14:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 25359.93548387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final outcome is 25359.93548387, with a leftover of 3e-09.