We look at the division of 317724 by 8 
Let's see how many times 8 fits into 317724.

Let's proceed to step 1:
When dividing 3 by 8, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 8

Moving on to step 2:
31 divided by 8 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 24 from 31 leaves us with 7.
Fetch the next digit (7) from the dividend, attach it to 7 and continue: 77 / 8

Going ahead to step 3:
If we divide 77 by 8, we get 9 and a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 39.0
If we subtract 72 from 77, we get 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 8

On to step 4:
8 can be fit into 57 7 times, resulting in a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 397.0
If we subtract 56 from 57, we get 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 8

Step 5:
12 divided by 8 is 1 with a remainder of 4.
The next digit of our result is 1. 
Result so far: 3971.0
The remainder is 4 after subtracting 8 from 12.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 8

Moving on to step 6:
8 goes into 44 5 times with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 39715.0
If we subtract 40 from 44, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
The number 8 fits into 40 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 39715.5
Subtracting 40 from 40 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
When dividing 0 by 8, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 39715.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 39715.5
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 39715.5 and a remainder of 0.0.