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

On to step 1:
9 goes into 7 0 times with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 9

Advancing to step 2:
When dividing 78 by 9, we get 8 with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
The remainder is 6 after subtracting 72 from 78.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 9

On to step 3:
67 divided by 9 is 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 87.0
Subtracting 63 from 67 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 9

Moving on to step 4:
The number 9 fits into 40 4 times, leaving a remainder of 4.
The next digit of our result is 4. 
Result so far: 874.0
Deduct 36 from 40 and we're left with 4.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 9

Moving on to step 5:
9 goes into 46 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 8745.0
If we take 45 away from 46, we end up with 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 9

Step 6:
12 divided by 9 is 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 87451.0
Subtract 9 from 12 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
9 goes into 30 3 times with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 87451.3
Subtracting 27 from 30 leaves us 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.

Step 8:
9 goes into 30 3 times with a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 87451.33
Subtract 27 from 30 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final outcome is 87451.33, with a leftover of 0.003.