We divide 787707 by 31
We want to divide 787707 by 31.

Advancing to 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
Subtract 0 from 7 to get 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 31

Moving on to step 2:
78 divided by 31 is 2 with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 62 from 78 leaves us with 16.
Append the next digit (7) from the dividend to 16 and continue with: 167 / 31

Advancing to step 3:
31 goes into 167 5 times with a remainder of 12.
Use 5 as the next digit of our solution. 
Result so far: 25.0
The remainder is 12 after subtracting 155 from 167.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 31

Going ahead to step 4:
31 goes into 127 4 times with a remainder of 3.
The next digit of our result is 4. 
Result so far: 254.0
The remainder is 3 after subtracting 124 from 127.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 31

Step 5:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 2540.0
If we take 0 away from 30, we end up with 30.
Take the next digit (7) from the dividend and append it to 30, then repeat: 307 / 31

Moving on to step 6:
The number 31 fits into 307 9 times, leaving a remainder of 28.
Write down 9 as next digit of the result. 
Result so far: 25409.0
The remainder is 28 after subtracting 279 from 307.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 25409.9
The remainder is 1 after subtracting 279 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 8:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 25409.9
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 25409.903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

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

Step 11:
When dividing 80 by 31, we get 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 25409.90322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 25409.90322, and the remainder is 1.8e-05.