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

Let's proceed to step 1:
9 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 9

On to step 2:
The number 9 fits into 79 8 times, leaving a remainder of 7.
The next digit of our result is 8. 
Result so far: 8.0
Subtracting 72 from 79 leaves us with 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 9

Going ahead to step 3:
9 can be fit into 78 8 times, resulting in a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 88.0
Deduct 72 from 78 and we're left with 6.
Fetch the next digit (9) from the dividend, attach it to 6 and continue: 69 / 9

Step 4:
The number 9 fits into 69 7 times, leaving a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 887.0
If we subtract 63 from 69, we get 6.
Fetch the next digit (2) from the dividend, attach it to 6 and continue: 62 / 9

On to step 5:
9 goes into 62 6 times with a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 8876.0
Deduct 54 from 62 and we're left with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 9

Moving on to step 6:
If we divide 86 by 9, we get 9 and a remainder of 5.
Use 9 as the next digit of our solution. 
Result so far: 88769.0
If we take 81 away from 86, we end up 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.

Advancing to step 7:
9 goes into 50 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 88769.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.

On to step 8:
When dividing 50 by 9, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 88769.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 88769.55 with a remaining 0.005.