We look at the division of 777830 by 9 
The aim is to understand the frequency of 9 in 777830.

On to step 1:
7 divided by 9 is 0 with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Include the next digit (7) from the dividend after 7, then repeat: 77 / 9

Step 2:
If we divide 77 by 9, we get 8 and a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
If we take 72 away from 77, we end up with 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 9

Step 3:
If we divide 57 by 9, we get 6 and a remainder of 3.
The next digit of our result is 6. 
Result so far: 86.0
If we subtract 54 from 57, we get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 9

Going ahead to step 4:
If we divide 38 by 9, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 864.0
The remainder is 2 after subtracting 36 from 38.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 9

Let's proceed to step 5:
When dividing 23 by 9, we get 2 with a remainder of 5.
Put 2 as the next digit of the answer. 
Result so far: 8642.0
Deduct 18 from 23 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 9

Let's proceed to step 6:
50 divided by 9 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 86425.0
The remainder is 5 after subtracting 45 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
9 can be fit into 50 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 86425.5
Deduct 45 from 50 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 8:
When dividing 50 by 9, we get 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 86425.55
Subtract 45 from 50 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Our division results in 86425.55 with a remaining 0.005.