We divide 795586 by 9
The aim is to understand the frequency of 9 in 795586.

Going ahead to step 1:
7 divided by 9 is 0 with a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 9

Moving on to step 2:
The number 9 fits into 79 8 times, leaving a remainder of 7.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtract 72 from 79 to get 7.
Take the next digit (5) from the dividend and append it to 7, then repeat: 75 / 9

Going ahead to step 3:
The number 9 fits into 75 8 times, leaving a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 88.0
Subtracting 72 from 75 leaves us with 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 9

Let's proceed to step 4:
The number 9 fits into 35 3 times, leaving a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 883.0
If we subtract 27 from 35, we get 8.
Take the next digit (8) from the dividend and append it to 8, then repeat: 88 / 9

On to step 5:
The number 9 fits into 88 9 times, leaving a remainder of 7.
The number 9 becomes the next digit in our result. 
Result so far: 8839.0
If we take 81 away from 88, we end up with 7.
Include the next digit (6) from the dividend after 7, then repeat: 76 / 9

Moving on to step 6:
When dividing 76 by 9, we get 8 with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 88398.0
If we take 72 away from 76, 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.

Going ahead to step 7:
The number 9 fits into 40 4 times, leaving a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 88398.4
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
40 divided by 9 is 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 88398.44
If we take 36 away from 40, 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.

The final result is 88398.44 with a remainder of 0.004.