We look at the division of 164668 by 8 
The aim is to understand the frequency of 8 in 164668.

Advancing to step 1:
The number 8 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 8

Step 2:
8 can be fit into 16 2 times, resulting in a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 0 after subtracting 16 from 16.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 8

Advancing to step 3:
The number 8 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
Subtract 0 from 4 to get 4.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 8

Let's proceed to step 4:
46 divided by 8 is 5 with a remainder of 6.
Record the quotient 5 as the next digit in the result. 
Result so far: 205.0
If we take 40 away from 46, we end up with 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 8

Step 5:
8 goes into 66 8 times with a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 2058.0
Deduct 64 from 66 and we're left with 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 8

Moving on to step 6:
28 divided by 8 is 3 with a remainder of 4.
The next digit of our result is 3. 
Result so far: 20583.0
Subtracting 24 from 28 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
8 goes into 40 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20583.5
Deduct 40 from 40 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.

Step 8:
When dividing 0 by 8, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20583.5
The remainder is 0 after subtracting 0 from 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:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20583.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 20583.5 with a balance of 0.0.