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

Let's proceed to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 8

Step 2:
37 divided by 8 is 4 with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 5 after subtracting 32 from 37.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 8

Step 3:
When dividing 56 by 8, we get 7 with a remainder of 0.
Write down 7 as next digit of the result. 
Result so far: 47.0
Subtracting 56 from 56 leaves us with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 8

Going ahead to step 4:
8 can be fit into 7 0 times, resulting in a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 470.0
If we take 0 away from 7, we end up with 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 8

Step 5:
79 divided by 8 is 9 with a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 4709.0
If we subtract 72 from 79, we get 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 8

Advancing to step 6:
8 can be fit into 79 9 times, resulting in a remainder of 7.
The next digit of our result is 9. 
Result so far: 47099.0
If we take 72 away from 79, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
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: 47099.8
Deduct 64 from 70 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
8 can be fit into 60 7 times, resulting in a remainder of 4.
The next digit of our result is 7. 
Result so far: 47099.87
Deduct 56 from 60 and we're left 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 9:
The number 8 fits into 40 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 47099.875
Subtract 40 from 40 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.

Going ahead to step 10:
0 divided by 8 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 47099.875
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.

Let's proceed 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: 47099.875
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 outcome is 47099.875, with a leftover of 0.0.