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

Step 1:
The number 8 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 8

Advancing to step 2:
When dividing 15 by 8, we get 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 8 from 15 leaves us with 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 8

Going ahead to step 3:
When dividing 77 by 8, we get 9 with a remainder of 5.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
Subtracting 72 from 77 leaves us with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 8

Advancing to step 4:
If we divide 58 by 8, we get 7 and a remainder of 2.
The next digit of our result is 7. 
Result so far: 197.0
Subtracting 56 from 58 leaves us with 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 8

Step 5:
26 divided by 8 is 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 1973.0
If we subtract 24 from 26, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 6:
20 divided by 8 is 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 1973.2
If we subtract 16 from 20, we get 4.
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 7:
When dividing 40 by 8, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 1973.25
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.

Moving on to step 8:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 1973.25
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.

Step 9:
The number 8 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1973.25
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.

The final result is 1973.25 with a remainder of 0.0.