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

Advancing to step 1:
8 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 8

Let's proceed to step 2:
8 can be fit into 39 4 times, resulting in a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtracting 32 from 39 leaves us with 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 8

Going ahead to step 3:
If we divide 71 by 8, we get 8 and a remainder of 7.
Put 8 as the next digit of the answer. 
Result so far: 48.0
Deduct 64 from 71 and we're left with 7.
Take the next digit (1) from the dividend and append it to 7, then repeat: 71 / 8

Let's proceed to step 4:
If we divide 71 by 8, we get 8 and a remainder of 7.
Record the quotient 8 as the next digit in the result. 
Result so far: 488.0
Subtracting 64 from 71 leaves us with 7.
Grab the next digit (6) from the dividend, add it to 7, then carry on: 76 / 8

Let's proceed to step 5:
When dividing 76 by 8, we get 9 with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 4889.0
If we take 72 away from 76, we end up with 4.
Fetch the next digit (3) from the dividend, attach it to 4 and continue: 43 / 8

Step 6:
When dividing 43 by 8, we get 5 with a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 48895.0
Subtracting 40 from 43 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
When dividing 30 by 8, we get 3 with a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 48895.3
Subtract 24 from 30 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.

Step 8:
60 divided by 8 is 7 with a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 48895.37
If we take 56 away from 60, we end up 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:
If we divide 40 by 8, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 48895.375
Subtracting 40 from 40 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.

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

On to step 11:
0 divided by 8 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 48895.375
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.

The quotient of the division is 48895.375, and the remainder is 0.0.