We're dividing 40316 by 6 
Our goal is to divide 40316 by 6.

Going ahead to step 1:
6 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 6

Advancing to step 2:
6 can be fit into 40 6 times, resulting in a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 6.0
If we subtract 36 from 40, we get 4.
Bring next digit (3) of the dividend behind the 4 and repeat the process: 43 / 6

Advancing to step 3:
6 can be fit into 43 7 times, resulting in a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 67.0
If we take 42 away from 43, we end up with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 6

Advancing to step 4:
The number 6 fits into 11 1 times, leaving a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 671.0
Subtracting 6 from 11 leaves us with 5.
Take the next digit (6) from the dividend and append it to 5, then repeat: 56 / 6

On to step 5:
6 can be fit into 56 9 times, resulting in a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 6719.0
If we take 54 away from 56, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 6:
The number 6 fits into 20 3 times, leaving a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 6719.3
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 6 fits into 20 3 times, leaving a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 6719.33
If we take 18 away from 20, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 6719.33 and a remainder of 0.002.