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

Step 1:
If we divide 2 by 8, we get 0 and a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 8

Going ahead to step 2:
8 can be fit into 23 2 times, resulting in a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 16 from 23 to get 7.
Fetch the next digit (5) from the dividend, attach it to 7 and continue: 75 / 8

Going ahead to step 3:
8 can be fit into 75 9 times, resulting in a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 29.0
Subtracting 72 from 75 leaves us with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 8

Going ahead to step 4:
8 can be fit into 39 4 times, resulting in a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 294.0
If we take 32 away from 39, we end up with 7.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 8

On to step 5:
The number 8 fits into 77 9 times, leaving a remainder of 5.
Record the quotient 9 as the next digit in the result. 
Result so far: 2949.0
If we take 72 away from 77, we end up with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 8

Step 6:
8 goes into 51 6 times with a remainder of 3.
Use 6 as the next digit of our solution. 
Result so far: 29496.0
Deduct 48 from 51 and we're left 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.

Going ahead to step 7:
The number 8 fits into 30 3 times, leaving a remainder of 6.
The next digit of our result is 3. 
Result so far: 29496.3
If we subtract 24 from 30, we 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.

Going ahead to step 8:
60 divided by 8 is 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 29496.37
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.

Going ahead 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: 29496.375
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.

Advancing to 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: 29496.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.

Going ahead to step 11:
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: 29496.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 29496.375, and the remainder is 0.0.