We divide 407317 by 6
We're looking to find how many times 6 goes into 407317.

Advancing to step 1:
When dividing 4 by 6, we get 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 6

Moving on to step 2:
If we divide 40 by 6, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 6.0
Subtract 36 from 40 to get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 6

Going ahead to step 3:
6 goes into 47 7 times with a remainder of 5.
Record the quotient 7 as the next digit in the result. 
Result so far: 67.0
If we subtract 42 from 47, we get 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 6

Let's proceed to step 4:
6 goes into 53 8 times with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 678.0
Subtracting 48 from 53 leaves us with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 6

Let's proceed to step 5:
51 divided by 6 is 8 with a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 6788.0
The remainder is 3 after subtracting 48 from 51.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 6

Advancing to step 6:
37 divided by 6 is 6 with a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 67886.0
If we subtract 36 from 37, 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.

Advancing to step 7:
6 can be fit into 10 1 times, resulting in a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 67886.1
Deduct 6 from 10 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 8:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 67886.16
If we subtract 36 from 40, 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 9:
6 can be fit into 40 6 times, resulting in a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 67886.166
Subtract 36 from 40 to 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.

The final result is 67886.166 with a remainder of 0.0004.