We're dividing 166304 by 8 
The aim is to understand the frequency of 8 in 166304.

Moving on to step 1:
8 goes into 1 0 times with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 8

Step 2:
8 can be fit into 16 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 16 from 16 leaves us with 0.
Take the next digit (6) from the dividend and append it to 0, then repeat: 6 / 8

Going ahead to step 3:
If we divide 6 by 8, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 20.0
If we subtract 0 from 6, we get 6.
Bring next digit (3) of the dividend behind the 6 and repeat the process: 63 / 8

Moving on to step 4:
If we divide 63 by 8, we get 7 and a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 207.0
The remainder is 7 after subtracting 56 from 63.
Grab the next digit (0) from the dividend, add it to 7, then carry on: 70 / 8

Step 5:
The number 8 fits into 70 8 times, leaving a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 2078.0
Deduct 64 from 70 and we're left with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 8

Moving on to step 6:
8 goes into 64 8 times with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 20788.0
Subtracting 64 from 64 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.

Advancing to step 7:
8 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 20788.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.

Step 8:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20788.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.

After the division, we end up with 20788.0 and a remainder of 0.0.