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

Let's proceed to step 1:
6 goes into 7 1 times with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 6 away from 7, we end up with 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 6

Let's proceed to step 2:
6 can be fit into 19 3 times, resulting in a remainder of 1.
The next digit of our result is 3. 
Result so far: 13.0
Subtract 18 from 19 to get 1.
Take the next digit (9) from the dividend and append it to 1, then repeat: 19 / 6

On to step 3:
If we divide 19 by 6, we get 3 and a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 133.0
Subtracting 18 from 19 leaves us with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 6

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: 1331.0
The remainder is 5 after subtracting 6 from 11.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 6

Let's proceed to step 5:
If we divide 54 by 6, we get 9 and a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 13319.0
Deduct 54 from 54 and we're left with 0.
Take the next digit (6) from the dividend and append it to 0, then repeat: 6 / 6

Moving on to step 6:
6 goes into 6 1 times with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 133191.0
Subtracting 6 from 6 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 7:
6 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 133191.0
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.

Going ahead to step 8:
If we divide 0 by 6, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 133191.0
If we take 0 away from 0, we end up 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 133191.0 with a remaining 0.0.