We look at the division of 471857 by 8 
The aim is to understand the frequency of 8 in 471857.

Going ahead to step 1:
If we divide 4 by 8, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 8

Let's proceed to step 2:
8 goes into 47 5 times with a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 40 from 47, we get 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 8

Step 3:
8 can be fit into 71 8 times, resulting in a remainder of 7.
The number 8 becomes the next digit in our result. 
Result so far: 58.0
The remainder is 7 after subtracting 64 from 71.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 8

Step 4:
8 goes into 78 9 times with a remainder of 6.
The next digit of our result is 9. 
Result so far: 589.0
If we take 72 away from 78, we end up with 6.
Include the next digit (5) from the dividend after 6, then repeat: 65 / 8

Moving on to step 5:
If we divide 65 by 8, we get 8 and a remainder of 1.
The next digit of our result is 8. 
Result so far: 5898.0
If we subtract 64 from 65, we get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 8

Going ahead to step 6:
If we divide 17 by 8, we get 2 and a remainder of 1.
The next digit of our result is 2. 
Result so far: 58982.0
If we take 16 away from 17, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
When dividing 10 by 8, we get 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 58982.1
The remainder is 2 after subtracting 8 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
8 can be fit into 20 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 58982.12
Subtract 16 from 20 to 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 9:
8 goes into 40 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 58982.125
If we take 40 away from 40, we end up 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.

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

Going ahead to step 11:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 58982.125
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 quotient of the division is 58982.125, and the remainder is 0.0.