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

Moving on to step 1:
When dividing 8 by 9, we get 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Fetch the next digit (2) from the dividend, attach it to 8 and continue: 82 / 9

Moving on to step 2:
9 can be fit into 82 9 times, resulting in a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Deduct 81 from 82 and we're left with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 9

Going ahead to step 3:
When dividing 12 by 9, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 91.0
The remainder is 3 after subtracting 9 from 12.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 9

Moving on to step 4:
The number 9 fits into 34 3 times, leaving a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 913.0
If we take 27 away from 34, we end up with 7.
Fetch the next digit (0) from the dividend, attach it to 7 and continue: 70 / 9

Going ahead to step 5:
When dividing 70 by 9, we get 7 with a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 9137.0
The remainder is 7 after subtracting 63 from 70.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 9

On to step 6:
The number 9 fits into 77 8 times, leaving a remainder of 5.
The next digit of our result is 8. 
Result so far: 91378.0
The remainder is 5 after subtracting 72 from 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 7:
9 goes into 50 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 91378.5
If we subtract 45 from 50, we 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.

Going ahead to step 8:
9 goes into 50 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 91378.55
If we subtract 45 from 50, we 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 91378.55 with a remaining 0.005.