We look at the division of 975866 by 5 
The aim is to understand the frequency of 5 in 975866.

Moving on to step 1:
If we divide 9 by 5, we get 1 and a remainder of 4.
The next digit of our result is 1. 
Result so far: 1.0
If we take 5 away from 9, we end up with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 5

Going ahead to step 2:
If we divide 47 by 5, we get 9 and a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
The remainder is 2 after subtracting 45 from 47.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 5

Moving on to step 3:
If we divide 25 by 5, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 195.0
The remainder is 0 after subtracting 25 from 25.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 5

On to step 4:
When dividing 8 by 5, we get 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1951.0
If we take 5 away from 8, we end up with 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 5

Step 5:
The number 5 fits into 36 7 times, leaving a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 19517.0
Subtract 35 from 36 to get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 5

On to step 6:
5 can be fit into 16 3 times, resulting in a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 195173.0
Subtract 15 from 16 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
If we divide 10 by 5, we get 2 and a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 195173.2
Subtract 10 from 10 to 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.

Let's proceed to step 8:
5 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: 195173.2
Subtract 0 from 0 to 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.

Let's proceed to step 9:
When dividing 0 by 5, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 195173.2
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.

In conclusion, the division gives 195173.2 with a balance of 0.0.