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

Going ahead to step 1:
9 divided by 8 is 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 8 away from 9, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 8

Advancing to step 2:
If we divide 18 by 8, we get 2 and a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
If we subtract 16 from 18, we get 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 8

Going ahead to step 3:
8 can be fit into 27 3 times, resulting in a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 123.0
Subtract 24 from 27 to get 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 8

Advancing to step 4:
The number 8 fits into 36 4 times, leaving a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 1234.0
Subtract 32 from 36 to get 4.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 8

Moving on to step 5:
When dividing 44 by 8, we get 5 with a remainder of 4.
The next digit of our result is 5. 
Result so far: 12345.0
Deduct 40 from 44 and we're left with 4.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 8

Let's proceed to step 6:
8 goes into 46 5 times with a remainder of 6.
Record the quotient 5 as the next digit in the result. 
Result so far: 123455.0
If we subtract 40 from 46, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 7:
The number 8 fits into 60 7 times, leaving a remainder of 4.
The next digit of our result is 7. 
Result so far: 123455.7
The remainder is 4 after subtracting 56 from 60.
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:
8 can be fit into 40 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 123455.75
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.

Advancing to step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 123455.75
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.

Going ahead to step 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 123455.75
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.

The final result is 123455.75 with a remainder of 0.0.