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

Advancing to step 1:
When dividing 7 by 31, we get 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 31

Advancing to step 2:
When dividing 78 by 31, we get 2 with a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 62 away from 78, we end up with 16.
Take the next digit (2) from the dividend and append it to 16, then repeat: 162 / 31

On to step 3:
If we divide 162 by 31, we get 5 and a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 25.0
If we subtract 155 from 162, we get 7.
Take the next digit (6) from the dividend and append it to 7, then repeat: 76 / 31

Let's proceed to step 4:
76 divided by 31 is 2 with a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 252.0
Subtract 62 from 76 to get 14.
Grab the next digit (6) from the dividend, add it to 14, then carry on: 146 / 31

Step 5:
When dividing 146 by 31, we get 4 with a remainder of 22.
The next digit of our result is 4. 
Result so far: 2524.0
If we take 124 away from 146, we end up with 22.
Fetch the next digit (7) from the dividend, attach it to 22 and continue: 227 / 31

Advancing to step 6:
When dividing 227 by 31, we get 7 with a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 25247.0
Deduct 217 from 227 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 7:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 25247.3
If we subtract 93 from 100, we get 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 8:
When dividing 70 by 31, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 25247.32
Subtracting 62 from 70 leaves us 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.

Advancing to step 9:
31 goes into 80 2 times with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 25247.322
If we subtract 62 from 80, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 25247.322 with a remaining 0.0018.