Let's divide 391158 by 8
The aim is to understand the frequency of 8 in 391158.

Let's proceed to step 1:
When dividing 3 by 8, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 8

On to step 2:
8 can be fit into 39 4 times, resulting in a remainder of 7.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 7 after subtracting 32 from 39.
Fetch the next digit (1) from the dividend, attach it to 7 and continue: 71 / 8

Step 3:
When dividing 71 by 8, we get 8 with a remainder of 7.
Write down 8 as next digit of the result. 
Result so far: 48.0
The remainder is 7 after subtracting 64 from 71.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 8

Going ahead to step 4:
If we divide 71 by 8, we get 8 and a remainder of 7.
The next digit of our result is 8. 
Result so far: 488.0
If we take 64 away from 71, we end up with 7.
Append the next digit (5) from the dividend to 7 and continue with: 75 / 8

On to step 5:
The number 8 fits into 75 9 times, leaving a remainder of 3.
The next digit of our result is 9. 
Result so far: 4889.0
If we subtract 72 from 75, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 8

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

Going ahead to step 7:
8 can be fit into 60 7 times, resulting in a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 48894.7
Subtracting 56 from 60 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.

Advancing to step 8:
If we divide 40 by 8, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 48894.75
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.

Moving on to step 9:
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: 48894.75
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.

Step 10:
When dividing 0 by 8, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 48894.75
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.

Our division results in 48894.75 with a remaining 0.0.