We divide 166197 by 8
The aim is to understand the frequency of 8 in 166197.

Let's proceed to step 1:
8 goes into 1 0 times with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 8

Step 2:
When dividing 16 by 8, we get 2 with a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 16 from 16 to get 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 8

Step 3:
When dividing 6 by 8, we get 0 with a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 20.0
Deduct 0 from 6 and we're left with 6.
Include the next digit (1) from the dividend after 6, then repeat: 61 / 8

Let's proceed to step 4:
61 divided by 8 is 7 with a remainder of 5.
The next digit of our result is 7. 
Result so far: 207.0
If we subtract 56 from 61, we get 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 8

Step 5:
8 can be fit into 59 7 times, resulting in a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 2077.0
If we subtract 56 from 59, we get 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 8

Moving on to step 6:
8 goes into 37 4 times with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 20774.0
If we subtract 32 from 37, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 7:
8 goes into 50 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 20774.6
Deduct 48 from 50 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
8 goes into 20 2 times with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 20774.62
Subtracting 16 from 20 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.

On to step 9:
If we divide 40 by 8, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20774.625
Subtract 40 from 40 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.

Going ahead to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 20774.625
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.

Moving on to step 11:
The number 8 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20774.625
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.

The final outcome is 20774.625, with a leftover of 0.0.