Let's divide 789664 by 6
The aim is to understand the frequency of 6 in 789664.

Step 1:
6 can be fit into 7 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 6 from 7 and we're left with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 6

Advancing to step 2:
6 goes into 18 3 times with a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 13.0
The remainder is 0 after subtracting 18 from 18.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 6

Moving on to step 3:
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: 131.0
If we take 6 away from 9, we end up with 3.
Fetch the next digit (6) from the dividend, attach it to 3 and continue: 36 / 6

Advancing to step 4:
6 can be fit into 36 6 times, resulting in a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 1316.0
The remainder is 0 after subtracting 36 from 36.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 6

Let's proceed to step 5:
6 can be fit into 6 1 times, resulting in a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 13161.0
The remainder is 0 after subtracting 6 from 6.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 6

Going ahead to step 6:
If we divide 4 by 6, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 131610.0
If we subtract 0 from 4, 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.

Advancing to step 7:
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: 131610.6
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
The number 6 fits into 40 6 times, leaving a remainder of 4.
The next digit of our result is 6. 
Result so far: 131610.66
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.

After the division, we end up with 131610.66 and a remainder of 0.004.