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

On to step 1:
8 can be fit into 1 0 times, resulting in a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 8

Going ahead to step 2:
15 divided by 8 is 1 with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 8 from 15 to get 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 8

Step 3:
8 goes into 78 9 times with a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
The remainder is 6 after subtracting 72 from 78.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 8

Moving on to step 4:
The number 8 fits into 62 7 times, leaving a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 197.0
Subtracting 56 from 62 leaves us with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 8

Going ahead to step 5:
The number 8 fits into 66 8 times, leaving a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 1978.0
Subtracting 64 from 66 leaves us with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 8

Going ahead to step 6:
8 can be fit into 29 3 times, resulting in a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 19783.0
Subtracting 24 from 29 leaves us with 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:
The number 8 fits into 50 6 times, leaving a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 19783.6
If we take 48 away from 50, we end up 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.

Step 8:
If we divide 20 by 8, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 19783.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.

Moving on to step 9:
40 divided by 8 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 19783.625
The remainder is 0 after subtracting 40 from 40.
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 10:
When dividing 0 by 8, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19783.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.

Step 11:
8 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 19783.625
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.

The final result is 19783.625 with a remainder of 0.0.