We look at the division of 9936366 by 6 
The aim is to understand the frequency of 6 in 9936366.

On to step 1:
The number 6 fits into 9 1 times, leaving a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 6 from 9, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 6

Let's proceed to step 2:
39 divided by 6 is 6 with a remainder of 3.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
If we take 36 away from 39, we end up with 3.
Take the next digit (3) from the dividend and append it to 3, then repeat: 33 / 6

Going ahead to step 3:
33 divided by 6 is 5 with a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 165.0
Subtract 30 from 33 to get 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 6

Step 4:
6 goes into 36 6 times with a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 1656.0
Deduct 36 from 36 and we're left with 0.
Take the next digit (3) from the dividend and append it to 0, then repeat: 3 / 6

Moving on to step 5:
3 divided by 6 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 16560.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 6

Advancing to step 6:
36 divided by 6 is 6 with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 165606.0
Deduct 36 from 36 and we're left with 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 6

Moving on to step 7:
6 divided by 6 is 1 with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1656061.0
If we subtract 6 from 6, 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.

Moving on to step 8:
0 divided by 6 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 1656061.0
Deduct 0 from 0 and we're left 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.

Moving on to step 9:
0 divided by 6 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1656061.0
Subtracting 0 from 0 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.

Our division results in 1656061.0 with a remaining 0.0.