Let's divide 786582 by 9
The aim is to understand the frequency of 9 in 786582.

Step 1:
9 goes into 7 0 times with a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 9

Going ahead to step 2:
78 divided by 9 is 8 with a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 8.0
The remainder is 6 after subtracting 72 from 78.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 9

Going ahead to step 3:
If we divide 66 by 9, we get 7 and a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 87.0
If we take 63 away from 66, we end up with 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 9

Step 4:
9 can be fit into 35 3 times, resulting in a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 873.0
If we subtract 27 from 35, we get 8.
Include the next digit (8) from the dividend after 8, then repeat: 88 / 9

On to step 5:
9 can be fit into 88 9 times, resulting in a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 8739.0
If we take 81 away from 88, we end up with 7.
Append the next digit (2) from the dividend to 7 and continue with: 72 / 9

Let's proceed to step 6:
72 divided by 9 is 8 with a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 87398.0
Subtract 72 from 72 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.

Step 7:
0 divided by 9 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 87398.0
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.

Let's proceed to step 8:
9 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 87398.0
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 final result is 87398.0 with a remainder of 0.0.