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

On to step 1:
2 divided by 8 is 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 8

Going ahead to step 2:
The number 8 fits into 21 2 times, leaving a remainder of 5.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 16 from 21 and we're left with 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 8

Let's proceed to step 3:
The number 8 fits into 53 6 times, leaving a remainder of 5.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
The remainder is 5 after subtracting 48 from 53.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 8

Step 4:
The number 8 fits into 57 7 times, leaving a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 267.0
Deduct 56 from 57 and we're left with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 8

Moving on to step 5:
8 can be fit into 18 2 times, resulting in a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 2672.0
Subtracting 16 from 18 leaves us with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 8

Moving on to step 6:
If we divide 29 by 8, we get 3 and a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 26723.0
Deduct 24 from 29 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
8 goes into 50 6 times with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 26723.6
Deduct 48 from 50 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 8:
20 divided by 8 is 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 26723.62
If we take 16 away from 20, 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.

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

On to step 10:
When dividing 0 by 8, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 26723.625
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: 26723.625
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.

Our division results in 26723.625 with a remaining 0.0.