We're dividing 268717 by 31 
Let's see how many times 31 fits into 268717.

Going ahead to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 31

Step 2:
If we divide 26 by 31, we get 0 and a remainder of 26.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 26 leaves us with 26.
Take the next digit (8) from the dividend and append it to 26, then repeat: 268 / 31

Let's proceed to step 3:
When dividing 268 by 31, we get 8 with a remainder of 20.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Subtract 248 from 268 to get 20.
Bring next digit (7) of the dividend behind the 20 and repeat the process: 207 / 31

Moving on to step 4:
When dividing 207 by 31, we get 6 with a remainder of 21.
Record the quotient 6 as the next digit in the result. 
Result so far: 86.0
Deduct 186 from 207 and we're left with 21.
Grab the next digit (1) from the dividend, add it to 21, then carry on: 211 / 31

Let's proceed to step 5:
211 divided by 31 is 6 with a remainder of 25.
The number 6 becomes the next digit in our result. 
Result so far: 866.0
Subtracting 186 from 211 leaves us with 25.
Grab the next digit (7) from the dividend, add it to 25, then carry on: 257 / 31

Step 6:
31 goes into 257 8 times with a remainder of 9.
The next digit of our result is 8. 
Result so far: 8668.0
The remainder is 9 after subtracting 248 from 257.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 7:
31 goes into 90 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 8668.2
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 8:
31 goes into 280 9 times with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 8668.29
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 9:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 8668.29
The remainder is 10 after subtracting 0 from 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 10:
If we divide 100 by 31, we get 3 and a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 8668.2903
Subtracting 93 from 100 leaves us 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 11:
70 divided by 31 is 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 8668.29032
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.

Let's proceed to step 12:
80 divided by 31 is 2 with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 8668.290322
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 final outcome is 8668.290322, with a leftover of 1.8e-06.