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

On to step 1:
3 divided by 8 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 8

Advancing to step 2:
8 can be fit into 39 4 times, resulting in a remainder of 7.
Write down 4 as next digit of the result. 
Result so far: 4.0
Deduct 32 from 39 and we're left with 7.
Fetch the next digit (3) from the dividend, attach it to 7 and continue: 73 / 8

Let's proceed to step 3:
When dividing 73 by 8, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 49.0
Subtract 72 from 73 to get 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 8

Moving on to step 4:
8 goes into 17 2 times with a remainder of 1.
The next digit of our result is 2. 
Result so far: 492.0
Subtract 16 from 17 to get 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 8

Step 5:
If we divide 19 by 8, we get 2 and a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 4922.0
Deduct 16 from 19 and we're left with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 8

Advancing to step 6:
31 divided by 8 is 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 49223.0
The remainder is 7 after subtracting 24 from 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
70 divided by 8 is 8 with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 49223.8
The remainder is 6 after subtracting 64 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 8:
When dividing 60 by 8, we get 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 49223.87
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.

Let's proceed to step 9:
8 goes into 40 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 49223.875
If we subtract 40 from 40, 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.

Step 10:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 49223.875
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.

Advancing to step 11:
0 divided by 8 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 49223.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.

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