We divide 996747 by 6
The aim is to understand the frequency of 6 in 996747.

Moving on to step 1:
If we divide 9 by 6, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 6 from 9, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 6

On to step 2:
39 divided by 6 is 6 with a remainder of 3.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 36 from 39, we get 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 6

Step 3:
The number 6 fits into 36 6 times, leaving a remainder of 0.
Write down 6 as next digit of the result. 
Result so far: 166.0
The remainder is 0 after subtracting 36 from 36.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 6

Going ahead to step 4:
6 can be fit into 7 1 times, resulting in a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 1661.0
The remainder is 1 after subtracting 6 from 7.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 6

Going ahead to step 5:
6 can be fit into 14 2 times, resulting in a remainder of 2.
The next digit of our result is 2. 
Result so far: 16612.0
If we take 12 away from 14, we end up with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 6

Advancing to step 6:
6 goes into 27 4 times with a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 166124.0
If we subtract 24 from 27, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 7:
If we divide 30 by 6, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 166124.5
Subtract 30 from 30 to 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.

Let's proceed to step 8:
When dividing 0 by 6, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 166124.5
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.

On to step 9:
The number 6 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 166124.5
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.

The final result is 166124.5 with a remainder of 0.0.