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

Going ahead to step 1:
If we divide 7 by 8, we get 0 and a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 8

Advancing to step 2:
8 goes into 78 9 times with a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 9.0
If we take 72 away from 78, we end up with 6.
Fetch the next digit (7) from the dividend, attach it to 6 and continue: 67 / 8

On to step 3:
8 goes into 67 8 times with a remainder of 3.
Write down 8 as next digit of the result. 
Result so far: 98.0
If we take 64 away from 67, we end up with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 8

On to step 4:
8 goes into 39 4 times with a remainder of 7.
The next digit of our result is 4. 
Result so far: 984.0
If we take 32 away from 39, we end up with 7.
Take the next digit (0) from the dividend and append it to 7, then repeat: 70 / 8

Moving on to step 5:
When dividing 70 by 8, we get 8 with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 9848.0
The remainder is 6 after subtracting 64 from 70.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 8

Step 6:
64 divided by 8 is 8 with a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 98488.0
If we take 64 away from 64, 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.

Advancing to step 7:
8 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 98488.0
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.

Going ahead to step 8:
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: 98488.0
Subtract 0 from 0 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.

The final result is 98488.0 with a remainder of 0.0.